.. | .. |
---|
3 | 3 | /plugin/; |
---|
4 | 4 | |
---|
5 | 5 | / { |
---|
6 | | - compatible = "bcm,bcm2835", "bcm,bcm2708", "bcm,bcm2709"; |
---|
| 6 | + compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; |
---|
| 7 | +}; |
---|
7 | 8 | |
---|
8 | | - fragment@0 { |
---|
9 | | - target = <&spi0>; |
---|
10 | | - __overlay__ { |
---|
11 | | - status = "okay"; |
---|
| 9 | +&spi0 { |
---|
| 10 | + #address-cells = <1>; |
---|
| 11 | + #size-cells = <0>; |
---|
| 12 | + status = "okay"; |
---|
12 | 13 | |
---|
13 | | - spidev@0{ |
---|
14 | | - status = "disabled"; |
---|
15 | | - }; |
---|
16 | | - |
---|
17 | | - spidev@1{ |
---|
18 | | - status = "disabled"; |
---|
19 | | - }; |
---|
20 | | - }; |
---|
| 14 | + spidev@0{ |
---|
| 15 | + reg = <0>; |
---|
| 16 | + status = "disabled"; |
---|
21 | 17 | }; |
---|
22 | 18 | |
---|
23 | | - fragment@1 { |
---|
24 | | - target = <&gpio>; |
---|
25 | | - __overlay__ { |
---|
26 | | - pi433_pins: pi433_pins { |
---|
27 | | - brcm,pins = <7 25 24>; |
---|
28 | | - brcm,function = <0 0 0>; // in in in |
---|
29 | | - }; |
---|
30 | | - }; |
---|
| 19 | + spidev@1{ |
---|
| 20 | + reg = <1>; |
---|
| 21 | + status = "disabled"; |
---|
31 | 22 | }; |
---|
| 23 | +}; |
---|
32 | 24 | |
---|
33 | | - fragment@2 { |
---|
34 | | - target = <&spi0>; |
---|
35 | | - __overlay__ { |
---|
36 | | - #address-cells = <1>; |
---|
37 | | - #size-cells = <0>; |
---|
38 | | - status = "okay"; |
---|
| 25 | +&gpio { |
---|
| 26 | + pi433_pins: pi433_pins { |
---|
| 27 | + brcm,pins = <7 25 24>; |
---|
| 28 | + brcm,function = <0 0 0>; // in in in |
---|
| 29 | + }; |
---|
| 30 | +}; |
---|
39 | 31 | |
---|
40 | | - pi433: pi433@0 { |
---|
41 | | - compatible = "Smarthome-Wolf,pi433"; |
---|
42 | | - reg = <0>; |
---|
43 | | - spi-max-frequency = <10000000>; |
---|
44 | | - status = "okay"; |
---|
| 32 | +&spi0 { |
---|
| 33 | + #address-cells = <1>; |
---|
| 34 | + #size-cells = <0>; |
---|
| 35 | + status = "okay"; |
---|
45 | 36 | |
---|
46 | | - pinctrl-0 = <&pi433_pins>; |
---|
47 | | - DIO0-gpio = <&gpio 24 0>; |
---|
48 | | - DIO1-gpio = <&gpio 25 0>; |
---|
49 | | - DIO2-gpio = <&gpio 7 0>; |
---|
50 | | - }; |
---|
51 | | - }; |
---|
| 37 | + pi433: pi433@0 { |
---|
| 38 | + compatible = "Smarthome-Wolf,pi433"; |
---|
| 39 | + reg = <0>; |
---|
| 40 | + spi-max-frequency = <10000000>; |
---|
| 41 | + status = "okay"; |
---|
| 42 | + |
---|
| 43 | + pinctrl-0 = <&pi433_pins>; |
---|
| 44 | + DIO0-gpio = <&gpio 24 0>; |
---|
| 45 | + DIO1-gpio = <&gpio 25 0>; |
---|
| 46 | + DIO2-gpio = <&gpio 7 0>; |
---|
52 | 47 | }; |
---|
53 | 48 | }; |
---|