1// Definitions for Pi433 2/dts-v1/; 3/plugin/; 4 5/ { 6 compatible = "bcm,bcm2835", "bcm,bcm2708", "bcm,bcm2709"; 7 8 fragment@0 { 9 target = <&spi0>; 10 __overlay__ { 11 status = "okay"; 12 13 spidev@0{ 14 status = "disabled"; 15 }; 16 17 spidev@1{ 18 status = "disabled"; 19 }; 20 }; 21 }; 22 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 }; 31 }; 32 33 fragment@2 { 34 target = <&spi0>; 35 __overlay__ { 36 #address-cells = <1>; 37 #size-cells = <0>; 38 status = "okay"; 39 40 pi433: pi433@0 { 41 compatible = "Smarthome-Wolf,pi433"; 42 reg = <0>; 43 spi-max-frequency = <10000000>; 44 status = "okay"; 45 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 }; 52 }; 53}; 54