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>
This commit is contained in:
Christian Marangi 2024-02-07 14:48:35 +01:00
parent e3ddfcc70c
commit 4a8928526e
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7
76 changed files with 428 additions and 176 deletions

View file

@ -1,6 +1,7 @@
#include "bcm3368.dtsi" #include "bcm3368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Netgear CVG834G"; model = "Netgear CVG834G";
@ -22,7 +23,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 5 0>; gpios = <&gpio1 5 0>;
default-state = "on"; default-state = "on";
}; };

View file

@ -8,6 +8,7 @@
#include "bcm63268.dtsi" #include "bcm63268.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
aliases { aliases {
@ -62,7 +63,8 @@
led_power_red: power_red { led_power_red: power_red {
reg = <8>; reg = <8>;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
wifi_green { wifi_green {
@ -97,7 +99,8 @@
led_power_green: power_green { led_power_green: power_green {
reg = <17>; reg = <17>;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };

View file

@ -3,6 +3,7 @@
#include "bcm63268.dtsi" #include "bcm63268.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend VR-3032u"; model = "Comtrend VR-3032u";
@ -80,13 +81,15 @@
led@4 { led@4 {
reg = <4>; reg = <4>;
active-low; active-low;
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
}; };
led@7 { led@7 {
reg = <7>; reg = <7>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@8 { led@8 {
@ -140,7 +143,8 @@
led_power_green: led@20 { led_power_green: led@20 {
reg = <20>; reg = <20>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm63268.dtsi" #include "bcm63268.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "SKY SR102"; model = "SKY SR102";
@ -40,7 +41,8 @@
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 2 1>; gpios = <&pinctrl 2 1>;
}; };
wifi_red { wifi_red {
@ -56,7 +58,8 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
led_power_white: power_white { led_power_white: power_white {
label = "white:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pinctrl 6 0>; gpios = <&pinctrl 6 0>;
default-state = "on"; default-state = "on";
}; };

View file

@ -3,6 +3,7 @@
#include "bcm63268.dtsi" #include "bcm63268.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend VG-8050"; model = "Comtrend VG-8050";
@ -60,20 +61,23 @@
led@3 { led@3 {
reg = <3>; reg = <3>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led_power_green: led@6 { led_power_green: led@6 {
reg = <6>; reg = <6>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
led@7 { led@7 {
reg = <7>; reg = <7>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@8 { led@8 {
@ -97,7 +101,8 @@
led@14 { led@14 {
reg = <14>; reg = <14>;
active-low; active-low;
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6318.dtsi" #include "bcm6318.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend AR-5315u"; model = "Comtrend AR-5315u";
@ -89,20 +90,23 @@
led@0 { led@0 {
reg = <0>; reg = <0>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led_power_green: led@1 { led_power_green: led@1 {
reg = <1>; reg = <1>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
led@2 { led@2 {
reg = <2>; reg = <2>;
active-low; active-low;
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
}; };
led@4 { led@4 {
@ -154,7 +158,8 @@
led@11 { led@11 {
reg = <11>; reg = <11>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6318.dtsi" #include "bcm6318.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2750B/DSL-2751 rev D1"; model = "D-Link DSL-2750B/DSL-2751 rev D1";
@ -50,7 +51,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
default-state = "on"; default-state = "on";
}; };
@ -71,7 +73,8 @@
}; };
wps_blue { wps_blue {
label = "blue:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 16 1>; gpios = <&pinctrl 16 1>;
}; };
@ -82,7 +85,8 @@
usb_green { usb_green {
/* not user controllable? */ /* not user controllable? */
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 49 1>; gpios = <&pinctrl 49 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6318.dtsi" #include "bcm6318.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Sagem F@st 2704N"; model = "Sagem F@st 2704N";
@ -50,7 +51,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 2 1>; gpios = <&pinctrl 2 1>;
}; };
lan1_green { lan1_green {
@ -82,16 +84,19 @@
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
led_power_red: power_red { led_power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 11 1>; gpios = <&pinctrl 11 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 47 1>; gpios = <&pinctrl 47 1>;
default-state = "on"; default-state = "on";
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 49 1>; gpios = <&pinctrl 49 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "ADB P.DG A4001N"; model = "ADB P.DG A4001N";
@ -47,16 +48,19 @@
gpios = <&pinctrl 1 0>; gpios = <&pinctrl 1 0>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 4 0>; gpios = <&pinctrl 4 0>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 8 0>; gpios = <&pinctrl 8 0>;
default-state = "on"; default-state = "on";
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
dsl_green { dsl_green {

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "ADB P.DG A4001N1"; model = "ADB P.DG A4001N1";
@ -51,7 +52,8 @@
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
@ -68,15 +70,18 @@
gpios = <&pinctrl 7 1>; gpios = <&pinctrl 7 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 8 1>; gpios = <&pinctrl 8 1>;
}; };
wlan_green { wlan_green {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 9 1>; gpios = <&pinctrl 9 1>;
}; };
wlan_red { wlan_red {
label = "red:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
inet_green { inet_green {

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "ADB P.DG A4001N A-000-1A1-AX"; model = "ADB P.DG A4001N A-000-1A1-AX";
@ -81,7 +82,8 @@
led@8 { led@8 {
reg = <8>; reg = <8>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led@9 { led@9 {
@ -105,7 +107,8 @@
led_power_green: led@12 { led_power_green: led@12 {
reg = <12>; reg = <12>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
}; };

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "ADB P.DG A4101N A-000-1A1-AE"; model = "ADB P.DG A4101N A-000-1A1-AE";
@ -72,13 +73,15 @@
led@9 { led@9 {
reg = <9>; reg = <9>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@10 { led@10 {
reg = <10>; reg = <10>;
active-low; active-low;
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
}; };
led@11 { led@11 {

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend AR-5381u"; model = "Comtrend AR-5381u";
@ -80,7 +81,8 @@
led_alarm_red: led@2 { led_alarm_red: led@2 {
reg = <2>; reg = <2>;
active-low; active-low;
label = "red:alarm"; function = LED_FUNCTION_ALARM;
color = <LED_COLOR_ID_RED>;
}; };
led@3 { led@3 {
@ -92,7 +94,8 @@
led_power_green: led@4 { led_power_green: led@4 {
reg = <4>; reg = <4>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend AR-5387un"; model = "Comtrend AR-5387un";
@ -84,7 +85,8 @@
led@4 { led@4 {
reg = <4>; reg = <4>;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led@7 { led@7 {
@ -94,7 +96,8 @@
led_power_green: led@8 { led_power_green: led@8 {
reg = <8>; reg = <8>;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2740B/DSL-2741B rev F1"; model = "D-Link DSL-2740B/DSL-2741B rev F1";
@ -58,16 +59,19 @@
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 8 1>; gpios = <&pinctrl 8 1>;
}; };
wps_blue { wps_blue {
label = "blue:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 9 1>; gpios = <&pinctrl 9 1>;
}; };
inet_green { inet_green {

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2750U rev C1"; model = "D-Link DSL-2750U rev C1";
@ -97,7 +98,8 @@
led_power_green: led@4 { led_power_green: led@4 {
reg = <4>; reg = <4>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
@ -110,19 +112,22 @@
led@8 { led@8 {
reg = <8>; reg = <8>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led@9 { led@9 {
reg = <9>; reg = <9>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@10 { led@10 {
reg = <10>; reg = <10>;
active-low; active-low;
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
}; };
led@11 { led@11 {

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Innacomm W3400V6"; model = "Innacomm W3400V6";
@ -88,20 +89,23 @@
led_power_green: led@4 { led_power_green: led@4 {
reg = <4>; reg = <4>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
led_power_red: led@5 { led_power_red: led@5 {
reg = <5>; reg = <5>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led@11 { led@11 {
reg = <11>; reg = <11>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "NuCom R5010UN v2"; model = "NuCom R5010UN v2";
@ -55,7 +56,8 @@
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
@ -64,11 +66,13 @@
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>; gpios = <&pinctrl 11 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Sagem F@st 2704 V2"; model = "Sagem F@st 2704 V2";
@ -50,7 +51,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
inet_red { inet_red {
@ -62,16 +64,19 @@
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
inet_green { inet_green {

View file

@ -1,6 +1,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Sercomm AD1018 (SPI flash mod)"; model = "Sercomm AD1018 (SPI flash mod)";
@ -81,7 +82,8 @@
led_power_green: power_green@8 { led_power_green: power_green@8 {
reg = <8>; reg = <8>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
@ -106,7 +108,8 @@
wps_green@13 { wps_green@13 {
reg = <13>; reg = <13>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
wifi_green@14 { wifi_green@14 {
@ -118,7 +121,8 @@
usb_green@15 { usb_green@15 {
reg = <15>; reg = <15>;
active-low; active-low;
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
}; };
ephy0_spd@17 { ephy0_spd@17 {

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Sercomm AD1018"; model = "Sercomm AD1018";
@ -76,7 +77,8 @@
led_power_green: led@8 { led_power_green: led@8 {
reg = <8>; reg = <8>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
@ -101,7 +103,8 @@
led@13 { led@13 {
reg = <13>; reg = <13>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@14 { led@14 {
@ -113,7 +116,8 @@
led@15 { led@15 {
reg = <15>; reg = <15>;
active-low; active-low;
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
}; };
led@17 { led@17 {

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Technicolor TG582n Telecom Italia"; model = "Technicolor TG582n Telecom Italia";
@ -57,7 +58,8 @@
led_power_green: led@4 { led_power_green: led@4 {
reg = <4>; reg = <4>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
@ -76,7 +78,8 @@
led@8 { led@8 {
reg = <8>; reg = <8>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led@11 { led@11 {

View file

@ -3,6 +3,7 @@
#include "bcm6328.dtsi" #include "bcm6328.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Technicolor TG582n"; model = "Technicolor TG582n";
@ -76,7 +77,8 @@
led_power_green: led@4 { led_power_green: led@4 {
reg = <4>; reg = <4>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
@ -95,19 +97,22 @@
led@8 { led@8 {
reg = <8>; reg = <8>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led@9 { led@9 {
reg = <9>; reg = <9>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@10 { led@10 {
reg = <10>; reg = <10>;
active-low; active-low;
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
}; };
led@11 { led@11 {

View file

@ -1,6 +1,7 @@
#include "bcm6338.dtsi" #include "bcm6338.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96338GW reference board"; model = "Broadcom BCM96338GW reference board";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6338.dtsi" #include "bcm6338.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96338W reference board"; model = "Broadcom BCM96338W reference board";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6338.dtsi" #include "bcm6338.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2640U/BRU/C"; model = "D-Link DSL-2640U/BRU/C";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
green_power { green_power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6338.dtsi" #include "bcm6338.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Dynalink RTA1320"; model = "Dynalink RTA1320";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
green_power { green_power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 0 1>; gpios = <&gpio0 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6345.dtsi" #include "bcm6345.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Siemens Gigaset SE515"; model = "Siemens Gigaset SE515";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
usb { usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
}; };
@ -51,7 +53,8 @@
}; };
wlan { wlan {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6345.dtsi" #include "bcm6345.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Dynalink RTA770W"; model = "Dynalink RTA770W";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
usb { usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 1>;
}; };
@ -51,7 +53,8 @@
}; };
wlan { wlan {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 1>; gpios = <&gpio0 11 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "ASMAX AR 1004g"; model = "ASMAX AR 1004g";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };
@ -45,7 +47,8 @@
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 6 1>; gpios = <&pinctrl 6 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Belkin F5D7633"; model = "Belkin F5D7633";
@ -29,7 +30,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96348GW-10 reference board"; model = "Broadcom BCM96348GW-10 reference board";
@ -29,7 +30,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96348GW-11 reference board"; model = "Broadcom BCM96348GW-11 reference board";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96348GW reference board"; model = "Broadcom BCM96348GW reference board";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom 96348R reference board"; model = "Broadcom 96348R reference board";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "BT Voyager 2110"; model = "BT Voyager 2110";
@ -36,11 +37,13 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
adsl_green { adsl_green {

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "BT Voyager 2500V"; model = "BT Voyager 2500V";
@ -29,11 +30,13 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
adsl_green { adsl_green {

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend CT-5365"; model = "Comtrend CT-5365";
@ -43,16 +44,19 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };
alarm_red { alarm_red {
label = "red:alarm"; function = LED_FUNCTION_ALARM;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 2 1>; gpios = <&pinctrl 2 1>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 6 1>; gpios = <&pinctrl 6 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend CT-536+/CT-5621T"; model = "Comtrend CT-536+/CT-5621T";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2640B rev B2"; model = "D-Link DSL-2640B rev B2";
@ -36,7 +37,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Netgear DG834G v4"; model = "Netgear DG834G v4";
@ -29,12 +30,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };
status { status {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
inet_green { inet_green {

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Netgear DG834GT/PN"; model = "Netgear DG834GT/PN";
@ -29,7 +30,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Sagem F@st 2604"; model = "Sagem F@st 2604";
@ -29,12 +30,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
inet_red { inet_red {
@ -42,7 +45,8 @@
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "T-Com Speedport W 500V"; model = "T-Com Speedport W 500V";
@ -36,12 +37,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 1 1>; gpios = <&pinctrl 1 1>;
}; };
ppp_green { ppp_green {

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Alice W-Gate"; model = "Alice W-Gate";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power { power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };
@ -46,7 +48,8 @@
}; };
usb { usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 35 1>; gpios = <&pinctrl 35 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6348.dtsi" #include "bcm6348.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "TP-Link TD-W8900GB"; model = "TP-Link TD-W8900GB";
@ -29,7 +30,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 1>; gpios = <&pinctrl 0 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Alcatel RG100A"; model = "Alcatel RG100A";
@ -19,7 +20,8 @@
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96358VW reference board"; model = "Broadcom BCM96358VW reference board";
@ -15,7 +16,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 0>; gpios = <&pinctrl 4 0>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96358VW2 reference board"; model = "Broadcom BCM96358VW2 reference board";
@ -19,7 +20,8 @@
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "BT Home Hub 2.0 Type A"; model = "BT Home Hub 2.0 Type A";
@ -56,20 +57,23 @@
led@0 { led@0 {
reg = <0>; reg = <0>;
active-low; active-low;
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
}; };
led_power_green: led@1 { led_power_green: led@1 {
reg = <1>; reg = <1>;
active-low; active-low;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
led@2 { led@2 {
reg = <2>; reg = <2>;
active-low; active-low;
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
}; };
led@3 { led@3 {

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend CT-6373"; model = "Comtrend CT-6373";
@ -29,16 +30,19 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 0>; gpios = <&pinctrl 0 0>;
default-state = "on"; default-state = "on";
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
wlan_green { wlan_green {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 9 1>; gpios = <&pinctrl 9 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2650U"; model = "D-Link DSL-2650U";
@ -19,7 +20,8 @@
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "D-Link DSL-2740B/DSL-2741B rev C2/3"; model = "D-Link DSL-2740B/DSL-2741B rev C2/3";
@ -40,11 +41,13 @@
gpios = <&pinctrl 2 0>; gpios = <&pinctrl 2 0>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Huawei EchoLife HG553"; model = "Huawei EchoLife HG553";
@ -43,12 +44,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_blue: power_blue { led_power_blue: power_blue {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
hspa_red { hspa_red {
@ -60,11 +63,13 @@
gpios = <&pinctrl 13 1>; gpios = <&pinctrl 13 1>;
}; };
lan_red { lan_red {
label = "red:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 22 1>; gpios = <&pinctrl 22 1>;
}; };
lan_blue { lan_blue {
label = "blue:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
wifi_red { wifi_red {

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
aliases { aliases {
@ -52,7 +53,8 @@
}; };
led_power_red: power_red { led_power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
chosen { chosen {
@ -45,16 +46,19 @@
gpios = <&pinctrl 2 1>; gpios = <&pinctrl 2 1>;
}; };
usb_green { usb_green {
label = "green:USB"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
inet_red { inet_red {
@ -78,7 +82,8 @@
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
usb_red { usb_red {
label = "red:USB"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 11 1>; gpios = <&pinctrl 11 1>;
}; };
dsl_red { dsl_red {

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Pirelli Alice Gate AGPF-S0"; model = "Pirelli Alice Gate AGPF-S0";
@ -36,12 +37,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 4 1>; gpios = <&pinctrl 4 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
service_green { service_green {

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
chosen { chosen {
@ -53,7 +54,8 @@
led@0 { led@0 {
reg = <0>; reg = <0>;
active-low; active-low;
label = "white:alarm"; function = LED_FUNCTION_ALARM;
color = <LED_COLOR_ID_WHITE>;
}; };
led@2 { led@2 {

View file

@ -1,6 +1,7 @@
#include "bcm6358.dtsi" #include "bcm6358.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Telsey CPVA642-type (CPA-ZNTE60T)"; model = "Telsey CPVA642-type (CPA-ZNTE60T)";
@ -51,7 +52,8 @@
gpios = <&pinctrl 2 1>; gpios = <&pinctrl 2 1>;
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 3 1>; gpios = <&pinctrl 3 1>;
}; };
phone1_green { phone1_green {
@ -71,12 +73,14 @@
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>; gpios = <&pinctrl 11 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 14 1>; gpios = <&pinctrl 14 1>;
}; };
wifi_green { wifi_green {

View file

@ -1,6 +1,7 @@
#include "bcm6362.dtsi" #include "bcm6362.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Huawei HG253s v2"; model = "Huawei HG253s v2";
@ -54,7 +55,8 @@
}; };
led@30 { led@30 {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 30 1>; gpios = <&pinctrl 30 1>;
}; };
}; };

View file

@ -3,6 +3,7 @@
#include "bcm6362.dtsi" #include "bcm6362.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Netgear DGND3700v2"; model = "Netgear DGND3700v2";
@ -57,7 +58,8 @@
}; };
led@34 { led@34 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 34 1>; gpios = <&pinctrl 34 1>;
}; };
}; };
@ -81,14 +83,16 @@
led_power_green: led@8 { led_power_green: led@8 {
reg = <8>; reg = <8>;
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on"; default-state = "on";
}; };
led@9 { led@9 {
reg = <9>; reg = <9>;
active-low; active-low;
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
}; };
led@10 { led@10 {

View file

@ -1,6 +1,7 @@
#include "bcm6362.dtsi" #include "bcm6362.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Sagem F@st 2504N"; model = "Sagem F@st 2504N";
@ -43,11 +44,13 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_orange { power_orange {
label = "orange:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&pinctrl 2 1>; gpios = <&pinctrl 2 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 10 1>; gpios = <&pinctrl 10 1>;
default-state = "on"; default-state = "on";
}; };
@ -64,7 +67,8 @@
gpios = <&pinctrl 29 1>; gpios = <&pinctrl 29 1>;
}; };
wlan_orangee { wlan_orangee {
label = "orange:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&pinctrl 30 1>; gpios = <&pinctrl 30 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Actiontec R1000H"; model = "Actiontec R1000H";
@ -48,28 +49,33 @@
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 21 1>; gpios = <&pinctrl 21 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>; gpios = <&pinctrl 24 0>;
}; };
wps_red { wps_red {
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 30 1>; gpios = <&pinctrl 30 1>;
}; };

View file

@ -2,6 +2,7 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "ADB P.DG AV4202N"; model = "ADB P.DG AV4202N";
@ -44,20 +45,24 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_white: power_white { led_power_white: power_white {
label = "white:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>; gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>; gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
}; };
wan_white { wan_white {
label = "white:wan"; function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_WHITE>;
gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>; gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
}; };
wan_red { wan_red {
label = "red:wan"; function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>; gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
}; };
phone_white { phone_white {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96368MVNgr reference board"; model = "Broadcom BCM96368MVNgr reference board";
@ -27,12 +28,14 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Broadcom BCM96368MVWG reference board"; model = "Broadcom BCM96368MVWG reference board";
@ -23,12 +24,14 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
ppp_fail_red { ppp_fail_red {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend VR-3025u"; model = "Comtrend VR-3025u";
@ -44,12 +45,14 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>; gpios = <&pinctrl 24 0>;
}; };
inet_red { inet_red {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend VR-3025un"; model = "Comtrend VR-3025un";
@ -44,12 +45,14 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>; gpios = <&pinctrl 24 0>;
}; };
inet_red { inet_red {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend VR-3026e"; model = "Comtrend VR-3026e";
@ -44,12 +45,14 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>; gpios = <&pinctrl 24 0>;
}; };
inet_red { inet_red {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Huawei EchoLife HG622"; model = "Huawei EchoLife HG622";
@ -38,11 +39,13 @@
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>; gpios = <&pinctrl 11 1>;
}; };
power_green { power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 1>; gpios = <&pinctrl 22 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Huawei EchoLife HG655b"; model = "Huawei EchoLife HG655b";
@ -59,11 +60,13 @@
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 14 1>; gpios = <&pinctrl 14 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 1>; gpios = <&pinctrl 22 1>;
default-state = "on"; default-state = "on";
}; };
@ -72,7 +75,8 @@
gpios = <&pinctrl 25 1>; gpios = <&pinctrl 25 1>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 27 1>; gpios = <&pinctrl 27 1>;
}; };
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Netgear DGND3700v1/DGND3800B"; model = "Netgear DGND3700v1/DGND3800B";
@ -62,7 +63,8 @@
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 11 1>; gpios = <&pinctrl 11 1>;
}; };
usbfront_green { usbfront_green {
@ -74,15 +76,18 @@
gpios = <&pinctrl 14 1>; gpios = <&pinctrl 14 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 22 1>; gpios = <&pinctrl 22 1>;
}; };
lan_green { lan_green {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 24 1>; gpios = <&pinctrl 24 1>;
default-state = "on"; default-state = "on";
}; };

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Observa VH4032N"; model = "Observa VH4032N";
@ -59,12 +60,14 @@
gpios = <&pinctrl 12 1>; gpios = <&pinctrl 12 1>;
}; };
led_power_blue: power_blue { led_power_blue: power_blue {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>; gpios = <&pinctrl 24 0>;
}; };
voice_blue { voice_blue {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Zyxel P870HW-51a v2"; model = "Zyxel P870HW-51a v2";
@ -43,7 +44,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 0 0>; gpios = <&pinctrl 0 0>;
default-state = "on"; default-state = "on";
}; };
@ -56,7 +58,8 @@
gpios = <&pinctrl 22 1>; gpios = <&pinctrl 22 1>;
}; };
wps_orange { wps_orange {
label = "orange:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&pinctrl 24 1>; gpios = <&pinctrl 24 1>;
}; };
inet_red { inet_red {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Comtrend WAP-5813n"; model = "Comtrend WAP-5813n";
@ -54,16 +55,19 @@
gpios = <&pinctrl 5 0>; gpios = <&pinctrl 5 0>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 0>; gpios = <&pinctrl 22 0>;
default-state = "on"; default-state = "on";
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 24 0>; gpios = <&pinctrl 24 0>;
}; };
inet_red { inet_red {

View file

@ -1,6 +1,7 @@
#include "bcm6368.dtsi" #include "bcm6368.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
model = "Netgear EVG2000"; model = "Netgear EVG2000";
@ -59,20 +60,24 @@
gpios = <&pinctrl 5 1>; gpios = <&pinctrl 5 1>;
}; };
usb_green { usb_green {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 15 1>; gpios = <&pinctrl 15 1>;
}; };
led_power_green: power_green { led_power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 22 1>; gpios = <&pinctrl 22 1>;
default-state = "on"; default-state = "on";
}; };
power_red { power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&pinctrl 23 1>; gpios = <&pinctrl 23 1>;
}; };
lan_green { lan_green {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 24 1>; gpios = <&pinctrl 24 1>;
}; };
wireless_green { wireless_green {
@ -80,7 +85,8 @@
gpios = <&pinctrl 26 1>; gpios = <&pinctrl 26 1>;
}; };
wan_green { wan_green {
label = "green:wan"; function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pinctrl 27 1>; gpios = <&pinctrl 27 1>;
}; };
}; };