aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:35 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-02-07 14:48:35 +0100
commit4a8928526e0b27eaedee49b6d8bc3a4844cca996 (patch)
tree1066edcde678b7f5e62be7c8abf2c4293357cfbb /target/linux
parente3ddfcc70c604c6eb9172a497df2291489dc1890 (diff)
downloadupstream-4a8928526e0b27eaedee49b6d8bc3a4844cca996.tar.gz
upstream-4a8928526e0b27eaedee49b6d8bc3a4844cca996.tar.bz2
upstream-4a8928526e0b27eaedee49b6d8bc3a4844cca996.zip
bcm63xx: convert to new LED color/function format where possible
Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/bcm63xx/dts/bcm3368-netgear-cvg834g.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm63167-sercomm-h500-s.dtsi7
-rw-r--r--target/linux/bcm63xx/dts/bcm63168-comtrend-vr-3032u.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm63169-comtrend-vg-8050.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6318-d-link-dsl-275xb-d1.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6318-sagem-fast-2704n.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-adb-a4001n.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-adb-a4001n1.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4101n-a-000-1a1-ae.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-d-link-dsl-274xb-f1.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-d-link-dsl-2750u-c1.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-sagem-fast-2704-v2.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n-telecom-italia.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338w.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6338-d-link-dsl-2640u.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6338-dynalink-rta1320.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6345-dynalink-rta770bw.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6345-dynalink-rta770w.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-asmax-ar-1004g.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-belkin-f5d7633.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-10.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-11.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348r.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-bt-voyager-2110.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-bt-voyager-2500v-bb.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-comtrend-ct-5365.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-comtrend-ct-536plus.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-d-link-dsl-2640b-b.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-netgear-dg834g-v4.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-netgear-dg834gt-pn.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-sagem-fast-2604.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-t-com-speedport-w-500v.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-telsey-magic.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6348-tp-link-td-w8900gb.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-alcatel-rg100a.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw2.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-bt-home-hub-2-a.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-comtrend-ct-6373.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-d-link-dsl-2650u.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-d-link-dsl-274xb-c2.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg553.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a.dtsi4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-pirelli-a226.dtsi13
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-pirelli-agpf-s0.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-sfr-neufbox-4.dtsi4
-rw-r--r--target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6362-huawei-hg253s-v2.dts4
-rw-r--r--target/linux/bcm63xx/dts/bcm6362-netgear-dgnd3700-v2.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6362-sagem-fast-2504n.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-actiontec-r1000h.dts16
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvngr.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvwg.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025u.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025un.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3026e.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg622.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg655b.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts13
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-observa-vh4032n.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts7
-rw-r--r--target/linux/bcm63xx/dts/bcm6369-comtrend-wap-5813n.dts10
-rw-r--r--target/linux/bcm63xx/dts/bcm6369-netgear-evg2000.dts16
76 files changed, 428 insertions, 176 deletions
diff --git a/target/linux/bcm63xx/dts/bcm3368-netgear-cvg834g.dts b/target/linux/bcm63xx/dts/bcm3368-netgear-cvg834g.dts
index fb22f769d69..998ca6002a8 100644
--- a/target/linux/bcm63xx/dts/bcm3368-netgear-cvg834g.dts
+++ b/target/linux/bcm63xx/dts/bcm3368-netgear-cvg834g.dts
@@ -1,6 +1,7 @@
#include "bcm3368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Netgear CVG834G";
@@ -22,7 +23,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 5 0>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm63167-sercomm-h500-s.dtsi b/target/linux/bcm63xx/dts/bcm63167-sercomm-h500-s.dtsi
index 07665007344..af633cadebf 100644
--- a/target/linux/bcm63xx/dts/bcm63167-sercomm-h500-s.dtsi
+++ b/target/linux/bcm63xx/dts/bcm63167-sercomm-h500-s.dtsi
@@ -8,6 +8,7 @@
#include "bcm63268.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
aliases {
@@ -62,7 +63,8 @@
led_power_red: power_red {
reg = <8>;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
wifi_green {
@@ -97,7 +99,8 @@
led_power_green: power_green {
reg = <17>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm63168-comtrend-vr-3032u.dts b/target/linux/bcm63xx/dts/bcm63168-comtrend-vr-3032u.dts
index c2505f86ba7..6627d67f8c0 100644
--- a/target/linux/bcm63xx/dts/bcm63168-comtrend-vr-3032u.dts
+++ b/target/linux/bcm63xx/dts/bcm63168-comtrend-vr-3032u.dts
@@ -3,6 +3,7 @@
#include "bcm63268.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend VR-3032u";
@@ -80,13 +81,15 @@
led@4 {
reg = <4>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@8 {
@@ -140,7 +143,8 @@
led_power_green: led@20 {
reg = <20>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
};
diff --git a/target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts b/target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts
index 47ba15608e6..4be787d0931 100644
--- a/target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts
+++ b/target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts
@@ -1,6 +1,7 @@
#include "bcm63268.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "SKY SR102";
@@ -40,7 +41,8 @@
gpios = <&pinctrl 1 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 2 1>;
};
wifi_red {
@@ -56,7 +58,8 @@
gpios = <&pinctrl 5 0>;
};
led_power_white: power_white {
- label = "white:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&pinctrl 6 0>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm63169-comtrend-vg-8050.dts b/target/linux/bcm63xx/dts/bcm63169-comtrend-vg-8050.dts
index 5d5ba46e3c7..373480b0130 100644
--- a/target/linux/bcm63xx/dts/bcm63169-comtrend-vg-8050.dts
+++ b/target/linux/bcm63xx/dts/bcm63169-comtrend-vg-8050.dts
@@ -3,6 +3,7 @@
#include "bcm63268.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend VG-8050";
@@ -60,20 +61,23 @@
led@3 {
reg = <3>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led_power_green: led@6 {
reg = <6>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led@7 {
reg = <7>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@8 {
@@ -97,7 +101,8 @@
led@14 {
reg = <14>;
active-low;
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts b/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts
index 8557730c8cd..a3a7d1a3c56 100644
--- a/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts
+++ b/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts
@@ -1,6 +1,7 @@
#include "bcm6318.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend AR-5315u";
@@ -89,20 +90,23 @@
led@0 {
reg = <0>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led_power_green: led@1 {
reg = <1>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led@2 {
reg = <2>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@4 {
@@ -154,7 +158,8 @@
led@11 {
reg = <11>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6318-d-link-dsl-275xb-d1.dts b/target/linux/bcm63xx/dts/bcm6318-d-link-dsl-275xb-d1.dts
index acf4332a66f..31d05b96ae6 100644
--- a/target/linux/bcm63xx/dts/bcm6318-d-link-dsl-275xb-d1.dts
+++ b/target/linux/bcm63xx/dts/bcm6318-d-link-dsl-275xb-d1.dts
@@ -1,6 +1,7 @@
#include "bcm6318.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2750B/DSL-2751 rev D1";
@@ -50,7 +51,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>;
default-state = "on";
};
@@ -71,7 +73,8 @@
};
wps_blue {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 16 1>;
};
@@ -82,7 +85,8 @@
usb_green {
/* not user controllable? */
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 49 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6318-sagem-fast-2704n.dts b/target/linux/bcm63xx/dts/bcm6318-sagem-fast-2704n.dts
index 6702ef16564..4d928f21553 100644
--- a/target/linux/bcm63xx/dts/bcm6318-sagem-fast-2704n.dts
+++ b/target/linux/bcm63xx/dts/bcm6318-sagem-fast-2704n.dts
@@ -1,6 +1,7 @@
#include "bcm6318.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Sagem F@st 2704N";
@@ -50,7 +51,8 @@
compatible = "gpio-leds";
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 2 1>;
};
lan1_green {
@@ -82,16 +84,19 @@
gpios = <&pinctrl 10 1>;
};
led_power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 11 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 47 1>;
default-state = "on";
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 49 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6328-adb-a4001n.dts b/target/linux/bcm63xx/dts/bcm6328-adb-a4001n.dts
index 641de68d356..790320a206f 100644
--- a/target/linux/bcm63xx/dts/bcm6328-adb-a4001n.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-adb-a4001n.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "ADB P.DG A4001N";
@@ -47,16 +48,19 @@
gpios = <&pinctrl 1 0>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 4 0>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 8 0>;
default-state = "on";
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>;
};
dsl_green {
diff --git a/target/linux/bcm63xx/dts/bcm6328-adb-a4001n1.dts b/target/linux/bcm63xx/dts/bcm6328-adb-a4001n1.dts
index bd05547bae9..f23716bd4d7 100644
--- a/target/linux/bcm63xx/dts/bcm6328-adb-a4001n1.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-adb-a4001n1.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "ADB P.DG A4001N1";
@@ -51,7 +52,8 @@
gpios = <&pinctrl 3 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
@@ -68,15 +70,18 @@
gpios = <&pinctrl 7 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 8 1>;
};
wlan_green {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 9 1>;
};
wlan_red {
- label = "red:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 10 1>;
};
inet_green {
diff --git a/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts b/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts
index f42b970c467..b2f3ddfc401 100644
--- a/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "ADB P.DG A4001N A-000-1A1-AX";
@@ -81,7 +82,8 @@
led@8 {
reg = <8>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@9 {
@@ -105,7 +107,8 @@
led_power_green: led@12 {
reg = <12>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4101n-a-000-1a1-ae.dts b/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4101n-a-000-1a1-ae.dts
index 7ffff4e2234..16c9af57471 100644
--- a/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4101n-a-000-1a1-ae.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-adb-pdg-a4101n-a-000-1a1-ae.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "ADB P.DG A4101N A-000-1A1-AE";
@@ -72,13 +73,15 @@
led@9 {
reg = <9>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@10 {
reg = <10>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@11 {
diff --git a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
index 5878e886d2e..7e196e5e683 100644
--- a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend AR-5381u";
@@ -80,7 +81,8 @@
led_alarm_red: led@2 {
reg = <2>;
active-low;
- label = "red:alarm";
+ function = LED_FUNCTION_ALARM;
+ color = <LED_COLOR_ID_RED>;
};
led@3 {
@@ -92,7 +94,8 @@
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts
index a703fd66298..a0f5691fb50 100644
--- a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend AR-5387un";
@@ -84,7 +85,8 @@
led@4 {
reg = <4>;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@7 {
@@ -94,7 +96,8 @@
led_power_green: led@8 {
reg = <8>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-274xb-f1.dts b/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-274xb-f1.dts
index 660a4d570ce..f320be4aca8 100644
--- a/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-274xb-f1.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-274xb-f1.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2740B/DSL-2741B rev F1";
@@ -58,16 +59,19 @@
gpios = <&pinctrl 3 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 8 1>;
};
wps_blue {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 9 1>;
};
inet_green {
diff --git a/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-2750u-c1.dts b/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-2750u-c1.dts
index 09152150392..cdbb5c2c5b2 100644
--- a/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-2750u-c1.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-d-link-dsl-2750u-c1.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2750U rev C1";
@@ -97,7 +98,8 @@
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
@@ -110,19 +112,22 @@
led@8 {
reg = <8>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@9 {
reg = <9>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@10 {
reg = <10>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@11 {
diff --git a/target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts b/target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts
index dd8ab129586..afedfe24508 100644
--- a/target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Innacomm W3400V6";
@@ -88,20 +89,23 @@
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led_power_red: led@5 {
reg = <5>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@11 {
reg = <11>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts b/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts
index 08f3736a7b5..e71e1436b52 100644
--- a/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "NuCom R5010UN v2";
@@ -55,7 +56,8 @@
gpios = <&pinctrl 3 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
@@ -64,11 +66,13 @@
gpios = <&pinctrl 5 1>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>;
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6328-sagem-fast-2704-v2.dts b/target/linux/bcm63xx/dts/bcm6328-sagem-fast-2704-v2.dts
index ff9b23049bc..06f314ca79d 100644
--- a/target/linux/bcm63xx/dts/bcm6328-sagem-fast-2704-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-sagem-fast-2704-v2.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Sagem F@st 2704 V2";
@@ -50,7 +51,8 @@
compatible = "gpio-leds";
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 1 1>;
};
inet_red {
@@ -62,16 +64,19 @@
gpios = <&pinctrl 3 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>;
};
inet_green {
diff --git a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
index 5a9f52648e2..1dda9d64f34 100644
--- a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
@@ -1,6 +1,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Sercomm AD1018 (SPI flash mod)";
@@ -81,7 +82,8 @@
led_power_green: power_green@8 {
reg = <8>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
@@ -106,7 +108,8 @@
wps_green@13 {
reg = <13>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
wifi_green@14 {
@@ -118,7 +121,8 @@
usb_green@15 {
reg = <15>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
ephy0_spd@17 {
diff --git a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts
index edb1ce49a68..edd1d8c348a 100644
--- a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Sercomm AD1018";
@@ -76,7 +77,8 @@
led_power_green: led@8 {
reg = <8>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
@@ -101,7 +103,8 @@
led@13 {
reg = <13>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@14 {
@@ -113,7 +116,8 @@
led@15 {
reg = <15>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@17 {
diff --git a/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n-telecom-italia.dts b/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n-telecom-italia.dts
index 0dfa38e474c..d88855f7a5a 100644
--- a/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n-telecom-italia.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n-telecom-italia.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Technicolor TG582n Telecom Italia";
@@ -57,7 +58,8 @@
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
@@ -76,7 +78,8 @@
led@8 {
reg = <8>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@11 {
diff --git a/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts b/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts
index 6ec20048cda..0bd7b72b3c7 100644
--- a/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts
+++ b/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts
@@ -3,6 +3,7 @@
#include "bcm6328.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Technicolor TG582n";
@@ -76,7 +77,8 @@
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
@@ -95,19 +97,22 @@
led@8 {
reg = <8>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@9 {
reg = <9>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@10 {
reg = <10>;
active-low;
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
};
led@11 {
diff --git a/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts b/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts
index 885654ad41d..882e376d5ba 100644
--- a/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts
+++ b/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts
@@ -1,6 +1,7 @@
#include "bcm6338.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96338GW reference board";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338w.dts b/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338w.dts
index 3002a9240ba..4165ddc3254 100644
--- a/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338w.dts
+++ b/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338w.dts
@@ -1,6 +1,7 @@
#include "bcm6338.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96338W reference board";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6338-d-link-dsl-2640u.dts b/target/linux/bcm63xx/dts/bcm6338-d-link-dsl-2640u.dts
index dae5324f0aa..c463eaa4fac 100644
--- a/target/linux/bcm63xx/dts/bcm6338-d-link-dsl-2640u.dts
+++ b/target/linux/bcm63xx/dts/bcm6338-d-link-dsl-2640u.dts
@@ -1,6 +1,7 @@
#include "bcm6338.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2640U/BRU/C";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
green_power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6338-dynalink-rta1320.dts b/target/linux/bcm63xx/dts/bcm6338-dynalink-rta1320.dts
index 7d3f4a598f6..7148727b1de 100644
--- a/target/linux/bcm63xx/dts/bcm6338-dynalink-rta1320.dts
+++ b/target/linux/bcm63xx/dts/bcm6338-dynalink-rta1320.dts
@@ -1,6 +1,7 @@
#include "bcm6338.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Dynalink RTA1320";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
green_power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770bw.dts b/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770bw.dts
index e5b67291b18..0e4b91333e8 100644
--- a/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770bw.dts
+++ b/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770bw.dts
@@ -1,6 +1,7 @@
#include "bcm6345.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Siemens Gigaset SE515";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 7 1>;
};
@@ -51,7 +53,8 @@
};
wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770w.dts b/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770w.dts
index 65fb1d7b1ef..4ca9f51aa75 100644
--- a/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770w.dts
+++ b/target/linux/bcm63xx/dts/bcm6345-dynalink-rta770w.dts
@@ -1,6 +1,7 @@
#include "bcm6345.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Dynalink RTA770W";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 7 1>;
};
@@ -51,7 +53,8 @@
};
wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-asmax-ar-1004g.dts b/target/linux/bcm63xx/dts/bcm6348-asmax-ar-1004g.dts
index 6ffa3b457d3..43cdb2da92c 100644
--- a/target/linux/bcm63xx/dts/bcm6348-asmax-ar-1004g.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-asmax-ar-1004g.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "ASMAX AR 1004g";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
@@ -45,7 +47,8 @@
gpios = <&pinctrl 3 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 6 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-belkin-f5d7633.dts b/target/linux/bcm63xx/dts/bcm6348-belkin-f5d7633.dts
index 620d6510b64..7686c3deb49 100644
--- a/target/linux/bcm63xx/dts/bcm6348-belkin-f5d7633.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-belkin-f5d7633.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Belkin F5D7633";
@@ -29,7 +30,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-10.dts b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-10.dts
index 8e19d7a261b..d683ac1f09d 100644
--- a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-10.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-10.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96348GW-10 reference board";
@@ -29,7 +30,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-11.dts b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-11.dts
index cf983b446b7..09378dd5147 100644
--- a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-11.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw-11.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96348GW-11 reference board";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw.dts b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw.dts
index 9eeb50625d3..ea1eded5688 100644
--- a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348gw.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96348GW reference board";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348r.dts b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348r.dts
index 2b544045601..ff678dc0563 100644
--- a/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348r.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-brcm-bcm96348r.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom 96348R reference board";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2110.dts b/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2110.dts
index 39aa48971de..d80ed9a943b 100644
--- a/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2110.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2110.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "BT Voyager 2110";
@@ -36,11 +37,13 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>;
};
adsl_green {
diff --git a/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2500v-bb.dts b/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2500v-bb.dts
index 5e399a05a57..bc8616ada1c 100644
--- a/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2500v-bb.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-bt-voyager-2500v-bb.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "BT Voyager 2500V";
@@ -29,11 +30,13 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>;
};
adsl_green {
diff --git a/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-5365.dts b/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-5365.dts
index 308139b0ce0..4eef3139b74 100644
--- a/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-5365.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-5365.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend CT-5365";
@@ -43,16 +44,19 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
alarm_red {
- label = "red:alarm";
+ function = LED_FUNCTION_ALARM;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 2 1>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 6 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-536plus.dts b/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-536plus.dts
index e95e4e6e4f4..2460ccb10c3 100644
--- a/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-536plus.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-comtrend-ct-536plus.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend CT-536+/CT-5621T";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-d-link-dsl-2640b-b.dts b/target/linux/bcm63xx/dts/bcm6348-d-link-dsl-2640b-b.dts
index d71bc4e56a6..f50992b02b6 100644
--- a/target/linux/bcm63xx/dts/bcm6348-d-link-dsl-2640b-b.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-d-link-dsl-2640b-b.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2640B rev B2";
@@ -36,7 +37,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-netgear-dg834g-v4.dts b/target/linux/bcm63xx/dts/bcm6348-netgear-dg834g-v4.dts
index e91a4105dbe..318f12b66ca 100644
--- a/target/linux/bcm63xx/dts/bcm6348-netgear-dg834g-v4.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-netgear-dg834g-v4.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Netgear DG834G v4";
@@ -29,12 +30,14 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
status {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>;
};
inet_green {
diff --git a/target/linux/bcm63xx/dts/bcm6348-netgear-dg834gt-pn.dts b/target/linux/bcm63xx/dts/bcm6348-netgear-dg834gt-pn.dts
index 3f17f987dad..eb20d4b6c8a 100644
--- a/target/linux/bcm63xx/dts/bcm6348-netgear-dg834gt-pn.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-netgear-dg834gt-pn.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Netgear DG834GT/PN";
@@ -29,7 +30,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-sagem-fast-2604.dts b/target/linux/bcm63xx/dts/bcm6348-sagem-fast-2604.dts
index 987903d525e..4a1862b71f0 100644
--- a/target/linux/bcm63xx/dts/bcm6348-sagem-fast-2604.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-sagem-fast-2604.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Sagem F@st 2604";
@@ -29,12 +30,14 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>;
};
inet_red {
@@ -42,7 +45,8 @@
gpios = <&pinctrl 4 1>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-t-com-speedport-w-500v.dts b/target/linux/bcm63xx/dts/bcm6348-t-com-speedport-w-500v.dts
index c096b88d8fc..29cc3fa6443 100644
--- a/target/linux/bcm63xx/dts/bcm6348-t-com-speedport-w-500v.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-t-com-speedport-w-500v.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "T-Com Speedport W 500V";
@@ -36,12 +37,14 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>;
};
ppp_green {
diff --git a/target/linux/bcm63xx/dts/bcm6348-telsey-magic.dts b/target/linux/bcm63xx/dts/bcm6348-telsey-magic.dts
index 00ce70f17ba..c9d9989168c 100644
--- a/target/linux/bcm63xx/dts/bcm6348-telsey-magic.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-telsey-magic.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Alice W-Gate";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
@@ -46,7 +48,8 @@
};
usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 35 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6348-tp-link-td-w8900gb.dts b/target/linux/bcm63xx/dts/bcm6348-tp-link-td-w8900gb.dts
index 1a49e7ff337..6e1f7155d95 100644
--- a/target/linux/bcm63xx/dts/bcm6348-tp-link-td-w8900gb.dts
+++ b/target/linux/bcm63xx/dts/bcm6348-tp-link-td-w8900gb.dts
@@ -1,6 +1,7 @@
#include "bcm6348.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "TP-Link TD-W8900GB";
@@ -29,7 +30,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-alcatel-rg100a.dts b/target/linux/bcm63xx/dts/bcm6358-alcatel-rg100a.dts
index fdc1edf9069..0b5abbd1f69 100644
--- a/target/linux/bcm63xx/dts/bcm6358-alcatel-rg100a.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-alcatel-rg100a.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Alcatel RG100A";
@@ -19,7 +20,8 @@
gpios = <&pinctrl 4 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw.dts b/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw.dts
index bf997935e86..0a09b2d86c4 100644
--- a/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96358VW reference board";
@@ -15,7 +16,8 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 0>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw2.dts b/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw2.dts
index 316581d2a5a..a89fdb1fe46 100644
--- a/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw2.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-brcm-bcm96358vw2.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96358VW2 reference board";
@@ -19,7 +20,8 @@
gpios = <&pinctrl 4 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-bt-home-hub-2-a.dts b/target/linux/bcm63xx/dts/bcm6358-bt-home-hub-2-a.dts
index 10aea48783b..809f3b39b4c 100644
--- a/target/linux/bcm63xx/dts/bcm6358-bt-home-hub-2-a.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-bt-home-hub-2-a.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "BT Home Hub 2.0 Type A";
@@ -56,20 +57,23 @@
led@0 {
reg = <0>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led_power_green: led@1 {
reg = <1>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led@2 {
reg = <2>;
active-low;
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
};
led@3 {
diff --git a/target/linux/bcm63xx/dts/bcm6358-comtrend-ct-6373.dts b/target/linux/bcm63xx/dts/bcm6358-comtrend-ct-6373.dts
index ab9d5659ba6..2dc85f67763 100644
--- a/target/linux/bcm63xx/dts/bcm6358-comtrend-ct-6373.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-comtrend-ct-6373.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend CT-6373";
@@ -29,16 +30,19 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 0>;
default-state = "on";
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>;
};
wlan_green {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 9 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-2650u.dts b/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-2650u.dts
index 6d26261a34d..dbc4172f54d 100644
--- a/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-2650u.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-2650u.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2650U";
@@ -19,7 +20,8 @@
gpios = <&pinctrl 4 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-274xb-c2.dts b/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-274xb-c2.dts
index ff007ebe4c7..917fd6dc1dc 100644
--- a/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-274xb-c2.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-d-link-dsl-274xb-c2.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "D-Link DSL-2740B/DSL-2741B rev C2/3";
@@ -40,11 +41,13 @@
gpios = <&pinctrl 2 0>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 4 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg553.dts b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg553.dts
index 243e2ca3003..052262dca71 100644
--- a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg553.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg553.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Huawei EchoLife HG553";
@@ -43,12 +44,14 @@
compatible = "gpio-leds";
led_power_blue: power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>;
};
hspa_red {
@@ -60,11 +63,13 @@
gpios = <&pinctrl 13 1>;
};
lan_red {
- label = "red:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 22 1>;
};
lan_blue {
- label = "blue:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 23 1>;
};
wifi_red {
diff --git a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a.dtsi b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a.dtsi
index 09a21f7ad73..f64e02e1c53 100644
--- a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a.dtsi
+++ b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a.dtsi
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
aliases {
@@ -52,7 +53,8 @@
};
led_power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 3 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6358-pirelli-a226.dtsi b/target/linux/bcm63xx/dts/bcm6358-pirelli-a226.dtsi
index cc833b0c18d..f6de31ccf91 100644
--- a/target/linux/bcm63xx/dts/bcm6358-pirelli-a226.dtsi
+++ b/target/linux/bcm63xx/dts/bcm6358-pirelli-a226.dtsi
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
chosen {
@@ -45,16 +46,19 @@
gpios = <&pinctrl 2 1>;
};
usb_green {
- label = "green:USB";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>;
};
inet_red {
@@ -78,7 +82,8 @@
gpios = <&pinctrl 10 1>;
};
usb_red {
- label = "red:USB";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 11 1>;
};
dsl_red {
diff --git a/target/linux/bcm63xx/dts/bcm6358-pirelli-agpf-s0.dts b/target/linux/bcm63xx/dts/bcm6358-pirelli-agpf-s0.dts
index 12e9a0eba38..55cea95b84b 100644
--- a/target/linux/bcm63xx/dts/bcm6358-pirelli-agpf-s0.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-pirelli-agpf-s0.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Pirelli Alice Gate AGPF-S0";
@@ -36,12 +37,14 @@
compatible = "gpio-leds";
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>;
};
service_green {
diff --git a/target/linux/bcm63xx/dts/bcm6358-sfr-neufbox-4.dtsi b/target/linux/bcm63xx/dts/bcm6358-sfr-neufbox-4.dtsi
index 58075c879ad..9be493ebd54 100644
--- a/target/linux/bcm63xx/dts/bcm6358-sfr-neufbox-4.dtsi
+++ b/target/linux/bcm63xx/dts/bcm6358-sfr-neufbox-4.dtsi
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
chosen {
@@ -53,7 +54,8 @@
led@0 {
reg = <0>;
active-low;
- label = "white:alarm";
+ function = LED_FUNCTION_ALARM;
+ color = <LED_COLOR_ID_WHITE>;
};
led@2 {
diff --git a/target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts b/target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts
index f679b40ac9d..1a6b9658bb1 100644
--- a/target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts
+++ b/target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts
@@ -1,6 +1,7 @@
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Telsey CPVA642-type (CPA-ZNTE60T)";
@@ -51,7 +52,8 @@
gpios = <&pinctrl 2 1>;
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>;
};
phone1_green {
@@ -71,12 +73,14 @@
gpios = <&pinctrl 10 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 14 1>;
};
wifi_green {
diff --git a/target/linux/bcm63xx/dts/bcm6362-huawei-hg253s-v2.dts b/target/linux/bcm63xx/dts/bcm6362-huawei-hg253s-v2.dts
index 255c1c8f6c9..9217fd30989 100644
--- a/target/linux/bcm63xx/dts/bcm6362-huawei-hg253s-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6362-huawei-hg253s-v2.dts
@@ -1,6 +1,7 @@
#include "bcm6362.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Huawei HG253s v2";
@@ -54,7 +55,8 @@
};
led@30 {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 30 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6362-netgear-dgnd3700-v2.dts b/target/linux/bcm63xx/dts/bcm6362-netgear-dgnd3700-v2.dts
index 4bef5908e03..8d457c906e1 100644
--- a/target/linux/bcm63xx/dts/bcm6362-netgear-dgnd3700-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6362-netgear-dgnd3700-v2.dts
@@ -3,6 +3,7 @@
#include "bcm6362.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Netgear DGND3700v2";
@@ -57,7 +58,8 @@
};
led@34 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 34 1>;
};
};
@@ -81,14 +83,16 @@
led_power_green: led@8 {
reg = <8>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led@9 {
reg = <9>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@10 {
diff --git a/target/linux/bcm63xx/dts/bcm6362-sagem-fast-2504n.dts b/target/linux/bcm63xx/dts/bcm6362-sagem-fast-2504n.dts
index e5ae573c973..105e56a5969 100644
--- a/target/linux/bcm63xx/dts/bcm6362-sagem-fast-2504n.dts
+++ b/target/linux/bcm63xx/dts/bcm6362-sagem-fast-2504n.dts
@@ -1,6 +1,7 @@
#include "bcm6362.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Sagem F@st 2504N";
@@ -43,11 +44,13 @@
compatible = "gpio-leds";
power_orange {
- label = "orange:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pinctrl 2 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>;
default-state = "on";
};
@@ -64,7 +67,8 @@
gpios = <&pinctrl 29 1>;
};
wlan_orangee {
- label = "orange:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pinctrl 30 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6368-actiontec-r1000h.dts b/target/linux/bcm63xx/dts/bcm6368-actiontec-r1000h.dts
index fa038962c27..3fe1693331a 100644
--- a/target/linux/bcm63xx/dts/bcm6368-actiontec-r1000h.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-actiontec-r1000h.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Actiontec R1000H";
@@ -48,28 +49,33 @@
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 21 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>;
};
wps_red {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 30 1>;
};
diff --git a/target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts b/target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts
index fb1b4bcf060..45046f326a9 100644
--- a/target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts
@@ -2,6 +2,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "ADB P.DG AV4202N";
@@ -44,20 +45,24 @@
compatible = "gpio-leds";
led_power_white: power_white {
- label = "white:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
};
wan_white {
- label = "white:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
};
wan_red {
- label = "red:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
};
phone_white {
diff --git a/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvngr.dts b/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvngr.dts
index 50c57d52716..6160ab636e6 100644
--- a/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvngr.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvngr.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96368MVNgr reference board";
@@ -27,12 +28,14 @@
gpios = <&pinctrl 5 0>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvwg.dts b/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvwg.dts
index 664e3e02f57..10f98511c0c 100644
--- a/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvwg.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-brcm-bcm96368mvwg.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Broadcom BCM96368MVWG reference board";
@@ -23,12 +24,14 @@
gpios = <&pinctrl 5 0>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>;
};
ppp_fail_red {
diff --git a/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025u.dts b/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025u.dts
index a237d18ac71..12195de8013 100644
--- a/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025u.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025u.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend VR-3025u";
@@ -44,12 +45,14 @@
gpios = <&pinctrl 5 0>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>;
};
inet_red {
diff --git a/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025un.dts b/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025un.dts
index 2391fb06710..6a17c49d120 100644
--- a/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025un.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3025un.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend VR-3025un";
@@ -44,12 +45,14 @@
gpios = <&pinctrl 5 0>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>;
};
inet_red {
diff --git a/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3026e.dts b/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3026e.dts
index b17439ea23b..b56f6932431 100644
--- a/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3026e.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-comtrend-vr-3026e.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend VR-3026e";
@@ -44,12 +45,14 @@
gpios = <&pinctrl 5 0>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>;
};
inet_red {
diff --git a/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg622.dts b/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg622.dts
index 95e482bca36..89c9c26032d 100644
--- a/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg622.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg622.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Huawei EchoLife HG622";
@@ -38,11 +39,13 @@
gpios = <&pinctrl 5 1>;
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>;
};
power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg655b.dts b/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg655b.dts
index 124b5ca1b7d..778753558d4 100644
--- a/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg655b.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-huawei-echolife-hg655b.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Huawei EchoLife HG655b";
@@ -59,11 +60,13 @@
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 14 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 1>;
default-state = "on";
};
@@ -72,7 +75,8 @@
gpios = <&pinctrl 25 1>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 27 1>;
};
};
diff --git a/target/linux/bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts b/target/linux/bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts
index 700adea4c19..b1053903f2d 100644
--- a/target/linux/bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Netgear DGND3700v1/DGND3800B";
@@ -62,7 +63,8 @@
gpios = <&pinctrl 5 1>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>;
};
usbfront_green {
@@ -74,15 +76,18 @@
gpios = <&pinctrl 14 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 22 1>;
};
lan_green {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 24 1>;
default-state = "on";
};
diff --git a/target/linux/bcm63xx/dts/bcm6368-observa-vh4032n.dts b/target/linux/bcm63xx/dts/bcm6368-observa-vh4032n.dts
index 9ed3cc23d0e..7e018584a16 100644
--- a/target/linux/bcm63xx/dts/bcm6368-observa-vh4032n.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-observa-vh4032n.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Observa VH4032N";
@@ -59,12 +60,14 @@
gpios = <&pinctrl 12 1>;
};
led_power_blue: power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>;
};
voice_blue {
diff --git a/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts b/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
index 0bc66fb031a..6118cd81117 100644
--- a/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
+++ b/target/linux/bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Zyxel P870HW-51a v2";
@@ -43,7 +44,8 @@
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 0>;
default-state = "on";
};
@@ -56,7 +58,8 @@
gpios = <&pinctrl 22 1>;
};
wps_orange {
- label = "orange:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pinctrl 24 1>;
};
inet_red {
diff --git a/target/linux/bcm63xx/dts/bcm6369-comtrend-wap-5813n.dts b/target/linux/bcm63xx/dts/bcm6369-comtrend-wap-5813n.dts
index 2f0ec53e347..a25ce69f00e 100644
--- a/target/linux/bcm63xx/dts/bcm6369-comtrend-wap-5813n.dts
+++ b/target/linux/bcm63xx/dts/bcm6369-comtrend-wap-5813n.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Comtrend WAP-5813n";
@@ -54,16 +55,19 @@
gpios = <&pinctrl 5 0>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>;
default-state = "on";
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>;
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>;
};
inet_red {
diff --git a/target/linux/bcm63xx/dts/bcm6369-netgear-evg2000.dts b/target/linux/bcm63xx/dts/bcm6369-netgear-evg2000.dts
index b96ba7eb653..3e9d9e873ca 100644
--- a/target/linux/bcm63xx/dts/bcm6369-netgear-evg2000.dts
+++ b/target/linux/bcm63xx/dts/bcm6369-netgear-evg2000.dts
@@ -1,6 +1,7 @@
#include "bcm6368.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "Netgear EVG2000";
@@ -59,20 +60,24 @@
gpios = <&pinctrl 5 1>;
};
usb_green {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 15 1>;
};
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 1>;
default-state = "on";
};
power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 23 1>;
};
lan_green {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 24 1>;
};
wireless_green {
@@ -80,7 +85,8 @@
gpios = <&pinctrl 26 1>;
};
wan_green {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 27 1>;
};
};