Commit 6d957838 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman

staging: pi433: overlay: Convert to sugar syntax

Using overlay sugar syntax makes the DTS overlay files easier to read
(and write).
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200221122133.32024-4-geert+renesas@glider.beSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 43b83f1a
...@@ -4,10 +4,9 @@ ...@@ -4,10 +4,9 @@
/ { / {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
};
fragment@0 { &spi0 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "okay"; status = "okay";
...@@ -21,22 +20,16 @@ spidev@1{ ...@@ -21,22 +20,16 @@ spidev@1{
reg = <1>; reg = <1>;
status = "disabled"; status = "disabled";
}; };
}; };
};
fragment@1 { &gpio {
target = <&gpio>;
__overlay__ {
pi433_pins: pi433_pins { pi433_pins: pi433_pins {
brcm,pins = <7 25 24>; brcm,pins = <7 25 24>;
brcm,function = <0 0 0>; // in in in brcm,function = <0 0 0>; // in in in
}; };
}; };
};
fragment@2 { &spi0 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
status = "okay"; status = "okay";
...@@ -52,6 +45,4 @@ pi433: pi433@0 { ...@@ -52,6 +45,4 @@ pi433: pi433@0 {
DIO1-gpio = <&gpio 25 0>; DIO1-gpio = <&gpio 25 0>;
DIO2-gpio = <&gpio 7 0>; DIO2-gpio = <&gpio 7 0>;
}; };
};
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment