From 4a8928526e0b27eaedee49b6d8bc3a4844cca996 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Wed, 7 Feb 2024 14:48:35 +0100 Subject: [PATCH] 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 --- .../bcm63xx/dts/bcm3368-netgear-cvg834g.dts | 4 +++- .../bcm63xx/dts/bcm63167-sercomm-h500-s.dtsi | 7 +++++-- .../bcm63xx/dts/bcm63168-comtrend-vr-3032u.dts | 10 +++++++--- target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts | 7 +++++-- .../bcm63xx/dts/bcm63169-comtrend-vg-8050.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6318-d-link-dsl-275xb-d1.dts | 10 +++++++--- .../bcm63xx/dts/bcm6318-sagem-fast-2704n.dts | 13 +++++++++---- target/linux/bcm63xx/dts/bcm6328-adb-a4001n.dts | 10 +++++++--- target/linux/bcm63xx/dts/bcm6328-adb-a4001n1.dts | 13 +++++++++---- .../dts/bcm6328-adb-pdg-a4001n-a-000-1a1-ax.dts | 7 +++++-- .../dts/bcm6328-adb-pdg-a4101n-a-000-1a1-ae.dts | 7 +++++-- .../bcm63xx/dts/bcm6328-comtrend-ar-5381u.dts | 7 +++++-- .../bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts | 7 +++++-- .../bcm63xx/dts/bcm6328-d-link-dsl-274xb-f1.dts | 10 +++++++--- .../bcm63xx/dts/bcm6328-d-link-dsl-2750u-c1.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6328-innacomm-w3400v6.dts | 10 +++++++--- .../bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts | 10 +++++++--- .../bcm63xx/dts/bcm6328-sagem-fast-2704-v2.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts | 10 +++++++--- .../linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts | 10 +++++++--- ...bcm6328-technicolor-tg582n-telecom-italia.dts | 7 +++++-- .../bcm63xx/dts/bcm6328-technicolor-tg582n.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts | 4 +++- .../linux/bcm63xx/dts/bcm6338-brcm-bcm96338w.dts | 4 +++- .../bcm63xx/dts/bcm6338-d-link-dsl-2640u.dts | 4 +++- .../bcm63xx/dts/bcm6338-dynalink-rta1320.dts | 4 +++- .../bcm63xx/dts/bcm6345-dynalink-rta770bw.dts | 7 +++++-- .../bcm63xx/dts/bcm6345-dynalink-rta770w.dts | 7 +++++-- .../linux/bcm63xx/dts/bcm6348-asmax-ar-1004g.dts | 7 +++++-- .../linux/bcm63xx/dts/bcm6348-belkin-f5d7633.dts | 4 +++- .../bcm63xx/dts/bcm6348-brcm-bcm96348gw-10.dts | 4 +++- .../bcm63xx/dts/bcm6348-brcm-bcm96348gw-11.dts | 4 +++- .../bcm63xx/dts/bcm6348-brcm-bcm96348gw.dts | 4 +++- .../linux/bcm63xx/dts/bcm6348-brcm-bcm96348r.dts | 4 +++- .../bcm63xx/dts/bcm6348-bt-voyager-2110.dts | 7 +++++-- .../bcm63xx/dts/bcm6348-bt-voyager-2500v-bb.dts | 7 +++++-- .../bcm63xx/dts/bcm6348-comtrend-ct-5365.dts | 10 +++++++--- .../bcm63xx/dts/bcm6348-comtrend-ct-536plus.dts | 4 +++- .../bcm63xx/dts/bcm6348-d-link-dsl-2640b-b.dts | 4 +++- .../bcm63xx/dts/bcm6348-netgear-dg834g-v4.dts | 7 +++++-- .../bcm63xx/dts/bcm6348-netgear-dg834gt-pn.dts | 4 +++- .../bcm63xx/dts/bcm6348-sagem-fast-2604.dts | 10 +++++++--- .../dts/bcm6348-t-com-speedport-w-500v.dts | 7 +++++-- .../linux/bcm63xx/dts/bcm6348-telsey-magic.dts | 7 +++++-- .../bcm63xx/dts/bcm6348-tp-link-td-w8900gb.dts | 4 +++- .../linux/bcm63xx/dts/bcm6358-alcatel-rg100a.dts | 4 +++- .../bcm63xx/dts/bcm6358-brcm-bcm96358vw.dts | 4 +++- .../bcm63xx/dts/bcm6358-brcm-bcm96358vw2.dts | 4 +++- .../bcm63xx/dts/bcm6358-bt-home-hub-2-a.dts | 10 +++++++--- .../bcm63xx/dts/bcm6358-comtrend-ct-6373.dts | 10 +++++++--- .../bcm63xx/dts/bcm6358-d-link-dsl-2650u.dts | 4 +++- .../bcm63xx/dts/bcm6358-d-link-dsl-274xb-c2.dts | 7 +++++-- .../dts/bcm6358-huawei-echolife-hg553.dts | 13 +++++++++---- .../dts/bcm6358-huawei-echolife-hg556a.dtsi | 4 +++- .../linux/bcm63xx/dts/bcm6358-pirelli-a226.dtsi | 13 +++++++++---- .../bcm63xx/dts/bcm6358-pirelli-agpf-s0.dts | 7 +++++-- .../linux/bcm63xx/dts/bcm6358-sfr-neufbox-4.dtsi | 4 +++- .../linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts | 10 +++++++--- .../bcm63xx/dts/bcm6362-huawei-hg253s-v2.dts | 4 +++- .../bcm63xx/dts/bcm6362-netgear-dgnd3700-v2.dts | 10 +++++++--- .../bcm63xx/dts/bcm6362-sagem-fast-2504n.dts | 10 +++++++--- .../bcm63xx/dts/bcm6368-actiontec-r1000h.dts | 16 +++++++++++----- target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6368-brcm-bcm96368mvngr.dts | 7 +++++-- .../bcm63xx/dts/bcm6368-brcm-bcm96368mvwg.dts | 7 +++++-- .../bcm63xx/dts/bcm6368-comtrend-vr-3025u.dts | 7 +++++-- .../bcm63xx/dts/bcm6368-comtrend-vr-3025un.dts | 7 +++++-- .../bcm63xx/dts/bcm6368-comtrend-vr-3026e.dts | 7 +++++-- .../dts/bcm6368-huawei-echolife-hg622.dts | 7 +++++-- .../dts/bcm6368-huawei-echolife-hg655b.dts | 10 +++++++--- .../bcm63xx/dts/bcm6368-netgear-dgnd3700-v1.dts | 13 +++++++++---- .../bcm63xx/dts/bcm6368-observa-vh4032n.dts | 7 +++++-- .../bcm63xx/dts/bcm6368-zyxel-p870hw-51a-v2.dts | 7 +++++-- .../bcm63xx/dts/bcm6369-comtrend-wap-5813n.dts | 10 +++++++--- .../bcm63xx/dts/bcm6369-netgear-evg2000.dts | 16 +++++++++++----- 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 fb22f769d6..998ca6002a 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 +#include / { model = "Netgear CVG834G"; @@ -22,7 +23,8 @@ compatible = "gpio-leds"; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 0766500734..af633cadeb 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 +#include / { aliases { @@ -62,7 +63,8 @@ led_power_red: power_red { reg = <8>; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; wifi_green { @@ -97,7 +99,8 @@ led_power_green: power_green { reg = <17>; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 c2505f86ba..6627d67f8c 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 +#include / { model = "Comtrend VR-3032u"; @@ -80,13 +81,15 @@ led@4 { reg = <4>; active-low; - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; }; led@7 { reg = <7>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led@8 { @@ -140,7 +143,8 @@ led_power_green: led@20 { reg = <20>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; }; diff --git a/target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts b/target/linux/bcm63xx/dts/bcm63168-sky-sr102.dts index 47ba15608e..4be787d093 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 +#include / { model = "SKY SR102"; @@ -40,7 +41,8 @@ gpios = <&pinctrl 1 1>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 = ; 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 5d5ba46e3c..373480b013 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 +#include / { model = "Comtrend VG-8050"; @@ -60,20 +61,23 @@ led@3 { reg = <3>; active-low; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; led_power_green: led@6 { reg = <6>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; led@7 { reg = <7>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led@8 { @@ -97,7 +101,8 @@ led@14 { reg = <14>; active-low; - label = "red:wps"; + function = LED_FUNCTION_WPS; + color = ; }; }; diff --git a/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts b/target/linux/bcm63xx/dts/bcm6318-comtrend-ar-5315u.dts index 8557730c8c..a3a7d1a3c5 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 +#include / { model = "Comtrend AR-5315u"; @@ -89,20 +90,23 @@ led@0 { reg = <0>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led_power_green: led@1 { reg = <1>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; led@2 { reg = <2>; active-low; - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; }; led@4 { @@ -154,7 +158,8 @@ led@11 { reg = <11>; active-low; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; }; 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 acf4332a66..31d05b96ae 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 +#include / { 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 = ; gpios = <&pinctrl 3 1>; default-state = "on"; }; @@ -71,7 +73,8 @@ }; wps_blue { - label = "blue:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&pinctrl 16 1>; }; @@ -82,7 +85,8 @@ usb_green { /* not user controllable? */ - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 6702ef1656..4d928f2155 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 +#include / { model = "Sagem F@st 2704N"; @@ -50,7 +51,8 @@ compatible = "gpio-leds"; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 = ; gpios = <&pinctrl 11 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 47 1>; default-state = "on"; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 641de68d35..790320a206 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 +#include / { model = "ADB P.DG A4001N"; @@ -47,16 +48,19 @@ gpios = <&pinctrl 1 0>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 4 0>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 8 0>; default-state = "on"; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 bd05547bae..f23716bd4d 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 +#include / { 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 = ; 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 = ; gpios = <&pinctrl 8 1>; }; wlan_green { - label = "green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&pinctrl 9 1>; }; wlan_red { - label = "red:wlan"; + function = LED_FUNCTION_WLAN; + color = ; 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 f42b970c46..b2f3ddfc40 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 +#include / { 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@9 { @@ -105,7 +107,8 @@ led_power_green: led@12 { reg = <12>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 7ffff4e223..16c9af5747 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 +#include / { 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@10 { reg = <10>; active-low; - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; }; 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 5878e886d2..7e196e5e68 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 +#include / { 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@3 { @@ -92,7 +94,8 @@ led_power_green: led@4 { reg = <4>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 a703fd6629..a0f5691fb5 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 +#include / { model = "Comtrend AR-5387un"; @@ -84,7 +85,8 @@ led@4 { reg = <4>; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; led@7 { @@ -94,7 +96,8 @@ led_power_green: led@8 { reg = <8>; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 660a4d570c..f320be4aca 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 +#include / { 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 = ; gpios = <&pinctrl 4 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 8 1>; }; wps_blue { - label = "blue:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 0915215039..cdbb5c2c5b 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 +#include / { 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 = ; default-state = "on"; }; @@ -110,19 +112,22 @@ led@8 { reg = <8>; active-low; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; led@9 { reg = <9>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led@10 { reg = <10>; active-low; - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; }; led@11 { diff --git a/target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts b/target/linux/bcm63xx/dts/bcm6328-innacomm-w3400v6.dts index dd8ab12958..afedfe2450 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 +#include / { model = "Innacomm W3400V6"; @@ -88,20 +89,23 @@ led_power_green: led@4 { reg = <4>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; led_power_red: led@5 { reg = <5>; active-low; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; led@11 { reg = <11>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; }; diff --git a/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts b/target/linux/bcm63xx/dts/bcm6328-nucom-r5010un-v2.dts index 08f3736a7b..e71e1436b5 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 +#include / { 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 = ; 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 = ; gpios = <&pinctrl 10 1>; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 ff9b23049b..06f314ca79 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 +#include / { model = "Sagem F@st 2704 V2"; @@ -50,7 +51,8 @@ compatible = "gpio-leds"; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 = ; gpios = <&pinctrl 4 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 5 1>; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 5a9f52648e..1dda9d64f3 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 +#include / { 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 = ; default-state = "on"; }; @@ -106,7 +108,8 @@ wps_green@13 { reg = <13>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; wifi_green@14 { @@ -118,7 +121,8 @@ usb_green@15 { reg = <15>; active-low; - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; }; ephy0_spd@17 { diff --git a/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts b/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018.dts index edb1ce49a6..edd1d8c348 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 +#include / { model = "Sercomm AD1018"; @@ -76,7 +77,8 @@ led_power_green: led@8 { reg = <8>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; @@ -101,7 +103,8 @@ led@13 { reg = <13>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led@14 { @@ -113,7 +116,8 @@ led@15 { reg = <15>; active-low; - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; }; 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 0dfa38e474..d88855f7a5 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 +#include / { 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 = ; default-state = "on"; }; @@ -76,7 +78,8 @@ led@8 { reg = <8>; active-low; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; led@11 { diff --git a/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts b/target/linux/bcm63xx/dts/bcm6328-technicolor-tg582n.dts index 6ec20048cd..0bd7b72b3c 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 +#include / { model = "Technicolor TG582n"; @@ -76,7 +77,8 @@ led_power_green: led@4 { reg = <4>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; @@ -95,19 +97,22 @@ led@8 { reg = <8>; active-low; - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; }; led@9 { reg = <9>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led@10 { reg = <10>; active-low; - label = "red:wps"; + function = LED_FUNCTION_WPS; + color = ; }; led@11 { diff --git a/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts b/target/linux/bcm63xx/dts/bcm6338-brcm-bcm96338gw.dts index 885654ad41..882e376d5b 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 +#include / { model = "Broadcom BCM96338GW reference board"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 3002a9240b..4165ddc325 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 +#include / { model = "Broadcom BCM96338W reference board"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 dae5324f0a..c463eaa4fa 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 +#include / { model = "D-Link DSL-2640U/BRU/C"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; green_power { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 7d3f4a598f..7148727b1d 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 +#include / { model = "Dynalink RTA1320"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; green_power { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 e5b67291b1..0e4b91333e 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 +#include / { model = "Siemens Gigaset SE515"; @@ -36,7 +37,8 @@ compatible = "gpio-leds"; usb { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&gpio0 7 1>; }; @@ -51,7 +53,8 @@ }; wlan { - label = "green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; 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 65fb1d7b1e..4ca9f51aa7 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 +#include / { model = "Dynalink RTA770W"; @@ -36,7 +37,8 @@ compatible = "gpio-leds"; usb { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&gpio0 7 1>; }; @@ -51,7 +53,8 @@ }; wlan { - label = "green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; 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 6ffa3b457d..43cdb2da92 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 +#include / { model = "ASMAX AR 1004g"; @@ -36,7 +37,8 @@ compatible = "gpio-leds"; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 = ; 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 620d6510b6..7686c3deb4 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 +#include / { model = "Belkin F5D7633"; @@ -29,7 +30,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 8e19d7a261..d683ac1f09 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 +#include / { model = "Broadcom BCM96348GW-10 reference board"; @@ -29,7 +30,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 cf983b446b..09378dd514 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 +#include / { 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 = ; 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 9eeb50625d..ea1eded568 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 +#include / { 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 = ; 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 2b54404560..ff678dc056 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 +#include / { model = "Broadcom 96348R reference board"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 39aa48971d..d80ed9a943 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 +#include / { model = "BT Voyager 2110"; @@ -36,11 +37,13 @@ compatible = "gpio-leds"; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 1>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 5e399a05a5..bc8616ada1 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 +#include / { model = "BT Voyager 2500V"; @@ -29,11 +30,13 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 1>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 308139b0ce..4eef3139b7 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 +#include / { model = "Comtrend CT-5365"; @@ -43,16 +44,19 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 1>; default-state = "on"; }; alarm_red { - label = "red:alarm"; + function = LED_FUNCTION_ALARM; + color = ; gpios = <&pinctrl 2 1>; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 e95e4e6e4f..2460ccb10c 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 +#include / { 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 = ; 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 d71bc4e56a..f50992b02b 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 +#include / { 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 = ; 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 e91a4105db..318f12b66c 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 +#include / { model = "Netgear DG834G v4"; @@ -29,12 +30,14 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 1>; default-state = "on"; }; status { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 3f17f987da..eb20d4b6c8 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 +#include / { model = "Netgear DG834GT/PN"; @@ -29,7 +30,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 987903d525..4a1862b71f 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 +#include / { model = "Sagem F@st 2604"; @@ -29,12 +30,14 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 1 1>; }; inet_red { @@ -42,7 +45,8 @@ gpios = <&pinctrl 4 1>; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 c096b88d8f..29cc3fa644 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 +#include / { 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 = ; gpios = <&pinctrl 0 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 00ce70f17b..c9d9989168 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 +#include / { model = "Alice W-Gate"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; power { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 1>; default-state = "on"; }; @@ -46,7 +48,8 @@ }; usb { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 1a49e7ff33..6e1f7155d9 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 +#include / { model = "TP-Link TD-W8900GB"; @@ -29,7 +30,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 fdc1edf906..0b5abbd1f6 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 +#include / { model = "Alcatel RG100A"; @@ -19,7 +20,8 @@ gpios = <&pinctrl 4 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 bf997935e8..0a09b2d86c 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 +#include / { model = "Broadcom BCM96358VW reference board"; @@ -15,7 +16,8 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 316581d2a5..a89fdb1fe4 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 +#include / { model = "Broadcom BCM96358VW2 reference board"; @@ -19,7 +20,8 @@ gpios = <&pinctrl 4 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 10aea48783..809f3b39b4 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 +#include / { 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_power_green: led@1 { reg = <1>; active-low; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; led@2 { reg = <2>; active-low; - label = "blue:power"; + function = LED_FUNCTION_POWER; + color = ; }; 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 ab9d5659ba..2dc85f6776 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 +#include / { model = "Comtrend CT-6373"; @@ -29,16 +30,19 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 0 0>; default-state = "on"; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&pinctrl 3 1>; }; wlan_green { - label = "green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; 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 6d26261a34..dbc4172f54 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 +#include / { model = "D-Link DSL-2650U"; @@ -19,7 +20,8 @@ gpios = <&pinctrl 4 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 ff007ebe4c..917fd6dc1d 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 +#include / { 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 = ; gpios = <&pinctrl 4 1>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 243e2ca300..052262dca7 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 +#include / { model = "Huawei EchoLife HG553"; @@ -43,12 +44,14 @@ compatible = "gpio-leds"; led_power_blue: power_blue { - label = "blue:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 4 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 5 1>; }; hspa_red { @@ -60,11 +63,13 @@ gpios = <&pinctrl 13 1>; }; lan_red { - label = "red:lan"; + function = LED_FUNCTION_LAN; + color = ; gpios = <&pinctrl 22 1>; }; lan_blue { - label = "blue:lan"; + function = LED_FUNCTION_LAN; + color = ; 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 09a21f7ad7..f64e02e1c5 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 +#include / { aliases { @@ -52,7 +53,8 @@ }; led_power_red: power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 cc833b0c18..f6de31ccf9 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 +#include / { chosen { @@ -45,16 +46,19 @@ gpios = <&pinctrl 2 1>; }; usb_green { - label = "green:USB"; + function = LED_FUNCTION_USB; + color = ; gpios = <&pinctrl 3 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 4 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 5 1>; }; inet_red { @@ -78,7 +82,8 @@ gpios = <&pinctrl 10 1>; }; usb_red { - label = "red:USB"; + function = LED_FUNCTION_USB; + color = ; 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 12e9a0eba3..55cea95b84 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 +#include / { model = "Pirelli Alice Gate AGPF-S0"; @@ -36,12 +37,14 @@ compatible = "gpio-leds"; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 4 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 58075c879a..9be493ebd5 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 +#include / { chosen { @@ -53,7 +54,8 @@ led@0 { reg = <0>; active-low; - label = "white:alarm"; + function = LED_FUNCTION_ALARM; + color = ; }; led@2 { diff --git a/target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts b/target/linux/bcm63xx/dts/bcm6358-telsey-cpva642.dts index f679b40ac9..1a6b9658bb 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 +#include / { model = "Telsey CPVA642-type (CPA-ZNTE60T)"; @@ -51,7 +52,8 @@ gpios = <&pinctrl 2 1>; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 = ; gpios = <&pinctrl 11 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 255c1c8f6c..9217fd3098 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 +#include / { model = "Huawei HG253s v2"; @@ -54,7 +55,8 @@ }; led@30 { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; 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 4bef5908e0..8d457c906e 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 +#include / { model = "Netgear DGND3700v2"; @@ -57,7 +58,8 @@ }; led@34 { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 34 1>; }; }; @@ -81,14 +83,16 @@ led_power_green: led@8 { reg = <8>; - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; default-state = "on"; }; led@9 { reg = <9>; active-low; - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; }; 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 e5ae573c97..105e56a596 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 +#include / { model = "Sagem F@st 2504N"; @@ -43,11 +44,13 @@ compatible = "gpio-leds"; power_orange { - label = "orange:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 2 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 = ; 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 fa038962c2..3fe1693331 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 +#include / { model = "Actiontec R1000H"; @@ -48,28 +49,33 @@ }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&pinctrl 21 1>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&pinctrl 23 1>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 24 0>; }; wps_red { - label = "red:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 fb1b4bcf06..45046f326a 100644 --- a/target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts +++ b/target/linux/bcm63xx/dts/bcm6368-adb-av4202n.dts @@ -2,6 +2,7 @@ #include #include +#include / { 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 = ; gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>; }; wan_white { - label = "white:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>; }; wan_red { - label = "red:wan"; + function = LED_FUNCTION_WAN; + color = ; 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 50c57d5271..6160ab636e 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 +#include / { model = "Broadcom BCM96368MVNgr reference board"; @@ -27,12 +28,14 @@ gpios = <&pinctrl 5 0>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 664e3e02f5..10f98511c0 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 +#include / { model = "Broadcom BCM96368MVWG reference board"; @@ -23,12 +24,14 @@ gpios = <&pinctrl 5 0>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; 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 a237d18ac7..12195de801 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 +#include / { 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 = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 2391fb0671..6a17c49d12 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 +#include / { 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 = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 b17439ea23..b56f693243 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 +#include / { 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 = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 95e482bca3..89c9c26032 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 +#include / { model = "Huawei EchoLife HG622"; @@ -38,11 +39,13 @@ gpios = <&pinctrl 5 1>; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&pinctrl 11 1>; }; power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 124b5ca1b7..778753558d 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 +#include / { model = "Huawei EchoLife HG655b"; @@ -59,11 +60,13 @@ }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&pinctrl 14 1>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 = ; 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 700adea4c1..b1053903f2 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 +#include / { model = "Netgear DGND3700v1/DGND3800B"; @@ -62,7 +63,8 @@ gpios = <&pinctrl 5 1>; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&pinctrl 11 1>; }; usbfront_green { @@ -74,15 +76,18 @@ gpios = <&pinctrl 14 1>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 22 1>; }; lan_green { - label = "green:lan"; + function = LED_FUNCTION_LAN; + color = ; gpios = <&pinctrl 23 1>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; 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 9ed3cc23d0..7e018584a1 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 +#include / { model = "Observa VH4032N"; @@ -59,12 +60,14 @@ gpios = <&pinctrl 12 1>; }; led_power_blue: power_blue { - label = "blue:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 0bc66fb031..6118cd8111 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 +#include / { 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 = ; 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 = ; 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 2f0ec53e34..a25ce69f00 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 +#include / { 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 = ; gpios = <&pinctrl 22 0>; default-state = "on"; }; wps_green { - label = "green:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&pinctrl 23 1>; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; 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 b96ba7eb65..3e9d9e873c 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 +#include / { model = "Netgear EVG2000"; @@ -59,20 +60,24 @@ gpios = <&pinctrl 5 1>; }; usb_green { - label = "green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&pinctrl 15 1>; }; led_power_green: power_green { - label = "green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 22 1>; default-state = "on"; }; power_red { - label = "red:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&pinctrl 23 1>; }; lan_green { - label = "green:lan"; + function = LED_FUNCTION_LAN; + color = ; gpios = <&pinctrl 24 1>; }; wireless_green { @@ -80,7 +85,8 @@ gpios = <&pinctrl 26 1>; }; wan_green { - label = "green:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&pinctrl 27 1>; }; }; -- 2.30.2