1/* 2 * Copyright (c) 2020 Lemonbeat GmbH 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 aliases { 9 lora0 = &lora_semtech_sx1272mb2das; 10 }; 11}; 12 13&arduino_spi { 14 status = "okay"; 15 16 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 17 18 lora_semtech_sx1272mb2das: lora@0 { 19 compatible = "semtech,sx1272"; 20 reg = <0x0>; 21 spi-max-frequency = <3000000>; 22 23 reset-gpios = <&arduino_header 0 GPIO_ACTIVE_HIGH>; /* A0 */ 24 25 dio-gpios = <&arduino_header 8 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, /* DIO0 is D2 */ 26 <&arduino_header 9 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, /* DIO1 is D3 */ 27 <&arduino_header 10 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, /* DIO2 is D4 */ 28 <&arduino_header 11 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; /* DIO3 is D5 */ 29 30 power-amplifier-output = "rfo"; 31 }; 32}; 33