ath79: remove model name from LED labels

Currently, we request LED labels in OpenWrt to follow the scheme

  modelname:color:function

However, specifying the modelname at the beginning is actually
entirely useless for the devices we support in OpenWrt. On the
contrary, having this part actually introduces inconvenience in
several aspects:

  - We need to ensure/check consistency with the DTS compatible
  - We have various exceptions where not the model name is used,
    but the vendor name (like tp-link), which is hard to track
    and justify even for core-developers
  - Having model-based components will not allow to share
    identical LED definitions in DTSI files
  - The inconsistency in what's used for the model part complicates
    several scripts, e.g. board.d/01_leds or LED migrations from
    ar71xx where this was even more messy

Apart from our needs, upstream has deprecated the label property
entirely and introduced new properties to specify color and
function properties separately. However, the implementation does
not appear to be ready and probably won't become ready and/or
match our requirements in the foreseeable future.

However, the limitation of generic LEDs to color and function
properties follows the same idea pointed out above. Generic LEDs
will get names like "green:status" or "red:indicator" then, and
if a "devicename" is prepended, it will be the one of an internal
device, like "phy1:amber:status".

With this patch, we move into the same direction, and just drop
the boardname from the LED labels. This allows to consolidate
a few definitions in DTSI files (will be much more on ramips),
and to drop a few migrations compared to ar71xx that just changed
the boardname. But mainly, it will liberate us from a completely
useless subject to take care of for device support review and
maintenance.
To also drop the boardname from existing configurations, a simple
migration routine is added unconditionally.

Although this seems unfamiliar at first look, a quick check in kernel
for the arm/arm64 dts files revealed that while 1033 lines have
labels with three parts *:*:*, still 284 actually use a two-part
labelling *:*, and thus is also acceptable and not even rare there.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
master
Adrian Schmutzler 2020-09-26 17:31:17 +02:00
parent 365a639f91
commit 6f96a4d043
241 changed files with 1410 additions and 1563 deletions

View File

@ -20,34 +20,34 @@
compatible = "gpio-leds";
led_router: router {
label = "wn-ag300dgr:green:router";
label = "green:router";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
children {
label = "wn-ag300dgr:green:children";
label = "green:children";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
eco {
label = "wn-ag300dgr:green:eco";
label = "green:eco";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
notification {
label = "wn-ag300dgr:amber:notification";
label = "amber:notification";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
wlan2g {
label = "wn-ag300dgr:green:wlan2g";
label = "green:wlan2g";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "wn-ag300dgr:green:wlan5g";
label = "green:wlan5g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -36,18 +36,18 @@
compatible = "gpio-leds";
ops {
label = "wlr-7100:white:ops";
label = "white:ops";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "wlr-7100:amber:power";
label = "amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan2g {
label = "wlr-7100:blue:wlan2g";
label = "blue:wlan2g";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -16,33 +16,33 @@
compatible = "gpio-leds";
led_user: user {
label = "mikrotik:yellow:user";
label = "yellow:user";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
led1 {
label = "mikrotik:green:led1";
label = "green:led1";
gpios = <&cpld_gpio 0 GPIO_ACTIVE_LOW>;
};
led2 {
label = "mikrotik:green:led2";
label = "green:led2";
gpios = <&cpld_gpio 2 GPIO_ACTIVE_LOW>;
};
led3 {
label = "mikrotik:green:led3";
label = "green:led3";
gpios = <&cpld_gpio 1 GPIO_ACTIVE_LOW>;
};
led4 {
label = "mikrotik:green:led4";
label = "green:led4";
gpios = <&cpld_gpio 3 GPIO_ACTIVE_LOW>;
};
led5 {
label = "mikrotik:green:led5";
label = "green:led5";
gpios = <&cpld_gpio 8 GPIO_ACTIVE_LOW>;
};
};

View File

@ -21,24 +21,24 @@
compatible = "gpio-leds";
wlan5g {
label = "bluesocket:green:wifi5g";
label = "green:wifi5g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wlan2g {
label = "bluesocket:green:wifi2g";
label = "green:wifi2g";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_status_green: status_green {
label = "bluesocket:green:status";
label = "green:status";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
led_status_yellow: status_yellow {
label = "bluesocket:yellow:status";
label = "yellow:status";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
};

View File

@ -32,23 +32,23 @@
compatible = "gpio-leds";
led_power_green: power_green {
label = "ap-105:green:power";
label = "green:power";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
led_power_red: power_red {
label = "ap-105:red:power";
label = "red:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
panic-indicator;
};
wifi_2g_red {
label = "ap-105:red:wlan2g";
label = "red:wlan2g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
wifi_5g_red {
label = "ap-105:red:wlan5g";
label = "red:wlan5g";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
};
@ -57,13 +57,13 @@
compatible = "gpio-leds";
wifi_2g_green {
label = "ap-105:green:wlan2g";
label = "green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi_5g_green {
label = "ap-105:green:wlan5g";
label = "green:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -23,7 +23,7 @@
compatible = "gpio-leds";
led_diag: diag {
label = "buffalo:red:diag";
label = "red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
};
@ -32,41 +32,41 @@
compatible = "gpio-leds";
band2g_a {
label = "buffalo:amber:band2g";
label = "amber:band2g";
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
};
usb {
label = "buffalo:green:usb";
label = "green:usb";
gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
linux,default-trigger = "usbport";
};
band2g_g {
label = "buffalo:green:band2g";
label = "green:band2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
band5g_g {
label = "buffalo:green:band5g";
label = "green:band5g";
gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
router {
label = "buffalo:green:router";
label = "green:router";
gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
};
movie_engine {
label = "buffalo:blue:movie_engine";
label = "blue:movie_engine";
gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
};
band5g_a {
label = "buffalo:amber:band5g";
label = "amber:band5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
};
};

View File

@ -27,35 +27,35 @@
compatible = "gpio-leds";
usb {
label = "d-link:blue:usb";
label = "blue:usb";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
linux,default-trigger = "usbport";
};
led_power_orange: power_orange {
label = "d-link:orange:power";
label = "orange:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_power_blue: power_blue {
label = "d-link:blue:power";
label = "blue:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wps {
label = "d-link:blue:wps";
label = "blue:wps";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
planet_orange {
label = "d-link:orange:planet";
label = "orange:planet";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
planet_blue {
label = "d-link:blue:planet";
label = "blue:planet";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
};
@ -64,13 +64,13 @@
compatible = "gpio-leds";
wlan2g {
label = "d-link:blue:wlan2g";
label = "blue:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "d-link:blue:wlan5g";
label = "blue:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -36,17 +36,17 @@
compatible = "gpio-leds";
led_d2: d2 {
label = "ja76pf2:green:d2";
label = "green:d2";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
d3 {
label = "ja76pf2:green:d3";
label = "green:d3";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
d4 {
label = "ja76pf2:green:d4";
label = "green:d4";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -27,38 +27,38 @@
compatible = "gpio-leds";
wifi1 {
label = "mr16:green:wifi1";
label = "green:wifi1";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
wifi2 {
label = "mr16:green:wifi2";
label = "green:wifi2";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wifi3 {
label = "mr16:green:wifi3";
label = "green:wifi3";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wifi4 {
label = "mr16:green:wifi4";
label = "green:wifi4";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
wan {
label = "mr16:green:wan";
label = "green:wan";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
led_power_orange: power_orange {
label = "mr16:orange:power";
label = "orange:power";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
panic-indicator;
};
led_power_green: power_green {
label = "mr16:green:power";
label = "green:power";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
};

View File

@ -25,7 +25,7 @@
compatible = "reset-leds";
usb_led {
label = "netgear:green:usb";
label = "green:usb";
resets = <&rst 12>;
trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
linux,default-trigger = "usbport";
@ -36,28 +36,28 @@
compatible = "gpio-leds";
wps {
label = "netgear:orange:wps";
label = "orange:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led_power_green: power_green {
label = "netgear:green:power";
label = "green:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
led_power_orange: power_orange {
label = "netgear:orange:power";
label = "orange:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wps_green {
label = "netgear:green:wps";
label = "green:wps";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wan_green {
label = "netgear:green:wan";
label = "green:wan";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
};
@ -66,12 +66,12 @@
compatible = "gpio-leds";
wlan2g {
label = "netgear:green:wlan2g";
label = "green:wlan2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "netgear:blue:wlan5g";
label = "blue:wlan5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -28,34 +28,34 @@
compatible = "gpio-leds";
led_power_green: led_power_green {
label = "ws-ap3610:green:power";
label = "green:power";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
led_power_red: led_power_red {
label = "ws-ap3610:red:power";
label = "red:power";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_wlan5_blue {
label = "ws-ap3610:blue:wlan5";
label = "blue:wlan5";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_wlan5_green {
label = "ws-ap3610:green:wlan5";
label = "green:wlan5";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
led_wlan2_blue {
label = "ws-ap3610:blue:wlan2";
label = "blue:wlan2";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
led_wlan2_green {
label = "ws-ap3610:green:wlan2";
label = "green:wlan2";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
};

View File

@ -24,7 +24,7 @@
compatible = "gpio-leds";
led_rf: rf_green {
label = "ubnt:green:rf";
label = "green:rf";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -55,42 +55,42 @@
pinctrl-0 = <&switch_led_pins>;
security {
label = "whr-g301n:orange:security";
label = "orange:security";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led_diag: diag {
label = "whr-g301n:red:diag";
label = "red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
router {
label = "whr-g301n:green:router";
label = "green:router";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "whr-g301n:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "whr-g301n:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "whr-g301n:green:lan3";
label = "green:lan3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "whr-g301n:green:lan4";
label = "green:lan4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wan {
label = "whr-g301n:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};
@ -99,7 +99,7 @@
compatible = "gpio-leds";
wlan {
label = "whr-g301n:green:wlan";
label = "green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -40,47 +40,47 @@
pinctrl-0 = <&switch_led_pins>;
led_power_green: power_green {
label = "d-link:green:power";
label = "green:power";
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
};
led_power_amber: power_amber {
label = "d-link:amber:power";
label = "amber:power";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
wps {
label = "d-link:blue:wps";
label = "blue:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "d-link:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "d-link:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "d-link:green:lan3";
label = "green:lan3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "d-link:green:lan4";
label = "green:lan4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "d-link:amber:wan";
label = "amber:wan";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
wan_green {
label = "d-link:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};
@ -89,7 +89,7 @@
compatible = "gpio-leds";
wlan {
label = "d-link:green:wlan";
label = "green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -34,27 +34,27 @@
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
rssilow {
label = "enh202-v1:red:rssilow";
label = "red:rssilow";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
rssimedium {
label = "enh202-v1:amber:rssimedium";
label = "amber:rssimedium";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_rssihigh: rssihigh {
label = "enh202-v1:green:rssihigh";
label = "green:rssihigh";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan {
label = "enh202-v1:amber:lan";
label = "amber:lan";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wan {
label = "enh202-v1:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};
@ -63,7 +63,7 @@
compatible = "gpio-leds";
wlan {
label = "enh202-v1:green:wlan";
label = "green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -54,63 +54,63 @@
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
led_power_green: power_green {
label = "netgear:green:power";
label = "green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
label = "netgear:amber:power";
label = "amber:power";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
wan_green {
label = "netgear:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "netgear:amber:wan";
label = "amber:wan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
lan1_green {
label = "netgear:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan1_amber {
label = "netgear:amber:lan1";
label = "amber:lan1";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
lan2_green {
label = "netgear:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan2_amber {
label = "netgear:amber:lan2";
label = "amber:lan2";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
lan3_green {
label = "netgear:green:lan3";
label = "green:lan3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan3_amber {
label = "netgear:amber:lan3";
label = "amber:lan3";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
lan4_green {
label = "netgear:green:lan4";
label = "green:lan4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
lan4_amber {
label = "netgear:amber:lan4";
label = "amber:lan4";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};
@ -119,12 +119,12 @@
compatible = "gpio-leds";
wps_green {
label = "netgear:green:wps";
label = "green:wps";
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
};
wlan_blue {
label = "netgear:blue:wlan";
label = "blue:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -33,22 +33,22 @@
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
led_power: power {
label = "netgear:green:power";
label = "green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "netgear:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "netgear:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
wan {
label = "netgear:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};
@ -57,7 +57,7 @@
compatible = "gpio-leds";
wlan {
label = "netgear:green:wlan";
label = "green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -39,12 +39,12 @@
pinctrl-0 = <&pinmux_switch_led_pins>;
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};
@ -53,7 +53,7 @@
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -4,7 +4,7 @@
&leds {
lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};

View File

@ -4,27 +4,27 @@
&leds {
lan1 {
label = "tp-link:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "tp-link:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "tp-link:green:lan3";
label = "green:lan3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "tp-link:green:lan4";
label = "green:lan4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wan {
label = "tp-link:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};

View File

@ -57,57 +57,57 @@
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
wan_green {
label = "netgear:green:wan";
label = "green:wan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "netgear:amber:wan";
label = "amber:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
lan1_green {
label = "netgear:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan1_amber {
label = "netgear:amber:lan1";
label = "amber:lan1";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
lan2_green {
label = "netgear:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan2_amber {
label = "netgear:amber:lan2";
label = "amber:lan2";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
lan3_green {
label = "netgear:green:lan3";
label = "green:lan3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan3_amber {
label = "netgear:amber:lan3";
label = "amber:lan3";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
lan4_green {
label = "netgear:green:lan4";
label = "green:lan4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
lan4_amber {
label = "netgear:amber:lan4";
label = "amber:lan4";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
wps_green {
label = "netgear:green:wps";
label = "green:wps";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
};
@ -116,18 +116,18 @@
compatible = "gpio-leds";
led_power_green: power_green {
label = "netgear:green:power";
label = "green:power";
gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
label = "netgear:amber:power";
label = "amber:power";
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
wlan_blue {
label = "netgear:blue:wlan";
label = "blue:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -51,62 +51,62 @@
pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
wan_green {
label = "netgear:green:wan";
label = "green:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "netgear:amber:wan";
label = "amber:wan";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
lan1_green {
label = "netgear:green:lan1";
label = "green:lan1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
lan1_amber {
label = "netgear:amber:lan1";
label = "amber:lan1";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
lan2_green {
label = "netgear:green:lan2";
label = "green:lan2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan2_amber {
label = "netgear:amber:lan2";
label = "amber:lan2";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
lan3_green {
label = "netgear:green:lan3";
label = "green:lan3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan3_amber {
label = "netgear:amber:lan3";
label = "amber:lan3";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
lan4_green {
label = "netgear:green:lan4";
label = "green:lan4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
lan4_amber {
label = "netgear:amber:lan4";
label = "amber:lan4";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wps_green {
label = "netgear:green:wps";
label = "green:wps";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
usb_green {
label = "netgear:green:usb";
label = "green:usb";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
@ -117,18 +117,18 @@
compatible = "gpio-leds";
led_power_green: power_green {
label = "netgear:green:power";
label = "green:power";
gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
label = "netgear:amber:power";
label = "amber:power";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
wlan_blue {
label = "netgear:blue:wlan";
label = "blue:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -36,12 +36,12 @@
compatible = "gpio-leds";
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};

View File

@ -10,7 +10,7 @@
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -10,7 +10,7 @@
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -17,7 +17,7 @@
&leds {
led3g {
label = "tp-link:green:3g";
label = "green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -10,7 +10,7 @@
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -39,17 +39,17 @@
compatible = "gpio-leds";
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led3g {
label = "tp-link:green:3g";
label = "green:3g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
@ -60,7 +60,7 @@
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -19,12 +19,12 @@
compatible = "gpio-leds";
led_globe: globe {
label = "ubnt:green:globe";
label = "green:globe";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
power {
label = "ubnt:green:power";
label = "green:power";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -37,12 +37,12 @@
compatible = "gpio-leds";
led_dome_green: dome_green {
label = "ubnt:green:dome";
label = "green:dome";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
dome_orange {
label = "ubnt:orange:dome";
label = "orange:dome";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -32,18 +32,18 @@
compatible = "gpio-leds";
led_power: power {
label = "fritz300e:green:power";
label = "green:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "on";
};
lan {
label = "fritz300e:green:lan";
label = "green:lan";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
wlan {
label = "fritz300e:green:wlan";
label = "green:wlan";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
@ -53,27 +53,27 @@
compatible = "gpio-leds";
rssi0 {
label = "fritz300e:green:rssi0";
label = "green:rssi0";
gpios = <&ath9k 10 GPIO_ACTIVE_LOW>;
};
rssi1 {
label = "fritz300e:green:rssi1";
label = "green:rssi1";
gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
};
rssi2 {
label = "fritz300e:green:rssi2";
label = "green:rssi2";
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
};
rssi3 {
label = "fritz300e:green:rssi3";
label = "green:rssi3";
gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
};
rssi4 {
label = "fritz300e:green:rssi4";
label = "green:rssi4";
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
};
};

View File

@ -9,7 +9,7 @@
&leds {
sec_vpn {
label = "buffalo:orange:vpn";
label = "orange:vpn";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};

View File

@ -40,12 +40,12 @@
compatible = "gpio-leds";
led_diag: diag {
label = "buffalo:red:diag";
label = "red:diag";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
usb {
label = "buffalo:green:usb";
label = "green:usb";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -66,7 +66,7 @@
compatible = "gpio-leds";
led_diag: diag {
label = "buffalo:red:diag";
label = "red:diag";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
@ -75,35 +75,35 @@
compatible = "gpio-leds";
usb {
label = "buffalo:blue:usb";
label = "blue:usb";
gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
wireless {
label = "buffalo:green:wireless";
label = "green:wireless";
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
security {
label = "buffalo:orange:security";
label = "orange:security";
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
};
router {
label = "buffalo:green:router";
label = "green:router";
gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
};
movie_engine_on {
label = "buffalo:blue:movie_engine_on";
label = "blue:movie_engine_on";
gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
};
movie_engine_off {
label = "buffalo:blue:movie_engine_off";
label = "blue:movie_engine_off";
gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
};
};

View File

@ -14,17 +14,17 @@
compatible = "gpio-leds";
led_movie_engine {
label = "buffalo:blue:movie_engine";
label = "blue:movie_engine";
gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
};
router {
label = "buffalo:green:router";
label = "green:router";
gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
};
wireless {
label = "buffalo:green:wireless";
label = "green:wireless";
gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
@ -58,7 +58,7 @@
&leds {
sec_vpn {
label = "buffalo:orange:security";
label = "orange:security";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};

View File

@ -49,12 +49,12 @@
compatible = "gpio-leds";
led_wps: wps {
label = "tplink:green:wps";
label = "green:wps";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
usb {
label = "tplink:green:usb";
label = "green:usb";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
@ -65,13 +65,13 @@
compatible = "gpio-leds";
wlan2g {
label = "tplink:green:wlan2g";
label = "green:wlan2g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g {
label = "tplink:green:wlan5g";
label = "green:wlan5g";
gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -24,7 +24,7 @@
compatible = "gpio-leds";
led_usr: usr {
label = "ubnt:yellow:usr";
label = "yellow:usr";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -11,22 +11,22 @@
compatible = "gpio-leds";
link1 {
label = "ubnt:red:link1";
label = "red:link1";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
link2 {
label = "ubnt:orange:link2";
label = "orange:link2";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
link3 {
label = "ubnt:green:link3";
label = "green:link3";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
led_link4: link4 {
label = "ubnt:green:link4";
label = "green:link4";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -45,17 +45,17 @@
compatible = "gpio-leds";
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -45,25 +45,25 @@
compatible = "gpio-leds";
usb {
label = "tp-link:green:usb";
label = "green:usb";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -39,22 +39,22 @@
compatible = "gpio-leds";
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
qss_r {
label = "tp-link:red:qss";
label = "red:qss";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
qss_g {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -39,12 +39,12 @@
pinctrl-0 = <&jtag_disable_pins>;
led_power_green: power {
label = "d-link:green:power";
label = "green:power";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
led_status_red: status {
label = "d-link:red:status";
label = "red:status";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
};
};

View File

@ -22,18 +22,18 @@
compatible = "gpio-leds";
wlan {
label = "gl-ar150:orange:wlan";
label = "orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
configurable {
label = "gl-ar150:green:configurable";
label = "green:configurable";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
led_power: power {
label = "gl-ar150:green:power";
label = "green:power";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
default-state = "on";
};

View File

@ -20,13 +20,13 @@
compatible = "gpio-leds";
led_wlan: wlan {
label = "air-pen:blue:wlan";
label = "blue:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
wps {
label = "air-pen:blue:wps";
label = "blue:wps";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -18,18 +18,18 @@
compatible = "gpio-leds";
wlan {
label = "carambola2:green:wlan";
label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
eth0 {
label = "carambola2:orange:eth0";
label = "orange:eth0";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
eth1 {
label = "carambola2:orange:eth1";
label = "orange:eth1";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -5,26 +5,6 @@
/ {
model = "ALFA Network AP121F";
compatible = "alfa-network,ap121f", "qca,ar9331";
leds {
compatible = "gpio-leds";
lan {
label = "ap121f:green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
led_vpn: vpn {
label = "ap121f:green:vpn";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
wlan {
label = "ap121f:green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
};
};
&usb {

View File

@ -31,6 +31,26 @@
debounce-interval = <60>;
};
};
leds {
compatible = "gpio-leds";
lan {
label = "green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
led_vpn: vpn {
label = "green:vpn";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
wlan {
label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
};
};
&eth0 {

View File

@ -5,26 +5,6 @@
/ {
model = "ALFA Network AP121FE";
compatible = "alfa-network,ap121fe", "qca,ar9331";
leds {
compatible = "gpio-leds";
lan {
label = "ap121fe:green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
led_vpn: vpn {
label = "ap121fe:green:vpn";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
wlan {
label = "ap121fe:green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
};
};
&usb {

View File

@ -53,13 +53,13 @@
compatible = "gpio-leds";
wlan {
label = "yun:blue:wlan";
label = "blue:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
usb {
label = "yun:white:usb";
label = "white:usb";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
trigger-sources = <&hub_port1>;
linux,default-trigger = "usbport";

View File

@ -21,7 +21,7 @@
compatible = "gpio-leds";
led_status: status {
label = "dorin:green:status";
label = "green:status";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
};

View File

@ -31,22 +31,22 @@
pinctrl-0 = <&switch_led_disable_pins>;
modbus {
label = "eg200:red:modbus";
label = "red:modbus";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
led_etactica: etactica {
label = "eg200:red:etactica";
label = "red:etactica";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
eth0 {
label = "eg200:red:eth0";
label = "red:eth0";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
wlan {
label = "eg200:red:wlan";
label = "red:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -26,13 +26,13 @@
compatible = "gpio-leds";
wlan {
label = "gl-inet:red:wlan";
label = "red:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
lan {
label = "gl-inet:green:lan";
label = "green:lan";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -18,23 +18,23 @@
compatible = "gpio-leds";
wlan {
label = "gl-mifi:green:wlan";
label = "green:wlan";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
lan {
label = "gl-mifi:green:lan";
label = "green:lan";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
wan {
label = "gl-mifi:green:wan";
label = "green:wan";
gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
};
3g4g {
label = "gl-mifi:green:3g4g";
label = "green:3g4g";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -19,7 +19,7 @@
pinctrl-0 = <&switch_led_disable_pins>;
led_system: system {
label = "lan-turtle:orange:system";
label = "orange:system";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};

View File

@ -17,17 +17,17 @@
compatible = "gpio-leds";
led_system_green: system-green {
label = "packet-squirrel:green:system";
label = "green:system";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
system-blue {
label = "packet-squirrel:blue:system";
label = "blue:system";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
system-red {
label = "packet-squirrel:red:system";
label = "red:system";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
};

View File

@ -53,7 +53,7 @@
compatible = "gpio-leds";
led_system: system {
label = "wifi-pineapple-nano:blue:system";
label = "blue:system";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -33,7 +33,7 @@
compatible = "gpio-leds";
led_system: system {
label = "ts-d084:blue:system";
label = "blue:system";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};

View File

@ -32,7 +32,7 @@
compatible = "gpio-leds";
led_system: system {
label = "pisen:blue:system";
label = "blue:system";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};

View File

@ -22,23 +22,23 @@
compatible = "gpio-leds";
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
led_wps: wps {
label = "tp-link:green:wps";
label = "green:wps";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
};
led3g {
label = "tp-link:green:3g";
label = "green:3g";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -23,18 +23,18 @@
pinctrl-0 = <&switch_led_disable_pins>;
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_lan: lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
led3g {
label = "tp-link:green:3g";
label = "green:3g";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -30,7 +30,7 @@
compatible = "gpio-leds";
led_system: system {
label = "tl-wr703n:blue:system";
label = "blue:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
};

View File

@ -30,7 +30,7 @@
compatible = "gpio-leds";
led_system: system {
label = "tl-wr710n:green:system";
label = "green:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
};

View File

@ -43,42 +43,42 @@
pinctrl-0 = <&switch_led_disable_pins>;
lan1 {
label = "tp-link:green:lan1";
label = "green:lan1";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
};
lan2 {
label = "tp-link:green:lan2";
label = "green:lan2";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};
lan3 {
label = "tp-link:green:lan3";
label = "green:lan3";
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
lan4 {
label = "tp-link:green:lan4";
label = "green:lan4";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
wan {
label = "tp-link:green:wan";
label = "green:wan";
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};

View File

@ -32,29 +32,29 @@
compatible = "gpio-leds";
led_power: power {
label = "ens202ext-v1:amber:power";
label = "amber:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan {
label = "ens202ext-v1:amber:wlan";
label = "amber:wlan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
rssilow {
label = "ens202ext-v1:red:rssilow";
label = "red:rssilow";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rssimedium {
label = "ens202ext-v1:amber:rssimedium";
label = "amber:rssimedium";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
rssihigh {
label = "ens202ext-v1:green:rssihigh";
label = "green:rssihigh";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};

View File

@ -42,39 +42,39 @@
compatible = "gpio-leds";
led_power: power {
label = "pcs:amber:power";
label = "amber:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan2g {
label = "pcs:blue:wlan";
label = "blue:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wan {
label = "pcs:blue:wan";
label = "blue:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "pcs:blue:lan1";
label = "blue:lan1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "pcs:blue:lan2";
label = "blue:lan2";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "pcs:blue:lan3";
label = "blue:lan3";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "pcs:blue:lan4";
label = "blue:lan4";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
};

View File

@ -64,32 +64,32 @@
pinctrl-0 = <&jtag_disable_pins>;
volume1 {
label = "wmb001n:blue:volume1";
label = "blue:volume1";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
volume2 {
label = "wmb001n:blue:volume2";
label = "blue:volume2";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
volume3 {
label = "wmb001n:blue:volume3";
label = "blue:volume3";
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
};
volume4 {
label = "wmb001n:blue:volume4";
label = "blue:volume4";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
};
volume5 {
label = "wmb001n:blue:volume5";
label = "blue:volume5";
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
};
led_wifi: wifi {
label = "wmb001n:blue:wifi";
label = "blue:wifi";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
};

View File

@ -19,44 +19,44 @@
compatible = "gpio-leds";
led_power: power {
label = "tp-link:green:power";
label = "green:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
wan {
label = "tp-link:green:wan";
label = "green:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "tp-link:green:lan1";
label = "green:lan1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "tp-link:green:lan2";
label = "green:lan2";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "tp-link:green:lan3";
label = "green:lan3";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "tp-link:green:lan4";
label = "green:lan4";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};

View File

@ -27,7 +27,7 @@
&leds {
usb {
label = "tp-link:green:usb";
label = "green:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -35,43 +35,43 @@
compatible = "gpio-leds";
lan {
label = "tp-link:blue:lan";
label = "blue:lan";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
wlan {
label = "tp-link:blue:wlan";
label = "blue:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_re: re {
label = "tp-link:blue:re";
label = "blue:re";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
signal1 {
label = "tp-link:blue:signal1";
label = "blue:signal1";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
signal2 {
label = "tp-link:blue:signal2";
label = "blue:signal2";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
signal3 {
label = "tp-link:blue:signal3";
label = "blue:signal3";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
signal4 {
label = "tp-link:blue:signal4";
label = "blue:signal4";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
signal5 {
label = "tp-link:blue:signal5";
label = "blue:signal5";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
};

View File

@ -42,29 +42,29 @@
compatible = "gpio-leds";
lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
led_power_green: power_green {
label = "tp-link:green:power";
label = "green:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_power_orange: power_orange {
label = "tp-link:orange:power";
label = "orange:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
wlan_green {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan_orange {
label = "tp-link:orange:wlan";
label = "orange:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
};

View File

@ -28,23 +28,23 @@
compatible = "gpio-leds";
lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
wlan {
label = "tp-link:green:wlan";
label = "green:wlan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
qss {
label = "tp-link:green:qss";
label = "green:qss";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_system: system {
label = "tp-link:green:system";
label = "green:system";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -37,7 +37,7 @@
&leds {
usb {
label = "tp-link:green:usb";
label = "green:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -20,13 +20,13 @@
compatible = "gpio-leds";
led_power: power {
label = "etg3-r:green:power";
label = "green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
default-state = "on";
};
notification {
label = "etg3-r:green:notification";
label = "green:notification";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -16,22 +16,22 @@
compatible = "gpio-leds";
rssi0 {
label = "ubnt:blue:rssi0";
label = "blue:rssi0";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
rssi1 {
label = "ubnt:blue:rssi1";
label = "blue:rssi1";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rssi2 {
label = "ubnt:blue:rssi2";
label = "blue:rssi2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_rssi3: rssi3 {
label = "ubnt:blue:rssi3";
label = "blue:rssi3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -16,22 +16,22 @@
compatible = "gpio-leds";
rssi0 {
label = "ubnt:blue:rssi0";
label = "blue:rssi0";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
rssi1 {
label = "ubnt:blue:rssi1";
label = "blue:rssi1";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rssi2 {
label = "ubnt:blue:rssi2";
label = "blue:rssi2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_rssi3: rssi3 {
label = "ubnt:blue:rssi3";
label = "blue:rssi3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -16,22 +16,22 @@
compatible = "gpio-leds";
rssi0 {
label = "ubnt:blue:rssi0";
label = "blue:rssi0";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
rssi1 {
label = "ubnt:blue:rssi1";
label = "blue:rssi1";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
rssi2 {
label = "ubnt:blue:rssi2";
label = "blue:rssi2";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_rssi3: rssi3 {
label = "ubnt:blue:rssi3";
label = "blue:rssi3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -21,22 +21,22 @@
compatible = "gpio-leds";
link1 {
label = "ubnt:red:link1";
label = "red:link1";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
link2 {
label = "ubnt:orange:link2";
label = "orange:link2";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
link3 {
label = "ubnt:green:link3";
label = "green:link3";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_link4: link4 {
label = "ubnt:green:link4";
label = "green:link4";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -36,12 +36,12 @@
compatible = "gpio-leds";
led_power_orange: power_orange {
label = "hiveap-121:orange:power";
label = "orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_power_white: power_white {
label = "hiveap-121:white:power";
label = "white:power";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
};

View File

@ -42,37 +42,37 @@
compatible = "gpio-leds";
lan1 {
label = "n5q:green:lan1";
label = "green:lan1";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "n5q:green:lan2";
label = "green:lan2";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
led_signal4: signal4 {
label = "n5q:green:signal4";
label = "green:signal4";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
signal1 {
label = "n5q:red:signal1";
label = "red:signal1";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
signal2 {
label = "n5q:orange:signal2";
label = "orange:signal2";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
signal3 {
label = "n5q:green:signal3";
label = "green:signal3";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wlan {
label = "n5q:green:wlan";
label = "green:wlan";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -24,38 +24,38 @@
pinctrl-0 = <&led_rssimediumhigh_pin>;
wan {
label = "cf-e120a-v3:green:wan";
label = "green:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
lan {
label = "cf-e120a-v3:green:lan";
label = "green:lan";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
};
wlan {
label = "cf-e120a-v3:green:wlan";
label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
rssilow {
label = "cf-e120a-v3:red:rssilow";
label = "red:rssilow";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
rssimediumlow {
label = "cf-e120a-v3:red:rssimediumlow";
label = "red:rssimediumlow";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
rssimediumhigh {
label = "cf-e120a-v3:green:rssimediumhigh";
label = "green:rssimediumhigh";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
led_rssihigh: rssihigh {
label = "cf-e120a-v3:green:rssihigh";
label = "green:rssihigh";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};

View File

@ -21,27 +21,27 @@
compatible = "gpio-leds";
led_status: status {
label = "wpj344:green:status";
label = "green:status";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
sig1 {
label = "wpj344:red:sig1";
label = "red:sig1";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
sig2 {
label = "wpj344:yellow:sig2";
label = "yellow:sig2";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
sig3 {
label = "wpj344:green:sig3";
label = "green:sig3";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
sig4 {
label = "wpj344:green:sig4";
label = "green:sig4";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
};

View File

@ -20,18 +20,18 @@
compatible = "gpio-leds";
wlan {
label = "devolo:white:wlan";
label = "white:wlan";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
led_dlan_white: dlan_white {
label = "devolo:white:dlan";
label = "white:dlan";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_dlan_red: dlan_red {
label = "devolo:red:dlan";
label = "red:dlan";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
panic-indicator;
};

View File

@ -21,40 +21,40 @@
pinctrl-0 = <&enable_gpio_11>;
led_power_blue: power_blue {
label = "d-link:blue:power";
label = "blue:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
usb {
label = "d-link:blue:usb";
label = "blue:usb";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "usbport";
trigger-sources = <&hub_port1>;
};
wan_blue {
label = "d-link:blue:wan";
label = "blue:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
wlan2g {
label = "d-link:blue:wlan2g";
label = "blue:wlan2g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wps {
label = "d-link:blue:wps";
label = "blue:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_power_orange: power_orange {
label = "d-link:orange:power";
label = "orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
wan_orange {
label = "d-link:orange:wan";
label = "orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
};
@ -63,7 +63,7 @@
compatible = "gpio-leds";
wlan5g {
label = "d-link:blue:wlan5g";
label = "blue:wlan5g";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -18,27 +18,27 @@
compatible = "gpio-leds";
led_power_green: power_green {
label = "d-link:green:power";
label = "green:power";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
wan_green {
label = "d-link:green:wan";
label = "green:wan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
wps {
label = "d-link:green:wps";
label = "green:wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_power_orange: power_orange {
label = "d-link:orange:power";
label = "orange:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
wan_orange {
label = "d-link:orange:wan";
label = "orange:wan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
};

View File

@ -45,27 +45,27 @@
pinctrl-0 = <&enable_gpio_11 &enable_gpio_16>;
led_power_green: power_green {
label = "ws-ap3705i:green:power";
label = "green:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_power_red: power_red {
label = "ws-ap3705i:red:power";
label = "red:power";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
lan_blue {
label = "ws-ap3705i:blue:lan";
label = "blue:lan";
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
};
lan_green {
label = "ws-ap3705i:green:lan";
label = "green:lan";
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
};
radio2 {
label = "ws-ap3705i:green:radio2";
label = "green:radio2";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
@ -75,7 +75,7 @@
compatible = "gpio-leds";
radio1 {
label = "ws-ap3705i:green:radio1";
label = "green:radio1";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -21,38 +21,38 @@
compatible = "gpio-leds";
power {
label = "mikrotik:green:power";
label = "green:power";
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
rssilow {
label = "mikrotik:green:rssilow";
label = "green:rssilow";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
rssimediumlow {
label = "mikrotik:green:rssimediumlow";
label = "green:rssimediumlow";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
rssimedium {
label = "mikrotik:green:rssimedium";
label = "green:rssimedium";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
rssimediumhigh {
label = "mikrotik:green:rssimediumhigh";
label = "green:rssimediumhigh";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
rssihigh {
label = "mikrotik:green:rssihigh";
label = "green:rssihigh";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
led_user: user {
label = "mikrotik:green:user";
label = "green:user";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};

View File

@ -47,35 +47,35 @@
pinctrl-0 = <&enable_gpio_11>;
led_power_green: power_green {
label = "netgear:green:power";
label = "green:power";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
label = "netgear:amber:power";
label = "amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
wlan2g_green {
label = "netgear:green:wlan2g";
label = "green:wlan2g";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wlan5g_blue {
label = "netgear:blue:wlan5g";
label = "blue:wlan5g";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wps_green {
label = "netgear:green:wps";
label = "green:wps";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wps_amber {
label = "netgear:amber:wps";
label = "amber:wps";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
};

View File

@ -2,7 +2,7 @@
&leds {
usb_green {
label = "netgear:green:usb";
label = "green:usb";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";

View File

@ -2,12 +2,12 @@
&leds {
wan_green {
label = "netgear:green:wan";
label = "green:wan";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wan_amber {
label = "netgear:amber:wan";
label = "amber:wan";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
};

View File

@ -24,19 +24,19 @@
compatible = "gpio-leds";
power {
label = "raccoon:green:power";
label = "green:power";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan2g {
label = "raccoon:yellow:wlan24";
label = "yellow:wlan24";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_system: system {
label = "raccoon:blue:sys";
label = "blue:sys";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
};
@ -45,7 +45,7 @@
compatible = "gpio-leds";
wlan5g {
label = "raccoon:red:wlan5";
label = "red:wlan5";
gpios = <&ath9k 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -35,35 +35,35 @@
compatible = "gpio-leds";
led_power_amber: power_amber {
label = "pcs:amber:power";
label = "amber:power";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_power_green: power_green {
label = "pcs:green:power";
label = "green:power";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan_amber {
label = "pcs:amber:wlan";
label = "amber:wlan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wlan_green {
label = "pcs:green:wlan";
label = "green:wlan";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
lan_amber {
label = "pcs:amber:lan";
label = "amber:lan";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan_green {
label = "pcs:green:lan";
label = "green:lan";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
};

View File

@ -42,20 +42,20 @@
compatible = "gpio-leds";
led_power: power {
label = "pcs:amber:power";
label = "amber:power";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>,
<&gpio 4 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wlan2g {
label = "pcs:blue:wlan";
label = "blue:wlan";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wps_white {
label = "pcs:white:wps";
label = "white:wps";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};

View File

@ -21,12 +21,12 @@
pinctrl-0 = <&jtag_disable_pins>;
led_wlan_g: wlan_g {
label = "c301:green:wlan";
label = "green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
led_wlan_o: wlan_o {
label = "c301:orange:wlan";
label = "orange:wlan";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};

View File

@ -38,23 +38,23 @@
compatible = "gpio-leds";
lan {
label = "wam250:white:lan";
label = "white:lan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
led_power: power {
label = "wam250:white:power";
label = "white:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
repeater {
label = "wam250:white:repeater";
label = "white:repeater";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
wlan {
label = "wam250:white:wlan";
label = "white:wlan";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -18,37 +18,37 @@
compatible = "gpio-leds";
signal0 {
label = "rut955:green:signal0";
label = "green:signal0";
gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
};
signal1 {
label = "rut955:green:signal1";
label = "green:signal1";
gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
};
signal2 {
label = "rut955:green:signal2";
label = "green:signal2";
gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
};
signal3 {
label = "rut955:green:signal3";
label = "green:signal3";
gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
};
signal4 {
label = "rut955:green:signal4";
label = "green:signal4";
gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
};
led_system_red: system_red {
label = "rut955:red:system";
label = "red:system";
gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
};
led_system_green: system_green {
label = "rut955:green:system";
label = "green:system";
gpios = <&gpio_ext 6 GPIO_ACTIVE_HIGH>;
default-state = "on";
};

View File

@ -17,37 +17,37 @@
compatible = "gpio-leds";
signal0 {
label = "rut955:green:signal0";
label = "green:signal0";
gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
};
signal1 {
label = "rut955:green:signal1";
label = "green:signal1";
gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
};
signal2 {
label = "rut955:green:signal2";
label = "green:signal2";
gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
};
signal3 {
label = "rut955:green:signal3";
label = "green:signal3";
gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
};
signal4 {
label = "rut955:green:signal4";
label = "green:signal4";
gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
};
led_system_red: system_red {
label = "rut955:red:system";
label = "red:system";
gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
};
led_system_green: system_green {
label = "rut955:green:system";
label = "green:system";
gpios = <&gpio_ext 6 GPIO_ACTIVE_HIGH>;
default-state = "on";
};

View File

@ -16,12 +16,12 @@
compatible = "gpio-leds";
led_lan: lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "tp-link:green:wlan5g";
label = "green:wlan5g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -16,12 +16,12 @@
compatible = "gpio-leds";
led_lan: lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
wlan5g {
label = "tp-link:green:wlan5g";
label = "green:wlan5g";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};

View File

@ -14,27 +14,27 @@
compatible = "gpio-leds";
lan {
label = "tp-link:green:lan";
label = "green:lan";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
link1 {
label = "tp-link:green:link1";
label = "green:link1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
link2 {
label = "tp-link:green:link2";
label = "green:link2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
link3 {
label = "tp-link:green:link3";
label = "green:link3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_system: link4 {
label = "tp-link:green:link4";
label = "green:link4";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};

View File

@ -14,32 +14,32 @@
compatible = "gpio-leds";
lan0 {
label = "tp-link:green:lan0";
label = "green:lan0";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "tp-link:green:lan1";
label = "green:lan1";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
link1 {
label = "tp-link:green:link1";
label = "green:link1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
link2 {
label = "tp-link:green:link2";
label = "green:link2";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
link3 {
label = "tp-link:green:link3";
label = "green:link3";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_link4: link4 {
label = "tp-link:green:link4";
label = "green:link4";
};
};
};

Some files were not shown because too many files have changed in this diff Show More