oxnas: dts: Unify naming of gpio-led nodes
authorPetr Štetiar <ynezz@true.cz>
Sun, 30 Dec 2018 11:42:53 +0000 (12:42 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 24 Jan 2019 14:53:04 +0000 (15:53 +0100)
In DTS Checklist[1] we're now demanding proper generic node names, as
the name of a node should reflect the function of the device and use
generic name for that[2]. Everybody seems to be copy&pasting from DTS
files available in the repository today, so let's unify that naming
there as well and provide proper examples.

1. https://openwrt.org/submitting-patches#dts_checklist
2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [split up]
target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio-mycloud.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-mitrastar-stg212.dts
target/linux/oxnas/files/arch/arm/boot/dts/ox820-shuttle-kd20.dts

index 3564803f72fc20b9fc84933840177a5100ee7bf4..f0fa928f3d8697ee929dac42dbcd695859ce8c15 100644 (file)
@@ -58,7 +58,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_leds>;
index 81e862ae952b4499e651f102bfa0971c0d22bcf1..5fd2617f2f17905591b2de5951bcbc5700d7930c 100644 (file)
@@ -43,7 +43,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                status {
                        label = "zyxel:blue:status";
index 6cff93d628d0f9bac6b046e8f826d7aaefc8967f..516774531f74a9df5f63b1c5eaf46444928eb959 100644 (file)
@@ -65,7 +65,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                status {
                        label = "kd20:blue:status";