-
Notifications
You must be signed in to change notification settings - Fork 1
/
bcm2836-rpi-2-b+arpi600+sx1272mb2das.dts
85 lines (70 loc) · 1.39 KB
/
bcm2836-rpi-2-b+arpi600+sx1272mb2das.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
* Copyright (c) 2017 Andreas Färber
*
* SPDX-License-Identifier: GPL-2.0+ OR MIT
*/
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2836";
#address-cells = <1>;
#size-cells = <0>;
fragment@0 {
reg = <0>;
target = <&gpio>;
__overlay__ {
gpioout_sx1272: gpioout_sx1272 {
brcm,pins = <7>;
brcm,function = <1>; /* gpio out */
};
spi0_gpio7_no_ce1: spi0_gpio7-no-ce1 {
brcm,pins = <8 9 10 11>;
brcm,function = <4>; /* alt0 */
};
};
};
fragment@1 {
reg = <1>;
target = <&alt0>;
__overlay__ {
/* Drop GPIO 7, SPI 8-11 */
brcm,pins = <4 5>;
};
};
fragment@2 {
reg = <2>;
target = <&spi>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0_gpio7_no_ce1>;
#address-cells = <1>;
#size-cells = <0>;
lora@0 {
compatible = "semtech,sx1272";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&gpioout_sx1272>;
spi-max-frequency = <500000>;
clock-frequency = <32000000>;
radio-frequency = <868000000>;
/*
* RESET == A0 == 7
* DIO0 == P0 == 17
* DIO1 == P1 == 18
* DIO2 == P2 == 21/27
* DIO3 == P3 == 22
* DIO4
* DIO5
*/
reset-gpio = <&gpio 7 1>;
dio-gpios = <&gpio 17 1>,
<&gpio 18 1>,
<&gpio 21 1>,
<&gpio 22 1>,
<0>,
<0>;
};
};
};
};