lantiq: 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:38 +01:00
parent 726f286377
commit 0c3f3eb229
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
49 changed files with 319 additions and 129 deletions

View File

@ -28,13 +28,15 @@
/* power led: red=off, green=on */ /* power led: red=off, green=on */
power: power { power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
lan: lan { lan: lan {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
@ -106,4 +108,6 @@
}; };
}; };
}; };
#include <dt-bindings/leds/common.h>
}; };

View File

@ -1,6 +1,7 @@
#include "amazonse.dtsi" #include "amazonse.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase"; compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase";
@ -64,12 +65,14 @@
default-state = "on"; default-state = "on";
}; };
wps { wps {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
power: power { power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>; gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mtd/partitions/uimage.h> #include <dt-bindings/mtd/partitions/uimage.h>
/ { / {
@ -46,7 +47,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>; gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -59,7 +61,8 @@
gpios = <&gpio 38 GPIO_ACTIVE_LOW>; gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
}; };
wlan: wlan { wlan: wlan {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_LOW>; gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
}; };
info_green: info_green { info_green: info_green {

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mtd/partitions/uimage.h> #include <dt-bindings/mtd/partitions/uimage.h>
/ { / {
@ -45,7 +46,8 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>; gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -58,7 +60,8 @@
gpios = <&gpio 38 GPIO_ACTIVE_LOW>; gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
}; };
wlan: wlan { wlan: wlan {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_LOW>; gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
}; };
info_green: info_green { info_green: info_green {

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "bt,homehub-v3a", "lantiq,xway", "lantiq,ar9"; compatible = "bt,homehub-v3a", "lantiq,xway", "lantiq,ar9";
@ -75,16 +76,19 @@
}; };
power_red: power-red { power_red: power-red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
power_orange: power-orange { power_orange: power-orange {
label = "orange:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_blue: power-blue { power_blue: power-blue {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9"; compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9";
@ -57,12 +58,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>; gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
security { security {
@ -90,7 +93,8 @@
gpios = <&gpio 20 GPIO_ACTIVE_LOW>; gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
}; };
led_usb: usb { led_usb: usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 28 GPIO_ACTIVE_LOW>; gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
chosen { chosen {
@ -79,16 +80,19 @@
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
}; };
led_usb: usb { led_usb: usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
}; };
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 34 GPIO_ACTIVE_LOW>; gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 39 GPIO_ACTIVE_LOW>; gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
}; };
wifi_green: wifi { wifi_green: wifi {
@ -100,7 +104,8 @@
gpios = <&gpio 51 GPIO_ACTIVE_LOW>; gpios = <&gpio 51 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 52 GPIO_ACTIVE_LOW>; gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9"; compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9";
@ -52,7 +53,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -69,15 +71,18 @@
gpios = <&gpio 39 GPIO_ACTIVE_LOW>; gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>; gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
led_usb: usb { led_usb: usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "ar9.dtsi" #include "ar9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9"; compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9";
@ -46,12 +47,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 11 GPIO_ACTIVE_LOW>; gpios = <&stp 11 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 29 GPIO_ACTIVE_LOW>; gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
}; };
online: online { online: online {

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv4519pw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv4519pw", "lantiq,xway", "lantiq,danube";
@ -47,16 +48,19 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>; gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
dsl: dsl { dsl: dsl {
@ -72,7 +76,8 @@
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
led_usb: usb { led_usb: usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };
voip { voip {
@ -92,15 +97,18 @@
gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
}; };
wps2 { wps2 {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "orange:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
}; };
wps3 { wps3 {
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv4520pw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv4520pw", "lantiq,xway", "lantiq,danube";
@ -47,7 +48,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_blue: power { power_blue: power {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -60,15 +62,18 @@
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "yellow:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>; gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
}; };
wps2 { wps2 {
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>; gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
}; };
/* /*
@ -95,7 +100,8 @@
gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
}; };
led_usb: usb { led_usb: usb {
label = "blue:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv4525pw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv4525pw", "lantiq,xway", "lantiq,danube";
@ -63,7 +64,8 @@
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
online: online { online: online {

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv452cqw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv452cqw", "lantiq,xway", "lantiq,danube";
@ -57,7 +58,8 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_blue: power0 { power_blue: power0 {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -70,15 +72,18 @@
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
power_red: power1 { power_red: power1 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "blue:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>; gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
}; };
wps1 { wps1 {
label = "yellow:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>; gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
}; };
fxs1 { fxs1 {
@ -90,7 +95,8 @@
gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
}; };
wps2 { wps2 {
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
}; };
fxo { fxo {
@ -102,11 +108,13 @@
gpios = <&gpiomm 4 1>; gpios = <&gpiomm 4 1>;
}; };
led_usb: usb { led_usb: usb {
label = "blue:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {
label = "blue:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
}; };
/* /*

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv7506pw11", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv7506pw11", "lantiq,xway", "lantiq,danube";
@ -45,11 +46,13 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
wlan: wlan { wlan: wlan {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
}; };
power: power { power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -62,7 +65,8 @@
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
power_red: power_red { power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
internet_red { internet_red {

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv7518pw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv7518pw", "lantiq,xway", "lantiq,danube";
@ -46,7 +47,8 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -59,11 +61,13 @@
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>; gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
}; };
online2 { online2 {
@ -71,7 +75,8 @@
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
led_usb: usb { led_usb: usb {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };
voice { voice {
@ -91,15 +96,18 @@
gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
}; };
wps { wps {
label = "amber:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_AMBER>;
gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
}; };
wps2 { wps2 {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
}; };
wps3 { wps3 {
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>; gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv7525pw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv7525pw", "lantiq,xway", "lantiq,danube";
@ -45,12 +46,14 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power1 { power_red: power1 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
}; };
online: online { online: online {
@ -66,7 +69,8 @@
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>; gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube";
@ -57,7 +58,8 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_blue: power1 { power_blue: power1 {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
internet_red: internet { internet_red: internet {
@ -69,7 +71,8 @@
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
power_red: power { power_red: power {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv752dpw22", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv752dpw22", "lantiq,xway", "lantiq,danube";
@ -54,7 +55,8 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
power_blue: power1 { power_blue: power1 {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
}; };
internet_red: internet { internet_red: internet {
@ -66,7 +68,8 @@
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };
power_red: power { power_red: power {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube"; compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
@ -47,12 +48,14 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power-green { power_green: power-green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 24 GPIO_ACTIVE_LOW>; gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power-red { power_red: power-red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>; gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
}; };
@ -67,7 +70,8 @@
}; };
wireless_green: wireless-green { wireless_green: wireless-green {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>; gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
}; };
/* /*

View File

@ -1,6 +1,7 @@
#include "danube.dtsi" #include "danube.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ { / {
compatible = "bt,homehub-v2b", "lantiq,xway", "lantiq,danube"; compatible = "bt,homehub-v2b", "lantiq,xway", "lantiq,danube";
@ -86,16 +87,19 @@
}; };
power_red: power-red { power_red: power-red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpios 13 GPIO_ACTIVE_HIGH>; gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
}; };
power_orange: power-orange { power_orange: power-orange {
label = "orange:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpios 14 GPIO_ACTIVE_HIGH>; gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
power_blue: power-blue { power_blue: power-blue {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpios 15 GPIO_ACTIVE_HIGH>; gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
}; };
}; };

View File

@ -47,7 +47,8 @@
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
}; };
STATUS { STATUS {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
}; };
ERROR { ERROR {
@ -89,4 +90,6 @@
}; };
}; };
}; };
#include <dt-bindings/leds/common.h>

View File

@ -46,7 +46,8 @@
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
}; };
STATUS { STATUS {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
}; };
@ -68,4 +69,6 @@
}; };
}; };
}; };
#include <dt-bindings/leds/common.h>

View File

@ -42,7 +42,8 @@
default-state = "keep"; default-state = "keep";
}; };
LED_5 { LED_5 {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
@ -107,4 +108,6 @@
compatible = "at,24c02"; compatible = "at,24c02";
reg = <0x51>; reg = <0x51>;
}; };
#include <dt-bindings/leds/common.h>
}; };

View File

@ -48,7 +48,8 @@
default-state = "keep"; default-state = "keep";
}; };
ETH { ETH {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
@ -63,4 +64,6 @@
default-state = "keep"; default-state = "keep";
}; };
}; };
#include <dt-bindings/leds/common.h>
}; };

View File

@ -48,7 +48,8 @@
default-state = "keep"; default-state = "keep";
}; };
ETH { ETH {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
@ -80,4 +81,6 @@
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
}; };
}; };
#include <dt-bindings/leds/common.h>
}; };

View File

@ -60,7 +60,8 @@
default-state = "keep"; default-state = "keep";
}; };
ETH { ETH {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
@ -76,4 +77,6 @@
}; };
}; };
}; };
#include <dt-bindings/leds/common.h>

View File

@ -27,7 +27,8 @@
default-state = "keep"; default-state = "keep";
}; };
LED_1 { LED_1 {
label = "green:status"; function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
@ -48,4 +49,6 @@
}; };
}; };
}; };
#include <dt-bindings/leds/common.h>

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -46,13 +47,15 @@
/* power-* is a bicolour led */ /* power-* is a bicolour led */
power_green: power_green { power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power_red { power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -50,7 +51,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
lan_green { lan_green {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>; gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
}; };
internet_red { internet_red {
@ -58,12 +60,14 @@
gpios = <&gpio 10 GPIO_ACTIVE_LOW>; gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
}; };
power_green: power_green { power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
alarm_blue { alarm_blue {
label = "blue:alarm"; function = LED_FUNCTION_ALARM;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };
internet_orange { internet_orange {

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -39,7 +40,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
}; };
dsl: dsl { dsl: dsl {
@ -47,7 +49,8 @@
gpios = <&gpio 19 GPIO_ACTIVE_LOW>; gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
}; };
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 28 GPIO_ACTIVE_LOW>; gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -62,7 +63,8 @@
}; };
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -78,13 +80,15 @@
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 20 GPIO_ACTIVE_LOW>; gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt"; linux,default-trigger = "phy0tpt";
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 28 GPIO_ACTIVE_LOW>; gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -59,11 +60,13 @@
gpios = <&stp 2 GPIO_ACTIVE_LOW>; gpios = <&stp 2 GPIO_ACTIVE_LOW>;
}; };
wps_red { wps_red {
label = "red:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_RED>;
gpios = <&stp 3 GPIO_ACTIVE_LOW>; gpios = <&stp 3 GPIO_ACTIVE_LOW>;
}; };
wps_green { wps_green {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 4 GPIO_ACTIVE_LOW>; gpios = <&stp 4 GPIO_ACTIVE_LOW>;
}; };
upgrade { upgrade {
@ -103,12 +106,14 @@
gpios = <&stp 13 GPIO_ACTIVE_LOW>; gpios = <&stp 13 GPIO_ACTIVE_LOW>;
}; };
power_green: power2 { power_green: power2 {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 14 GPIO_ACTIVE_LOW>; gpios = <&stp 14 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power { power_red: power {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&stp 15 GPIO_ACTIVE_LOW>; gpios = <&stp 15 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -53,13 +54,15 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power { power_green: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 32 GPIO_ACTIVE_LOW>; gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power2 { power_red: power2 {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 33 GPIO_ACTIVE_LOW>; gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
}; };
@ -69,7 +72,8 @@
}; };
wifi: wifi { wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 35 GPIO_ACTIVE_LOW>; gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
}; };
@ -79,7 +83,8 @@
}; };
lan { lan {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 38 GPIO_ACTIVE_LOW>; gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
}; };

View File

@ -3,6 +3,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -50,13 +51,15 @@
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 = <&gpio 45 GPIO_ACTIVE_LOW>; gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
led_power_red: power_red { led_power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 46 GPIO_ACTIVE_LOW>; gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
}; };
@ -71,7 +74,8 @@
}; };
led_lan { led_lan {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 47 GPIO_ACTIVE_LOW>; gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/leds/common.h>
#include "vr9_avm_fritzxx90.dtsi" #include "vr9_avm_fritzxx90.dtsi"
/ { / {
@ -15,12 +17,14 @@
&leds { &leds {
led_lan: lan { led_lan: lan {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 47 GPIO_ACTIVE_LOW>; gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
}; };
led_wifi: wifi { led_wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 36 GPIO_ACTIVE_LOW>; gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/leds/common.h>
#include "vr9_avm_fritzxx90.dtsi" #include "vr9_avm_fritzxx90.dtsi"
/ { / {
@ -20,7 +22,8 @@
}; };
led_wifi: wifi { led_wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 36 GPIO_ACTIVE_LOW>; gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
}; };

View File

@ -3,6 +3,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -48,13 +49,15 @@
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 = <&gpio 32 GPIO_ACTIVE_LOW>; gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
led_power_red: power_red { led_power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 33 GPIO_ACTIVE_LOW>; gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
}; };
@ -64,7 +67,8 @@
}; };
led_wifi: wifi { led_wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 36 GPIO_ACTIVE_LOW>; gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
}; };

View File

@ -3,6 +3,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -49,13 +50,15 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_green: power_green { power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>; gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_red: power_red { power_red: power_red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>; gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
}; };

View File

@ -3,6 +3,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -49,7 +50,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power: power { led_power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 31 GPIO_ACTIVE_LOW>; gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };

View File

@ -1,5 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include <dt-bindings/leds/common.h>
#include "vr9_avm_fritzxx90.dtsi" #include "vr9_avm_fritzxx90.dtsi"
/ { / {
@ -25,7 +27,8 @@
}; };
led_wifi: wifi { led_wifi: wifi {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 35 GPIO_ACTIVE_LOW>; gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
}; };
}; };

View File

@ -3,6 +3,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -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 = <&gpio 45 GPIO_ACTIVE_LOW>; gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -82,16 +83,19 @@
/* power-* is a single RGB led */ /* power-* is a single RGB led */
power_red: power-red { power_red: power-red {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
}; };
power_green: power-green { power_green: power-green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>; gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
power_blue: power-blue { power_blue: power-blue {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>; gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -104,7 +105,8 @@
}; };
wan: wan { wan: wan {
label = "green:wan"; function = LED_FUNCTION_WAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
}; };
@ -134,7 +136,8 @@
}; };
power_g: power_g { power_g: power_g {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 49 GPIO_ACTIVE_HIGH>; gpios = <&gpio 49 GPIO_ACTIVE_HIGH>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -41,7 +42,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power: power { power: power {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 9 GPIO_ACTIVE_HIGH>; gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
@ -75,11 +77,13 @@
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
}; };
sd { sd {
label = "green:sd"; function = LED_FUNCTION_SD;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 14 GPIO_ACTIVE_HIGH>; gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
}; };
wps { wps {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 12 GPIO_ACTIVE_HIGH>; gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
}; };
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -55,20 +56,24 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
power_amber: power_amber { power_amber: power_amber {
label = "amber:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
}; };
power_green: power_green { power_green: power_green {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
}; };
lan_amber { lan_amber {
label = "amber:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio 33 GPIO_ACTIVE_HIGH>; gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
}; };
lan_green { lan_green {
label = "green:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -66,7 +67,8 @@
}; };
usb0 { usb0 {
label = "green:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
trigger-sources = <&ehci_port1>; trigger-sources = <&ehci_port1>;
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
@ -80,7 +82,8 @@
}; };
led_wps: wps { led_wps: wps {
label = "green:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
}; };
}; };

View File

@ -19,7 +19,10 @@
&leds { &leds {
wps { wps {
label = "blue:wps"; function = LED_FUNCTION_WPS;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>; gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
}; };
#include <dt-bindings/leds/common.h>
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -48,7 +49,8 @@
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power: power { led_power: power {
label = "blue:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 46 GPIO_ACTIVE_LOW>; gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
@ -64,19 +66,22 @@
}; };
usb { usb {
label = "blue:usb"; function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 25 GPIO_ACTIVE_LOW>; gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
trigger-sources = <&ehci_port1>, <&ehci_port2>; trigger-sources = <&ehci_port1>, <&ehci_port2>;
linux,default-trigger = "usbport"; linux,default-trigger = "usbport";
}; };
eth { eth {
label = "blue:lan"; function = LED_FUNCTION_LAN;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 40 GPIO_ACTIVE_LOW>; gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
}; };
wlan { wlan {
label = "blue:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 24 GPIO_ACTIVE_LOW>; gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
}; };

View File

@ -1,6 +1,7 @@
#include "vr9.dtsi" #include "vr9.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h> #include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ { / {
@ -63,19 +64,23 @@
gpios = <&stp 19 GPIO_ACTIVE_LOW>; gpios = <&stp 19 GPIO_ACTIVE_LOW>;
}; };
wireless_orange { wireless_orange {
label = "orange:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_ORANGE>;
gpios = <&stp 20 GPIO_ACTIVE_LOW>; gpios = <&stp 20 GPIO_ACTIVE_LOW>;
}; };
wireless_green: wireless_green { wireless_green: wireless_green {
label = "green:wlan"; function = LED_FUNCTION_WLAN;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 21 GPIO_ACTIVE_LOW>; gpios = <&stp 21 GPIO_ACTIVE_LOW>;
}; };
power_red: power { power_red: power {
label = "red:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
gpios = <&stp 22 GPIO_ACTIVE_LOW>; gpios = <&stp 22 GPIO_ACTIVE_LOW>;
}; };
power_green: power2 { power_green: power2 {
label = "green:power"; function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 23 GPIO_ACTIVE_LOW>; gpios = <&stp 23 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };