blob: 3c17e7e42505e5934559cb23d90f316f1994eb71 [file]
/*
* Copyright (c) 2020 Lemonbeat GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
/ {
aliases {
lora0 = &lora_semtech_sx1272mb2das;
};
};
&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 GPIO_ACTIVE_LOW>;
lora_semtech_sx1272mb2das: lora@0 {
compatible = "semtech,sx1272";
reg = <0x0>;
spi-max-frequency = <3000000>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_A0 GPIO_ACTIVE_HIGH>;
dio-gpios = <&arduino_header ARDUINO_HEADER_R3_D2
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&arduino_header ARDUINO_HEADER_R3_D3
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&arduino_header ARDUINO_HEADER_R3_D4
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
<&arduino_header ARDUINO_HEADER_R3_D5
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
power-amplifier-output = "rfo";
};
};