ath79: 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>
Sat, 26 Jan 2019 20:09:12 +0000 (21:09 +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>
[split up, removed entries where it could clash due to ath9k-leds]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi
target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi
target/linux/ath79/dts/ar9331_pisen_wmm003n.dts
target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi
target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi
target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts
target/linux/ath79/dts/ar9342_ubnt_xw.dtsi
target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts

index a438a3f913ed298dc9984cac3805c14e97683589..6e4361f10f248e8cb0a5ff1e1be81b5a96d8faf7 100644 (file)
@@ -25,7 +25,7 @@
                clock-frequency = <40000000>;
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                rf: rf_green {
index e3f0fa64205e7a2221311cbcff140057f6d9f643..8e934429a3afc35fd22d41a5f172905c2204b492 100644 (file)
@@ -26,7 +26,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                power: power {
                        label = "netgear:green:power";
index 673a0b35895d26086bc1ef245050780b394d09ca..b3bc2e4c451254c014683c66821a523ee56f4ee0 100644 (file)
@@ -30,7 +30,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                led_system: system {
index edbacbc767fd43dfa0ea4d9d13a7273379315333..ffd3d71a6202ae6c273a5b991c74e0cc0e1d205c 100644 (file)
@@ -27,7 +27,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                system: system {
index b401aadf47a199050ce112907c655ee0a84e5e5f..02c647c179cb74ab709d5e5556f67bfd11dcd383 100644 (file)
@@ -37,7 +37,7 @@
                };
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                pinctrl-0 = <&switch_led_pins>;
index 29b6fdab5e59f636eec5cde82a8e96ace2fa7024..2ace37ad687f2f3fa722b03e1e3bfd5533324a98 100644 (file)
@@ -10,7 +10,7 @@
        compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
        model = "Ubiquiti Nanostation AC (WA)";
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                rssi0 {
index 01ea7c9eb3eac5a29f00f8e35c762ceadfdccaa4..84fc22215667244c390a1104a46548b5c7c89e6c 100644 (file)
@@ -16,7 +16,7 @@
                led-failsafe = &system;
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                link1 {
index 1c778f57ac9eac4fec29e8d2cdc5caf07a1b3943..995ecb3b73790acf11b41272ecad825bb32fe550 100644 (file)
@@ -21,7 +21,7 @@
                bootargs = "console=ttyS0,115200n8";
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                power: power {