staging: pi433: overlay: Convert to sugar syntax

Using overlay sugar syntax makes the DTS overlay files easier to read
(and write).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200221122133.32024-4-geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Geert Uytterhoeven 2020-02-21 13:21:33 +01:00 committed by Greg Kroah-Hartman
parent 43b83f1a4c
commit 6d95783883

View File

@ -4,10 +4,9 @@
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
};
fragment@0 {
target = <&spi0>;
__overlay__ {
&spi0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
@ -22,21 +21,15 @@
status = "disabled";
};
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
&gpio {
pi433_pins: pi433_pins {
brcm,pins = <7 25 24>;
brcm,function = <0 0 0>; // in in in
};
};
};
fragment@2 {
target = <&spi0>;
__overlay__ {
&spi0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
@ -53,5 +46,3 @@
DIO2-gpio = <&gpio 7 0>;
};
};
};
};