]> git.itanic.dy.fi Git - linux-stable/commitdiff
mips: dts: align LED node names with dtschema
authorArınç ÜNAL <arinc.unal@arinc9.com>
Sat, 11 Feb 2023 10:49:14 +0000 (13:49 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 17 Feb 2023 10:58:14 +0000 (11:58 +0100)
The node names should be generic and DT schema expects certain pattern:

  mt7621-gnubee-gb-pc1.dtb: gpio-leds: 'power', 'system' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts
arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
arch/mips/boot/dts/ingenic/ci20.dts
arch/mips/boot/dts/pic32/pic32mzda_sk.dts
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts
arch/mips/boot/dts/qca/ar9331_omega.dts
arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts

index 2fdb4baad19ca634d46ae99c98a17ebadf061696..cb460eaf88359279974c02fbcf673383fb083911 100644 (file)
@@ -20,27 +20,27 @@ uart0: serial@1180000000800 {
        leds {
                compatible = "gpio-leds";
 
-               usb1 {
+               led-usb1 {
                        label = "usb1";
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
 
-               usb2 {
+               led-usb2 {
                        label = "usb2";
                        gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led-wps {
                        label = "wps";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
-               wireless1 {
+               led-wireless1 {
                        label = "5g";
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                };
 
-               wireless2 {
+               led-wireless2 {
                        label = "2.4g";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
index e04237281b4146bd0b7649b8b1fa343f23605e67..c55845fd84ca25c46a128ef5e9a61e2ae4843754 100644 (file)
@@ -21,15 +21,15 @@ uart0: serial@1180000000800 {
        leds {
                compatible = "gpio-leds";
 
-               usb {
+               led-usb {
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led-wps {
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
-               wireless {
+               led-wireless {
                        label = "2.4g";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
index 8f21d2304737c02da8c58dd29201505fb2f10a1b..239c4537484d071209fb6914b9f9a07ef81c4ef0 100644 (file)
@@ -42,25 +42,25 @@ switch {
        leds {
                compatible = "gpio-leds";
 
-               led0 {
+               led-0 {
                        label = "ci20:red:led0";
                        gpios = <&gpc 3 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "none";
                };
 
-               led1 {
+               led-1 {
                        label = "ci20:red:led1";
                        gpios = <&gpc 2 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "nand-disk";
                };
 
-               led2 {
+               led-2 {
                        label = "ci20:red:led2";
                        gpios = <&gpc 1 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "cpu1";
                };
 
-               led3 {
+               led-3 {
                        label = "ci20:red:led3";
                        gpios = <&gpc 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "cpu0";
index ab70637bbec564002f692ee723fab549b708af0d..b1c5ffdb33fc9e134a5a0febcc87fd3d1553d76e 100644 (file)
@@ -28,19 +28,19 @@ leds0 {
                pinctrl-names = "default";
                pinctrl-0 = <&user_leds_s0>;
 
-               led@1 {
+               led-1 {
                        label = "pic32mzda_sk:red:led1";
                        gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
 
-               led@2 {
+               led-2 {
                        label = "pic32mzda_sk:yellow:led2";
                        gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "mmc0";
                };
 
-               led@3 {
+               led-3 {
                        label = "pic32mzda_sk:green:led3";
                        gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
index f3dff4009ab5c49faef7acb8622f8ca181fade76..f894fe17816b2ec5f619e89cc1d870d4859d0944 100644 (file)
@@ -41,23 +41,23 @@ button-1 {
 
        leds {
                compatible = "gpio-leds";
-               led@0 {
+               led-0 {
                        label = "tp-link:green:usb";
                        gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                };
 
-               led@1 {
+               led-1 {
                        label = "tp-link:green:system";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "heartbeat";
                };
 
-               led@2 {
+               led-2 {
                        label = "tp-link:green:qss";
                        gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
                };
 
-               led@3 {
+               led-3 {
                        label = "tp-link:green:wlan";
                        gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
                };
index 40e4c5da0e65708ccac3e92b2a41d5856788c815..7affa58d4fa66a9cf6fbb81000d855615bdf3c9f 100644 (file)
@@ -22,25 +22,25 @@ memory@0 {
        leds {
                compatible = "gpio-leds";
 
-               wlan {
+               led-wlan {
                        label = "dragino2:red:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               lan {
+               led-lan {
                        label = "dragino2:red:lan";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
-               wan {
+               led-wan {
                        label = "dragino2:red:wan";
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
-               system {
+               led-system {
                        label = "dragino2:red:system";
                        gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
index ed184d861d5ffbeda751644fb376bc5e7f4710d7..8904aa917a6e3987a6eb2ca32cb5a08efa744a25 100644 (file)
@@ -22,7 +22,7 @@ memory@0 {
        leds {
                compatible = "gpio-leds";
 
-               system {
+               led-system {
                        label = "onion:amber:system";
                        gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
                        default-state = "off";
index 5f424c2cd781157ef575613755872a2d8c96bbaf..10b9759228b77ac4babe6327844d8c602d1a68b4 100644 (file)
@@ -22,25 +22,25 @@ memory@0 {
        leds {
                compatible = "gpio-leds";
 
-               wlan {
+               led-wlan {
                        label = "tp-link:green:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               lan {
+               led-lan {
                        label = "tp-link:green:lan";
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
-               wps {
+               led-wps {
                        label = "tp-link:green:wps";
                        gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
-               led3g {
+               led-led3g {
                        label = "tp-link:green:3g";
                        gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
                        default-state = "off";
index 179558161f85c1a3fd50ac6e610051041d881da0..18107ca0a06b14794f5d5479bafaafae68592d30 100644 (file)
@@ -47,67 +47,67 @@ leds {
                 * (see below). So we can't include it in this LED node.
                 */
 
-               power_blue {
+               led-power-blue {
                        label = "smartgw:power:blue";
                        gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               power_green {
+               led-power-green {
                        label = "smartgw:power:green";
                        gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               power_red {
+               led-power-red {
                        label = "smartgw:power:red";
                        gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               radio_blue {
+               led-radio-blue {
                        label = "smartgw:radio:blue";
                        gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               radio_green {
+               led-radio-green {
                        label = "smartgw:radio:green";
                        gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               radio_red {
+               led-radio-red {
                        label = "smartgw:radio:red";
                        gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               internet_blue {
+               led-internet-blue {
                        label = "smartgw:internet:blue";
                        gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               internet_green {
+               led-internet-green {
                        label = "smartgw:internet:green";
                        gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               internet_red {
+               led-internet-red {
                        label = "smartgw:internet:red";
                        gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
 
-               ethernet_link {
+               led-ethernet-link {
                        label = "smartgw:eth:link";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "netdev";
                };
 
-               ethernet_activity {
+               led-ethernet-activity {
                        label = "smartgw:eth:act";
                        gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "netdev";
index 0128bd8fa7edae3531a99dad0b7f5b6a96648e66..4314aee97e187d61466763f7b4f19774f4a95f73 100644 (file)
@@ -33,13 +33,13 @@ key-reset {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led-power {
                        label = "green:power";
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "default-on";
                };
 
-               system {
+               led-system {
                        label = "green:system";
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "disk-activity";
index e31417569e09964dba61173340e9caa705c30702..3ebbf933f644b78a16dc13c444d383ce7942ab96 100644 (file)
@@ -33,33 +33,33 @@ key-reset {
        gpio-leds {
                compatible = "gpio-leds";
 
-               ethblack-green {
+               led-ethblack-green {
                        label = "green:ethblack";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
-               ethblue-green {
+               led-ethblue-green {
                        label = "green:ethblue";
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
-               ethyellow-green {
+               led-ethyellow-green {
                        label = "green:ethyellow";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
-               ethyellow-orange {
+               led-ethyellow-orange {
                        label = "orange:ethyellow";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led-power {
                        label = "green:power";
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "default-on";
                };
 
-               system {
+               led-system {
                        label = "green:system";
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "disk-activity";