Skip to content

Commit 09e61ef

Browse files
arinc9tsbogend
authored andcommitted
mips: dts: align LED node names with dtschema
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>
1 parent 159c610 commit 09e61ef

11 files changed

Lines changed: 47 additions & 47 deletions

arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,27 @@
2020
leds {
2121
compatible = "gpio-leds";
2222

23-
usb1 {
23+
led-usb1 {
2424
label = "usb1";
2525
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
2626
};
2727

28-
usb2 {
28+
led-usb2 {
2929
label = "usb2";
3030
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
3131
};
3232

33-
wps {
33+
led-wps {
3434
label = "wps";
3535
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
3636
};
3737

38-
wireless1 {
38+
led-wireless1 {
3939
label = "5g";
4040
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
4141
};
4242

43-
wireless2 {
43+
led-wireless2 {
4444
label = "2.4g";
4545
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
4646
};

arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
leds {
2222
compatible = "gpio-leds";
2323

24-
usb {
24+
led-usb {
2525
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
2626
};
2727

28-
wps {
28+
led-wps {
2929
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
3030
};
3131

32-
wireless {
32+
led-wireless {
3333
label = "2.4g";
3434
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
3535
};

arch/mips/boot/dts/ingenic/ci20.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@
4242
leds {
4343
compatible = "gpio-leds";
4444

45-
led0 {
45+
led-0 {
4646
label = "ci20:red:led0";
4747
gpios = <&gpc 3 GPIO_ACTIVE_HIGH>;
4848
linux,default-trigger = "none";
4949
};
5050

51-
led1 {
51+
led-1 {
5252
label = "ci20:red:led1";
5353
gpios = <&gpc 2 GPIO_ACTIVE_HIGH>;
5454
linux,default-trigger = "nand-disk";
5555
};
5656

57-
led2 {
57+
led-2 {
5858
label = "ci20:red:led2";
5959
gpios = <&gpc 1 GPIO_ACTIVE_HIGH>;
6060
linux,default-trigger = "cpu1";
6161
};
6262

63-
led3 {
63+
led-3 {
6464
label = "ci20:red:led3";
6565
gpios = <&gpc 0 GPIO_ACTIVE_HIGH>;
6666
linux,default-trigger = "cpu0";

arch/mips/boot/dts/pic32/pic32mzda_sk.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@
2828
pinctrl-names = "default";
2929
pinctrl-0 = <&user_leds_s0>;
3030

31-
led@1 {
31+
led-1 {
3232
label = "pic32mzda_sk:red:led1";
3333
gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
3434
linux,default-trigger = "heartbeat";
3535
};
3636

37-
led@2 {
37+
led-2 {
3838
label = "pic32mzda_sk:yellow:led2";
3939
gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
4040
linux,default-trigger = "mmc0";
4141
};
4242

43-
led@3 {
43+
led-3 {
4444
label = "pic32mzda_sk:green:led3";
4545
gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
4646
default-state = "on";

arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@
4141

4242
leds {
4343
compatible = "gpio-leds";
44-
led@0 {
44+
led-0 {
4545
label = "tp-link:green:usb";
4646
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
4747
};
4848

49-
led@1 {
49+
led-1 {
5050
label = "tp-link:green:system";
5151
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
5252
linux,default-trigger = "heartbeat";
5353
};
5454

55-
led@2 {
55+
led-2 {
5656
label = "tp-link:green:qss";
5757
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
5858
};
5959

60-
led@3 {
60+
led-3 {
6161
label = "tp-link:green:wlan";
6262
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
6363
};

arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@
2222
leds {
2323
compatible = "gpio-leds";
2424

25-
wlan {
25+
led-wlan {
2626
label = "dragino2:red:wlan";
2727
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
2828
default-state = "off";
2929
};
3030

31-
lan {
31+
led-lan {
3232
label = "dragino2:red:lan";
3333
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
3434
default-state = "off";
3535
};
3636

37-
wan {
37+
led-wan {
3838
label = "dragino2:red:wan";
3939
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
4040
default-state = "off";
4141
};
4242

43-
system {
43+
led-system {
4444
label = "dragino2:red:system";
4545
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
4646
default-state = "off";

arch/mips/boot/dts/qca/ar9331_omega.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
leds {
2323
compatible = "gpio-leds";
2424

25-
system {
25+
led-system {
2626
label = "onion:amber:system";
2727
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
2828
default-state = "off";

arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@
2222
leds {
2323
compatible = "gpio-leds";
2424

25-
wlan {
25+
led-wlan {
2626
label = "tp-link:green:wlan";
2727
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
2828
default-state = "off";
2929
};
3030

31-
lan {
31+
led-lan {
3232
label = "tp-link:green:lan";
3333
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
3434
default-state = "off";
3535
};
3636

37-
wps {
37+
led-wps {
3838
label = "tp-link:green:wps";
3939
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
4040
default-state = "off";
4141
};
4242

43-
led3g {
43+
led-led3g {
4444
label = "tp-link:green:3g";
4545
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
4646
default-state = "off";

arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,67 +47,67 @@
4747
* (see below). So we can't include it in this LED node.
4848
*/
4949

50-
power_blue {
50+
led-power-blue {
5151
label = "smartgw:power:blue";
5252
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
5353
default-state = "off";
5454
};
5555

56-
power_green {
56+
led-power-green {
5757
label = "smartgw:power:green";
5858
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
5959
default-state = "off";
6060
};
6161

62-
power_red {
62+
led-power-red {
6363
label = "smartgw:power:red";
6464
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
6565
default-state = "off";
6666
};
6767

68-
radio_blue {
68+
led-radio-blue {
6969
label = "smartgw:radio:blue";
7070
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
7171
default-state = "off";
7272
};
7373

74-
radio_green {
74+
led-radio-green {
7575
label = "smartgw:radio:green";
7676
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
7777
default-state = "off";
7878
};
7979

80-
radio_red {
80+
led-radio-red {
8181
label = "smartgw:radio:red";
8282
gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
8383
default-state = "off";
8484
};
8585

86-
internet_blue {
86+
led-internet-blue {
8787
label = "smartgw:internet:blue";
8888
gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
8989
default-state = "off";
9090
};
9191

92-
internet_green {
92+
led-internet-green {
9393
label = "smartgw:internet:green";
9494
gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
9595
default-state = "off";
9696
};
9797

98-
internet_red {
98+
led-internet-red {
9999
label = "smartgw:internet:red";
100100
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
101101
default-state = "off";
102102
};
103103

104-
ethernet_link {
104+
led-ethernet-link {
105105
label = "smartgw:eth:link";
106106
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
107107
linux,default-trigger = "netdev";
108108
};
109109

110-
ethernet_activity {
110+
led-ethernet-activity {
111111
label = "smartgw:eth:act";
112112
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
113113
linux,default-trigger = "netdev";

arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
gpio-leds {
3434
compatible = "gpio-leds";
3535

36-
power {
36+
led-power {
3737
label = "green:power";
3838
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
3939
linux,default-trigger = "default-on";
4040
};
4141

42-
system {
42+
led-system {
4343
label = "green:system";
4444
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
4545
linux,default-trigger = "disk-activity";

0 commit comments

Comments
 (0)