/* power led: red=off, green=on */
power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
lan: lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};
};
};
+#include <dt-bindings/leds/common.h>
+
};
#include "amazonse.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase";
default-state = "on";
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "on";
};
power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mtd/partitions/uimage.h>
/ {
compatible = "gpio-leds";
power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
wlan: wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
info_green: info_green {
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mtd/partitions/uimage.h>
/ {
leds {
compatible = "gpio-leds";
power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
wlan: wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
info_green: info_green {
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "bt,homehub-v3a", "lantiq,xway", "lantiq,ar9";
};
power_red: power-red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
power_orange: power-orange {
- label = "orange:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_blue: power-blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
};
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "buffalo,wbmr-hp-g300h", "lantiq,xway", "lantiq,ar9";
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
security {
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
default-state = "on";
};
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
chosen {
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
wifi_green: wifi {
gpios = <&gpio 51 GPIO_ACTIVE_LOW>;
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
};
};
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "zte,h201l", "lantiq,xway", "lantiq,ar9";
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};
#include "ar9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "zyxel,p-2601hn", "lantiq,xway", "lantiq,ar9";
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 11 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
};
online: online {
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv4519pw", "lantiq,xway", "lantiq,danube";
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
voip {
gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
wps2 {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
wps {
- label = "orange:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wps3 {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
};
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv4520pw", "lantiq,xway", "lantiq,danube";
compatible = "gpio-leds";
power_blue: power {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wps {
- label = "yellow:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps2 {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
/*
gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
- label = "blue:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv4525pw", "lantiq,xway", "lantiq,danube";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
online: online {
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv452cqw", "lantiq,xway", "lantiq,danube";
leds {
compatible = "gpio-leds";
power_blue: power0 {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power1 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wps {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
wps1 {
- label = "yellow:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_YELLOW>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
fxs1 {
gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
};
wps2 {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
};
fxo {
gpios = <&gpiomm 4 1>;
};
led_usb: usb {
- label = "blue:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
- label = "blue:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
/*
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv7506pw11", "lantiq,xway", "lantiq,danube";
leds {
compatible = "gpio-leds";
wlan: wlan {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
internet_red {
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv7518pw", "lantiq,xway", "lantiq,danube";
leds {
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
online2 {
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
voice {
gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
};
wps {
- label = "amber:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
wps2 {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
};
wps3 {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
};
};
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv7525pw", "lantiq,xway", "lantiq,danube";
leds {
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power1 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
online: online {
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
};
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv752dpw", "lantiq,xway", "lantiq,danube";
leds {
compatible = "gpio-leds";
power_blue: power1 {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
internet_red: internet {
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv752dpw22", "lantiq,xway", "lantiq,danube";
leds {
compatible = "gpio-leds";
power_blue: power1 {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
internet_red: internet {
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
power_red: power {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "arcadyan,arv8539pw22", "lantiq,xway", "lantiq,danube";
compatible = "gpio-leds";
power_green: power-green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power-red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
};
wireless_green: wireless-green {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
/*
#include "danube.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "bt,homehub-v2b", "lantiq,xway", "lantiq,danube";
};
power_red: power-red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpios 13 GPIO_ACTIVE_HIGH>;
};
power_orange: power-orange {
- label = "orange:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpios 14 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
power_blue: power-blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpios 15 GPIO_ACTIVE_HIGH>;
};
};
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
};
STATUS {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};
ERROR {
};
};
};
+#include <dt-bindings/leds/common.h>
+
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
};
STATUS {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};
};
};
};
+#include <dt-bindings/leds/common.h>
+
default-state = "keep";
};
LED_5 {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
compatible = "at,24c02";
reg = <0x51>;
};
+#include <dt-bindings/leds/common.h>
+
};
default-state = "keep";
};
ETH {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
default-state = "keep";
};
};
+#include <dt-bindings/leds/common.h>
+
};
default-state = "keep";
};
ETH {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};
};
+#include <dt-bindings/leds/common.h>
+
};
default-state = "keep";
};
ETH {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
};
};
};
+#include <dt-bindings/leds/common.h>
+
default-state = "keep";
};
LED_1 {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
};
};
};
+#include <dt-bindings/leds/common.h>
+
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
/* power-* is a bicolour led */
power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
};
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
lan_green {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
internet_red {
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
alarm_blue {
- label = "blue:alarm";
+ function = LED_FUNCTION_ALARM;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
internet_orange {
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
dsl: dsl {
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
};
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
gpios = <&stp 2 GPIO_ACTIVE_LOW>;
};
wps_red {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&stp 3 GPIO_ACTIVE_LOW>;
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 4 GPIO_ACTIVE_LOW>;
};
upgrade {
gpios = <&stp 13 GPIO_ACTIVE_LOW>;
};
power_green: power2 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&stp 15 GPIO_ACTIVE_LOW>;
};
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
power_green: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power2 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
};
};
wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
};
};
lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
led_power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
};
};
led_lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
};
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+#include <dt-bindings/leds/common.h>
+
#include "vr9_avm_fritzxx90.dtsi"
/ {
&leds {
led_lan: lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
};
led_wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
};
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+#include <dt-bindings/leds/common.h>
+
#include "vr9_avm_fritzxx90.dtsi"
/ {
};
led_wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
led_power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
};
};
led_wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+#include <dt-bindings/leds/common.h>
+
#include "vr9_avm_fritzxx90.dtsi"
/ {
};
led_wifi: wifi {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
};
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
/* power-* is a single RGB led */
power_red: power-red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
power_green: power-green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
power_blue: power-blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
};
wan: wan {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
};
power_g: power_g {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 49 GPIO_ACTIVE_HIGH>;
};
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
default-state = "keep";
};
linux,default-trigger = "usbport";
};
sd {
- label = "green:sd";
+ function = LED_FUNCTION_SD;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
};
wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
};
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
power_amber: power_amber {
- label = "amber:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
lan_amber {
- label = "amber:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
};
lan_green {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
};
usb0 {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
trigger-sources = <&ehci_port1>;
linux,default-trigger = "usbport";
};
led_wps: wps {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
};
};
&leds {
wps {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
+#include <dt-bindings/leds/common.h>
+
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
compatible = "gpio-leds";
led_power: power {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
};
usb {
- label = "blue:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
trigger-sources = <&ehci_port1>, <&ehci_port2>;
linux,default-trigger = "usbport";
};
eth {
- label = "blue:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "blue:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
#include "vr9.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>
/ {
gpios = <&stp 19 GPIO_ACTIVE_LOW>;
};
wireless_orange {
- label = "orange:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&stp 20 GPIO_ACTIVE_LOW>;
};
wireless_green: wireless_green {
- label = "green:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 21 GPIO_ACTIVE_LOW>;
};
power_red: power {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&stp 22 GPIO_ACTIVE_LOW>;
};
power_green: power2 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&stp 23 GPIO_ACTIVE_LOW>;
default-state = "keep";
};