Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Greg Kroah-Hartman
6d957838 43b83f1a

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