1/*
2 * Copyright (c) 2023 Marcin Niestroj
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	aliases {
9		lora0 = &lora_semtech_sx1276mb1mas;
10	};
11};
12
13&arduino_spi {
14	status = "okay";
15
16	cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>;	/* D10 */
17
18	lora_semtech_sx1276mb1mas: lora@0 {
19		compatible = "semtech,sx1276";
20		reg = <0x0>;
21		spi-max-frequency = <DT_FREQ_M(1)>;
22
23		reset-gpios = <&arduino_header 0 GPIO_ACTIVE_LOW>;   /* 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			    <&arduino_header 14 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,	   /* DIO4 is D8 */
30			    <&arduino_header 15 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;	   /* DIO5 is D9 */
31
32		rfo-enable-gpios = <&arduino_header 4 GPIO_ACTIVE_HIGH>; /* RXTX_EXT is A4 */
33	};
34};
35