. /lib/functions.sh
. /lib/functions/leds.sh
-get_status_led() {
- board=$(board_name)
- boardname="${board##*,}"
-
- case $board in
- 3g150b|\
- 3g300m|\
- w150m)
- status_led="$boardname:blue:ap"
- ;;
- 3g-6200n|\
- ar670w|\
- ar725w|\
- br-6475nd|\
- c50|\
- dch-m225|\
- dir-860l-b1|\
- e1700|\
- elecom,wrc-1167ghbk2-s|\
- ex2700|\
- ex3700|\
- fonera20n|\
- firewrt|\
- hg255d|\
- iodata,wn-ax1167gr|\
- iodata,wn-gx300gr|\
- kn|\
- kn_rc|\
- kn_rf|\
- kng_rc|\
- mzk-750dhp|\
- mzk-dp150n|\
- mzk-w300nh2|\
- nbg-419n|\
- nbg-419n2|\
- pwh2004|\
- r6220|\
- tplink,c20-v4|\
- tplink,c50-v3|\
- tplink,tl-wa801nd-v5|\
- tplink,tl-mr3420-v5|\
- tplink,tl-wr842n-v5|\
- tplink,tl-wr902ac-v3|\
- tl-wr840n-v4|\
- tl-wr840n-v5|\
- tl-wr841n-v13|\
- vr500|\
- wnce2001|\
- wndr3700v5|\
- x5|\
- x8|\
- xdxrn502j|\
- wn3000rpv3|\
- zyxel,keenetic-extra-ii)
- status_led="$boardname:green:power"
- ;;
- 3g-6200nl)
- status_led="$boardname:green:internet"
- ;;
- a5-v11|\
- cs-qr10|\
- d105|\
- dcs-930l-b1|\
- hlk-rm04|\
- jhr-n825r|\
- mpr-a1|\
- mpr-a2|\
- mzk-ex750np)
- status_led="$boardname:red:power"
- ;;
- ai-br100|\
- ht-tm02)
- status_led="$boardname:blue:wlan"
- ;;
- alfa-network,ac1200rm|\
- awapn2403|\
- dir-645|\
- sk-wb8|\
- tplink,c2-v1|\
- wrh-300cr)
- status_led="$boardname:green:wps"
- ;;
- alfa-network,awusfree1)
- status_led="$boardname:orange:system"
- ;;
- all0239-3g|\
- dcs-930|\
- dir-300-b1|\
- dir-300-b7|\
- dir-320-b1|\
- dir-600-b1|\
- dir-610-a1|\
- dir-615-d|\
- dir-615-h1|\
- dir-620-a1|\
- dir-620-d1|\
- dwr-512-b|\
- dlink,dwr-116-a1|\
- gnubee,gb-pc1|\
- gnubee,gb-pc2|\
- hpm|\
- hw550-3g|\
- mac1200rv2|\
- miniembwifi|\
- mofi3500-3gn|\
- rut5xx|\
- v11st-fe|\
- wmr-300|\
- zbt-wg2626)
- status_led="$boardname:green:status"
- ;;
- dlink,dwr-921-c1)
- status_led="$boardname:green:sigstrength"
- ;;
- asl26555-8M|\
- asl26555-16M)
- status_led="asl26555:green:power"
- ;;
- atp-52b|\
- ew1200|\
- ip2202)
- status_led="$boardname:green:run"
- ;;
- c108)
- status_led="$boardname:green:lan"
- ;;
- cf-wr800n|\
- psg1208)
- status_led="$boardname:white:wps"
- ;;
- psg1218a|\
- psg1218b)
- status_led="$boardname:yellow:status"
- ;;
- cy-swr1100|\
- w502u|\
- youhua,wr1200js)
- status_led="$boardname:blue:wps"
- ;;
- d240|\
- dap-1350|\
- na930|\
- d-team,newifi-d2|\
- pbr-m1|\
- re350-v1|\
- rt-ac51u|\
- rt-n13u|\
- rt-n14u|\
- rt-n15|\
- rt-n56u|\
- tplink,c20-v1|\
- wl-330n|\
- wl-330n3g|\
- wli-tx4-ag300n|\
- y1|\
- y1s|\
- youku-yk1|\
- zorlik,zl5900v2)
- status_led="$boardname:blue:power"
- ;;
- dlink,dap-1522-a1|\
- phicomm,k2g|\
- k2p|\
- m3|\
- mir3g|\
- miwifi-nano)
- status_led="$boardname:blue:status"
- ;;
- db-wrt01|\
- esr-9753|\
- pbr-d1)
- status_led="$boardname:orange:power"
- ;;
- f5d8235-v1)
- status_led="$boardname:blue:wired"
- ;;
- f5d8235-v2)
- status_led="$boardname:blue:router"
- ;;
- f7c027|\
- timecloud)
- status_led="$boardname:orange:status"
- ;;
- hc5*61|\
- hc5661a|\
- jhr-n805r|\
- jhr-n926r|\
- mlw221|\
- mlwg2|\
- vonets,var11n-300)
- status_led="$boardname:blue:system"
- ;;
- hc5962)
- status_led="$boardname:white:status"
- ;;
- kimax,u35wf|\
- m2m)
- status_led="$boardname:blue:wifi"
- ;;
- linkits7688)
- status_led="linkit-smart-7688:orange:wifi"
- ;;
- gl-mt300n-v2)
- status_led="$boardname:green:power"
- ;;
- m4-4M|\
- m4-8M)
- status_led="m4:blue:status"
- ;;
- mikrotik,rbm11g|\
- mikrotik,rbm33g)
- status_led="$boardname:green:usr"
- ;;
- miwifi-mini|\
- zte-q7)
- status_led="$boardname:red:status"
- ;;
- mr-102n)
- status_led="$boardname:amber:status"
- ;;
- mr200)
- status_led="$boardname:white:power"
- ;;
- nw718)
- status_led="$boardname:amber:cpu"
- ;;
- newifi-d1)
- status_led="$boardname:blue:status"
- ;;
- omega2| \
- omega2p)
- status_led="$boardname:amber:system"
- ;;
- oy-0001|\
- sl-r7205)
- status_led="$boardname:green:wifi"
- ;;
- psr-680w)
- status_led="$boardname:red:wan"
- ;;
- px-4885-4M|\
- px-4885-8M)
- status_led="px-4885:orange:wifi"
- ;;
- re6500|\
- whr-1166d|\
- whr-600d)
- status_led="$boardname:orange:wifi"
- ;;
- mzk-ex300np|\
- rt-n10-plus|\
- tew-638apb-v2|\
- tew-691gr|\
- tew-692gr|\
- ur-326n4g|\
- ur-336un|\
- wf-2881)
- status_led="$boardname:green:wps"
- ;;
- rb750gr3)
- status_led="$boardname:blue:pwr"
- ;;
- sap-g3200u3)
- status_led="$boardname:green:usb"
- ;;
- u25awf-h1)
- status_led="u25awf:red:wifi"
- ;;
- u7621-06-256M-16M)
- status_led="u7621-06:green:status"
- ;;
- u7628-01-128M-16M)
- status_led="u7628-01:green:power"
- ;;
- v22rw-2x2)
- status_led="$boardname:green:security"
- ;;
- vocore-8M|\
- vocore-16M)
- status_led="vocore:green:status"
- ;;
- vocore2)
- status_led="$boardname:fuchsia:status"
- ;;
- vocore2lite)
- status_led="$boardname:green:status"
- ;;
- w306r-v20|\
- mqmaker,witi-256m|\
- mqmaker,witi-512m|\
- zbt-wr8305rt)
- status_led="$boardname:green:sys"
- ;;
- wcr-1166ds|\
- whr-300hp2|\
- wsr-1166|\
- wsr-600)
- status_led="$boardname:green:power"
- ;;
- wcr-150gn|\
- wl-351)
- status_led="$boardname:amber:power"
- ;;
- whr-g300n|\
- wlr-6000|\
- zbt-we2026)
- status_led="$boardname:red:power"
- ;;
- widora,neo-16m|\
- widora,neo-32m)
- status_led="widora:orange:wifi"
- ;;
- wzr-agl300nh)
- status_led="$boardname:green:router"
- ;;
- wizfi630a)
- status_led="$boardname::run"
- ;;
- wr512-3gn-4M|\
- wr512-3gn-8M)
- status_led="wr512-3gn:green:wps"
- ;;
- wrtnode2r | \
- wrtnode2p | \
- wrtnode)
- status_led="wrtnode:blue:indicator"
- ;;
- wt3020-4M|\
- wt3020-8M)
- status_led="wt3020:blue:power"
- ;;
- zbt-cpe102)
- status_led="$boardname:green:4g-0"
- ;;
- zbt-we826-16M|\
- zbt-we826-32M)
- status_led="zbt-we826:green:power"
- ;;
- zbtlink,zbt-we1226)
- status_led="$boardname:green:wlan"
- ;;
- zbt-wg3526-16M|\
- zbt-wg3526-32M)
- status_led="zbt-wg3526:green:status"
- ;;
- esac
-}
+status_led="$(get_dt_led status)"
set_state() {
get_status_led $1
compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
model = "Edimax 3g-6200n";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "3g-6200n:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "edimax,3g-6200nl", "ralink,rt3050-soc";
model = "Edimax 3g-6200nl";
+ aliases {
+ led-status = &led_internet;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- internet {
+ led_internet: internet {
label = "3g-6200nl:green:internet";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "tenda,3g150b", "ralink,rt5350-soc";
model = "Tenda 3G150B";
+ aliases {
+ led-status = &led_ap;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- ap {
+ led_ap: ap {
label = "3g150b:blue:ap";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "tenda,3g300m", "ralink,rt3052-soc";
model = "Tenda 3G300M";
+ aliases {
+ led-status = &led_ap;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- ap {
+ led_ap: ap {
label = "3g300m:blue:ap";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "unbranded,a5-v11", "ralink,rt5350-soc";
model = "A5-V11";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "a5-v11:red:power";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc";
model = "ALFA Network AC1200RM";
+ aliases {
+ led-status = &led_wps;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "ac1200rm:green:wps";
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
compatible = "aigale,ai-br100", "ralink,mt7620a-soc";
model = "Aigale Ai-BR100";
+ aliases {
+ led-status = &led_wlan;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
};
- wlan {
+ led_wlan: wlan {
label = "ai-br100:blue:wlan";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
model = "Allnet ALL0239-3G";
+ aliases {
+ led-status = &led_status;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "all0239-3g:green:status";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "airlink101,ar670w", "ralink,rt2880-soc";
model = "Airlink101 AR670W";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@bdc00000 {
compatible = "cfi-flash";
reg = <0xbc400000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_power: power {
label = "ar670w:green:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "airlink101,ar725w", "ralink,rt2880-soc";
model = "Airlink101 AR725W";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@bdc00000 {
compatible = "cfi-flash";
reg = <0xbc400000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_power: power {
label = "ar725w:green:power";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
/ {
compatible = "alphanetworks,asl26555", "ralink,rt3050-soc";
+ aliases {
+ led-status = &led_power_green;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
- power-green {
+ led_power_green: power-green {
label = "asl26555:green:power";
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
compatible = "argus,atp-52b", "ralink,rt3052-soc";
model = "Argus ATP-52B";
+ aliases {
+ led-status = &led_run;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- run {
+ led_run: run {
label = "atp-52b:green:run";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "asiarf,awapn2403", "ralink,rt3052-soc";
model = "AsiaRF AWAPN2403";
+ aliases {
+ led-status = &led_wps;
+ };
+
+
gpio-leds {
compatible = "gpio-leds";
- link {
+ led_wps: wps {
label = "awapn2403:green:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc";
model = "ALFA Network AWUSFREE1";
+ aliases {
+ led-status = &led_system;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "awusfree1:orange:system";
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,c2-v1", "ralink,mt7620a-soc";
model = "TP-Link Archer C2 v1";
+ aliases {
+ led-status = &led_wps;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "c2-v1:green:wps";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,c20-v1", "ralink,mt7620a-soc";
model = "TP-Link Archer C20 v1";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "c20-v1:blue:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
default-state = "keep";
compatible = "tplink,c20-v4", "mediatek,mt7628an-soc";
model = "TP-Link Archer C20 v4";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "c20-v4:green:power";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,c50", "ralink,mt7620a-soc";
model = "TP-Link Archer C50";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "c50:green:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
default-state = "on";
compatible = "tplink,c50-v3", "mediatek,mt7628an-soc";
model = "TP-Link Archer C50 v3";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "c50-v3:green:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,mr200", "ralink,mt7620a-soc";
model = "TP-Link Archer MR200";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "mr200:white:power";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "edimax,br-6475nd", "ralink,rt3883-soc";
model = "Edimax BR-6475nD";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "br-6475nd:green:power";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
compatible = "hnet,c108", "ralink,mt7620a-soc";
model = "HNET C108";
+ aliases {
+ led-status = &led_lan_green;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
};
- lan_green {
+ led_lan_green: lan_green {
label = "c108:green:lan";
gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
};
compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
model = "Comfast CF-WR800N";
+ aliases {
+ led-status = &led_wps;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "cf-wr800n:white:wps";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
model = "Planex CS-QR10";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "cs-qr10:red:power";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
compatible = "samsung,cy-swr1100", "ralink,rt3883-soc";
model = "Samsung CY-SWR1100";
+ aliases {
+ led-status = &led_wps;
+ };
+
nor-flash@1c000000 {
compatible = "cfi-flash";
reg = <0x1c000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- wps {
+ led_wps: wps {
label = "cy-swr1100:blue:wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
compatible = "huawei,d105", "ralink,rt3050-soc";
model = "Huawei D105";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "d105:red:power";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
- wps {
+ usb {
label = "d105:green:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
compatible = "sanlinking,d240", "ralink,mt7620a-soc";
model = "Sanlinking Technologies D240";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "d240:blue:power";
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
compatible = "dlink,dap-1350", "ralink,rt3052-soc";
model = "D-Link DAP-1350";
+ aliases {
+ led-status = &led_power_blue;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power_blue: power {
label = "dap-1350:blue:power";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
model = "D-Link DAP-1522 A1";
+ aliases {
+ led-status = &led_status;
+ };
+
cfi@bc400000 {
compatible = "cfi-flash";
reg = <0xbc400000 0x800000>;
gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "dap-1522-a1:blue:status";
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
};
compatible = "planex,db-wrt01", "ralink,mt7620a-soc";
model = "Planex DB-WRT01";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "db-wrt01:orange:power";
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
model = "D-Link DCH-M225";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "dch-m225:green:power";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dcs-930", "ralink,rt3050-soc";
model = "D-Link DCS-930";
+ aliases {
+ led-status = &led_status;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x400000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- power {
+ led_status: status {
label = "dcs-930:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dcs-930l-b1", "ralink,rt5350-soc";
model = "D-Link DCS-930L B1";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "dcs-930l-b1:red:power";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-300-b1", "ralink,rt3050-soc";
model = "D-Link DIR-300 B1";
+ aliases {
+ led-status = &led_status_green;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- status2 {
+ led_status_green: status2 {
label = "dir-300-b1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-300-b7", "ralink,rt5350-soc";
model = "D-Link DIR-300 B7";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "dir-300-b7:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-320-b1", "ralink,rt5350-soc";
model = "D-Link DIR-320 B1";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "dir-320-b1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-600-b1", "ralink,rt3050-soc";
model = "D-Link DIR-600 B1";
+ aliases {
+ led-status = &led_status_green;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- status2 {
+ led_status_green: status2 {
label = "dir-600-b1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-610-a1", "ralink,rt5350-soc";
model = "D-Link DIR-610 A1";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "dir-610-a1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-615-d1", "ralink,rt3050-soc";
model = "D-Link DIR-615 D";
+ aliases {
+ led-status = &led_status_green;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- status2 {
+ led_status_green: status2 {
label = "dir-615-d:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-615-h1", "ralink,rt3352-soc";
model = "D-Link DIR-615 H1";
+ aliases {
+ led-status = &led_status_green;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
- status2 {
+ led_status_green: status2 {
label = "dir-615-h1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
compatible = "dlink,dir-620-a1", "ralink,rt3050-soc";
model = "D-Link DIR-620 A1";
+ aliases {
+ led-status = &led_status_green;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- status2 {
+ led_status_green: status2 {
label = "dir-620-a1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-620-d1", "ralink,rt3352-soc";
model = "D-Link DIR-620 D1";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "dir-620-d1:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dir-645", "ralink,rt3883-soc";
model = "D-Link DIR-645";
+ aliases {
+ led-status = &led_wps;
+ };
+
rtl8367b {
compatible = "realtek,rtl8367b";
gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "dir-645:green:wps";
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
};
compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
model = "D-Link DIR-810L";
+ aliases {
+ led-status = &led_power_green;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power_green: power {
label = "dir-810l:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
};
- status {
+ power2 {
label = "dir-810l:orange:power";
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
};
compatible = "dlink,dir-860l-b1", "mediatek,mt7621-soc";
model = "D-Link DIR-860L B1";
+ aliases {
+ led-status = &led_power_green;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
- power2 {
+ led_power_green: power2 {
label = "dir-860l-b1:green:power";
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc";
model = "D-Link DWR-116 A1/A2";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "dwr-116-a1:green:status";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
compatible = "dlink,dwr-512-b", "ralink,rt5350-soc";
model = "D-Link DWR-512 B";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
label = "dwr-512-b:green:sms";
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
- status {
+ led_status: status {
label = "dwr-512-b:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "dlink,dwr-921-c1", "ralink,mt7620n-soc";
model = "D-Link DWR-921 C1";
+ aliases {
+ led-status = &led_sstrenghg;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
};
- sstrengthg {
+ led_sstrenghg: sstrengthg {
label = "dwr-921-c1:green:sigstrength";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
compatible = "linksys,e1700", "ralink,mt7620a-soc";
model = "Linksys E1700";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "e1700:green:power";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
compatible = "engenius,esr-9753", "ralink,rt3052-soc";
model = "Senao / EnGenius ESR-9753";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "esr-9753:orange:power";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "afoundry,ew1200", "mediatek,mt7621-soc";
model = "EW1200";
+ aliases {
+ led-status = &led_run;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_run: run {
label = "ew1200:green:run";
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
};
compatible = "netgear,ex2700", "ralink,mt7620a-soc";
model = "Netgear EX2700";
+ aliases {
+ led-status = &led_power_green;
+ };
+
chosen {
bootargs = "console=ttyS0,57600";
};
gpio-leds {
compatible = "gpio-leds";
- power_g {
+ led_power_green: power_g {
label = "ex2700:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
default-state = "on";
compatible = "netgear,ex3700", "ralink,mt7620a-soc";
model = "Netgear EX3700/EX3800";
+ aliases {
+ led-status = &led_power_green;
+ };
+
chosen {
bootargs = "console=ttyS0,57600";
};
gpio-leds {
compatible = "gpio-leds";
- power_g {
+ led_power_green: power_g {
label = "ex3700:green:power";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
default-state = "on";
compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
model = "Belkin F5D8235 v1";
+ aliases {
+ led-status = &led_wired_blue;
+ };
+
pci@440000 {
status = "ok";
};
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
- wired {
+ led_wired_blue: wired {
label = "f5d8235-v1:blue:wired";
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
};
compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc";
model = "Belkin F5D8235 v2";
+ aliases {
+ led-status = &led_router;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- router {
+ led_router: router {
label = "f5d8235-v2:blue:router";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "belkin,f7c027", "ralink,rt5350-soc";
model = "Belkin F7C027";
+ aliases {
+ led-status = &led_status_orange;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
- orange {
+ led_status_orange: orange {
label = "f7c027:orange:status";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "firefly,firewrt", "mediatek,mt7621-soc";
model = "Firefly FireWRT";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "firewrt:green:power";
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
};
compatible = "fon,fonera20n", "ralink,rt3052-soc";
model = "La Fonera 2.0N";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "fonera20n:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
model = "GB-PC1";
+ aliases {
+ led-status = &led_status;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "gb-pc1:green:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc";
model = "GB-PC2";
+ aliases {
+ led-status = &led_status;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "gb-pc2:green:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
model = "GL-MT300N-V2";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "gl-mt300n-v2:green:power";
default-state = "on";
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
compatible = "hiwifi,hc5661", "hiwifi,hc5x61", "ralink,mt7620a-soc";
model = "HiWiFi HC5661";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "hc5661:blue:system";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
model = "HiWiFi HC5661A";
+ aliases {
+ led-status = &led_system;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "hc5661a:blue:system";
gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
};
compatible = "hiwifi,hc5761", "hiwifi,hc5x61", "ralink,mt7620a-soc";
model = "HiWiFi HC5761";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "hc5761:blue:system";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "hiwifi,hc5861", "hiwifi,hc5x61", "ralink,mt7620a-soc";
model = "HiWiFi HC5861";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "hc5861:blue:system";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
model = "HiWiFi HC5962";
+ aliases {
+ led-status = &led_status;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "hc5962:white:status";
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
compatible = "huawei,hg255d", "ralink,rt3052-soc";
model = "HuaWei HG255D";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x1000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "hg255d:green:power";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "omnima,hpm", "ralink,rt3883-soc";
model = "Omnima HPM";
+ aliases {
+ led-status = &led_status;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "hpm:green:status";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
};
compatible = "hootoo,ht-tm02", "ralink,rt5350-soc";
model = "HooToo HT-TM02";
+ aliases {
+ led-status = &led_wlan;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- wlan {
+ led_wlan: wlan {
label = "ht-tm02:blue:wlan";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "aztech,hw550-3g", "ralink,rt3052-soc";
model = "Aztech HW550-3G";
+ aliases {
+ led-status = &led_status;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "hw550-3g:green:status";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "poray,ip2202", "ralink,rt3052-soc";
model = "Poray IP2202";
+ aliases {
+ led-status = &led_run;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- run {
+ led_run: run {
label = "ip2202:green:run";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "jcg,jhr-n805r", "ralink,rt3050-soc";
model = "JCG JHR-N805R";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "jhr-n805r:blue:system";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "jcg,jhr-n825r", "ralink,rt3052-soc";
model = "JCG JHR-N825R";
+ aliases {
+ led-status = &led_system;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "jhr-n825r:red:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "jcg,jhr-n926r", "ralink,rt3052-soc";
model = "JCG JHR-N926R";
+ aliases {
+ led-status = &led_system;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
};
- system {
+ led_system: system {
label = "jhr-n926r:blue:system";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
model = "Phicomm K2G";
aliases {
+ led-status = &led_blue;
serial0 = &uartlite;
};
compatible = "phicomm,k2p", "mediatek,mt7621-soc";
model = "Phicomm K2P";
+ aliases {
+ led-status = &led_blue;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
- stat_b {
+ led_blue: stat_b {
label = "k2p:blue:status";
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
};
compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc";
model = "MediaTek LinkIt Smart 7688";
+ aliases {
+ led-status = &led_wifi;
+ };
+
chosen {
bootargs = "console=ttyS2,57600";
};
gpio-leds {
compatible = "gpio-leds";
- wifi {
+ led_wifi: wifi {
label = "linkit-smart-7688:orange:wifi";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
compatible = "intenso,memory2move", "ralink,rt5350-soc";
model = "Intenso Memory 2 Move";
+ aliases {
+ led-status = &led_wifi;
+ };
+
chosen {
bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
};
gpio-leds {
compatible = "gpio-leds";
- wifi {
+ led_wifi: wifi {
label = "m2m:blue:wifi";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "poray,m3", "ralink,rt5350-soc";
model = "Poray M3";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "m3:blue:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "poray,m4", "ralink,rt5350-soc";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "m4:blue:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
model = "Mercury MAC1200R v2";
+ aliases {
+ led-status = &led_status;
+ };
+
chosen {
bootargs = "console=ttyS0,57600";
};
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "mac1200rv2:green:status";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "omnima,miniembwifi", "ralink,rt3052-soc";
model = "Omnima MiniEMBWiFi";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "miniembwifi:green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "xiaomi,mir3g", "mediatek,mt7621-soc";
model = "Xiaomi Mi Router 3G";
+ aliases {
+ led-status = &led_status_blue;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
- status_blue {
+ led_status_blue: status_blue {
label = "mir3g:blue:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
model = "Xiaomi MiWiFi Mini";
+ aliases {
+ led-status = &led_blue;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- blue {
+ led_blue: blue {
label = "miwifi-mini:blue:status";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
};
compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
model = "MiWiFi Nano";
+ aliases {
+ led-status = &led_blue;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- status_blue {
+ led_blue: status_blue {
label = "miwifi-nano:blue:status";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "kingston,mlw221", "ralink,mt7620n-soc";
model = "Kingston MLW221";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "mlw221:blue:system";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
model = "Kingston MLWG2";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "mlwg2:blue:system";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc";
model = "MoFi Network MOFI3500-3GN";
+ aliases {
+ led-status = &led_status;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "mofi3500-3gn:green:status";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "hame,mpr-a1", "ralink,rt5350-soc";
model = "HAME MPR-A1";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "mpr-a1:blue:system";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
compatible = "hame,mpr-a2", "ralink,rt5350-soc";
model = "HAME MPR-A2";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "mpr-a2:blue:system";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
compatible = "aximcom,mr-102n", "ralink,rt3052-soc";
model = "AXIMCom MR-102N";
+ aliases {
+ led-status = &led_status;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- status {
+ led_status: status {
label = "mr-102n:amber:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc";
model = "Planex MZK-750DHP";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "mzk-750dhp:green:power";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
compatible = "planex,mzk-dp150n", "ralink,rt5350-soc";
model = "Planex MZK-DP150N";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "mzk-dp150n:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc";
model = "Planex MZK-EX300NP";
+ aliases {
+ led-status = &led_wps;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "mzk-ex300np:green:wps";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
compatible = "planex,mzk-ex750np", "ralink,mt7620a-soc";
model = "Planex MZK-EX750NP";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "mzk-ex750np:red:power";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc";
model = "Planex MZK-W300NH2";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "mzk-w300nh2:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "sercomm,na930", "ralink,mt7620a-soc";
model = "Sercomm NA930";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS1,57600";
};
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "na930:blue:power";
gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
};
compatible = "zyxel,nbg-419n", "ralink,rt3052-soc";
model = "ZyXEL NBG-419N";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "nbg-419n:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
model = "ZyXEL NBG-419N v2";
+ aliases {
+ led-status = &led_power;
+ };
+
palmbus@10000000 {
spi@b00 {
status = "okay";
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "nbg-419n2:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "netcore,nw718", "ralink,rt3050-soc";
model = "Netcore NW718";
+ aliases {
+ led-status = &led_cpu;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- cpu {
+ led_cpu: cpu {
label = "nw718:amber:cpu";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
model = "Newifi-D1";
+ aliases {
+ led-status = &led_blue;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
- statys-blue {
+ led_blue: status-blue {
label = "newifi-d1:blue:status";
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
};
compatible = "d-team,newifi-d2", "mediatek,mt7621-soc";
model = "Newifi-D2";
+ aliases {
+ led-status = &led_power_blue;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
- power-blue {
+ led_power_blue: power-blue {
label = "newifi-d2:blue:power";
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "onion,omega2", "mediatek,mt7628an-soc";
+ aliases {
+ led-status = &system_led;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc";
model = "OY-0001";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- powerled {
+ led_power: powerled {
label = "oy-0001:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc";
model = "PBR-D1";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
default-state = "off";
};
- power {
+ led_power: power {
label = "pbr-d1:orange:power";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
default-state = "on";
compatible = "d-team,pbr-m1", "mediatek,mt7621-soc";
model = "PBR-M1";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "pbr-m1:blue:power";
gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
};
compatible = "phicomm,psg1208", "ralink,mt7620a-soc";
model = "Phicomm PSG1208";
+ aliases {
+ led-status = &led_wps;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- wan {
+ led_wps: wps {
label = "psg1208:white:wps";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
compatible = "phicomm,psg1218a", "phicomm,psg1218", "ralink,mt7620a-soc";
model = "Phicomm PSG1218 rev.A";
+ aliases {
+ led-status = &led_blue;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- blue {
+ led_blue: blue {
label = "psg1218a:blue:status";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
compatible = "phicomm,psg1218b", "phicomm,psg1218", "ralink,mt7620a-soc";
model = "Phicomm PSG1218 rev.B";
+ aliases {
+ led-status = &led_blue;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- blue {
+ led_blue: blue {
label = "psg1218b:blue:status";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
compatible = "petatel,psr-680w", "ralink,rt3052-soc";
model = "Petatel PSR-680W Wireless 3G Router";
+ aliases {
+ led-status = &led_wan;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- wan {
+ led_wan: wan {
label = "psr-680w:red:wan";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
compatible = "prolink,pwh2004", "ralink,rt3052-soc";
model = "Prolink PWH2004";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "pwh2004:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "7links,px-4885", "ralink,rt5350-soc";
+ aliases {
+ led-status = &led_wifi;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- orange {
+ led_wifi: wifi {
label = "px-4885:orange:wifi";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
};
- blue {
+ storage {
label = "px-4885:blue:storage";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
compatible = "netgear,r6220", "mediatek,mt7621-soc";
model = "Netgear R6220";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "r6220:green:power";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
};
compatible = "mikrotik,rb750gr3", "mediatek,mt7621-soc";
model = "MikroTik RB750Gr3";
+ aliases {
+ led-status = &led_pwr;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpio-leds {
compatible = "gpio-leds";
- pwr {
+ led_pwr: pwr {
label = "rb750gr3:blue:pwr";
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
};
compatible = "mikrotik,rbm11g", "mediatek,mt7621-soc";
model = "MikroTik RBM11G";
+ aliases {
+ led-status = &led_usr;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpio-leds {
compatible = "gpio-leds";
- usr {
+ led_usr: usr {
label = "rbm11g:green:usr";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc";
model = "MikroTik RBM33G";
+ aliases {
+ led-status = &led_usr;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpio-leds {
compatible = "gpio-leds";
- usr {
+ led_usr: usr {
label = "rbm33g:green:usr";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
compatible = "tplink,re350-v1", "mediatek,mt7621-soc";
model = "TP-LINK RE350 v1";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "re350-v1:blue:power";
gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
};
compatible = "linksys,re6500", "mediatek,mt7621-soc";
model = "Linksys RE6500";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
- power {
+ led_power: power {
label = "re6500:white:power";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
compatible = "asus,rt-ac51u", "ralink,mt7620a-soc";
model = "Asus RT-AC51U";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "rt-ac51u:blue:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "asus,rt-n10-plus", "ralink,rt3050-soc";
model = "Asus RT-N10+";
+ aliases {
+ led-status = &led_wps;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- wps {
+ led_wps: wps {
label = "rt-n10-plus:green:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "asus,rt-n12p", "ralink,mt7620n-soc";
model = "Asus RT-N12+";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "rt-n12p:green:power";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
compatible = "asus,rt-n13u", "ralink,rt3052-soc";
model = "Asus RT-N13U";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "rt-n13u:blue:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
model = "Asus RT-N14U";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "rt-n14u:blue:power";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
compatible = "asus,rt-n15", "ralink,rt2880-soc";
model = "Asus RT-N15";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "rt-n15:blue:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "asus,rt-n56u", "ralink,rt3883-soc";
model = "Asus RT-N56U";
+ aliases {
+ led-status = &led_power;
+ };
+
nor-flash@1c000000 {
compatible = "cfi-flash";
reg = <0x1c000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "rt-n56u:blue:power";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
compatible = "teltonika,rut5xx", "ralink,rt3050-soc";
model = "Teltonika RUT5XX";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "rut5xx:green:status";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
model = "STORYLiNK SAP-G3200U3";
+ aliases {
+ led-status = &led_usb;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpio-leds {
compatible = "gpio-leds";
- usb {
+ led_usb: usb {
label = "sap-g3200u3:green:usb";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc";
model = "SamKnows Whitebox 8";
+ aliases {
+ led-status = &led_wps;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpio-leds {
compatible = "gpio-leds";
- wps {
+ led_wps: wps {
label = "sk-wb8:green:wps";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
compatible = "skyline,sl-r7205", "ralink,rt3052-soc";
model = "Skyline SL-R7205 Wireless 3G Router";
+ aliases {
+ led-status = &led_wifi;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- wifi {
+ led_wifi: wifi {
label = "sl-r7205:green:wifi";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "trendnet,tew-638apb-v2", "ralink,rt3050-soc";
model = "TRENDnet TEW-638APB v2";
+ aliases {
+ led-status = &led_wps_green;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x400000>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- wps2 {
+ led_wps_green: wps2 {
label = "tew-638apb-v2:green:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
model = "TRENDnet TEW-691GR";
+ aliases {
+ led-status = &led_wps;
+ };
+
nor-flash@1c000000 {
compatible = "cfi-flash";
reg = <0x1c000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- wps {
+ led_wps: wps {
label = "tew-691gr:green:wps";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "trendnet,tew-692gr", "ralink,rt3883-soc";
model = "TRENDnet TEW-692GR";
+ aliases {
+ led-status = &led_wps_green;
+ };
+
nor-flash@1c000000 {
compatible = "cfi-flash";
reg = <0x1c000000 0x800000>;
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
- wps2 {
+ led_wps_green: wps2 {
label = "tew-692gr:green:wps";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-mr3420-v5", "mediatek,mt7628an-soc";
model = "TP-Link TL-MR3420 v5";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "tl-mr3420-v5:green:power";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
model = "TP-Link TL-WA801ND v5";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "tl-wa801nd-v5:green:power";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-wr840n-v4", "mediatek,mt7628an-soc";
model = "TP-Link TL-WR840N v4";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "tl-wr840n-v4:green:power";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc";
model = "TP-Link TL-WR840N v5";
+ aliases {
+ led-status = &led_power_green;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power_green: power {
label = "tl-wr840n-v5:green:power";
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-wr841n-v13", "mediatek,mt7628an-soc";
model = "TP-Link TL-WR841N v13";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "tl-wr841n-v13:green:power";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-wr842n-v5", "mediatek,mt7628an-soc";
model = "TP-Link TL-WR842N v5";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "tl-wr842n-v5:green:power";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
};
compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc";
model = "TP-Link TL-WR902AC v3";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
};
- power {
+ led_power: power {
label = "tl-wr902ac-v3:green:power";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
compatible = "thunder,timecloud", "mediatek,mt7621-soc";
model = "Thunder Timecloud";
+ aliases {
+ led-status = &led_statuso;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
- stato {
+ led_statuso: stato {
label = "timecloud:orange:status";
gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
};
compatible = "kimax,u25awf-h1","ralink,mt7620a-soc";
model = "Kimax U25AWF-H1";
+ aliases {
+ led-status = &led_wifi;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- wifi {
+ led_wifi: wifi {
label = "u25awf:red:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
compatible = "kimax,u35wf","ralink,mt7620n-soc";
model = "Kimax U35WF";
+ aliases {
+ led-status = &led_wifi;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- wifi {
+ led_wifi: wifi {
label = "u35wf:blue:wifi";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "unielec,u7621-06", "mediatek,mt7621-soc";
+ aliases {
+ led-status = &led_status;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "u7621-06:green:status";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "unielec,u7628-01", "mediatek,mt7628an-soc";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "u7628-01:green:power";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
compatible = "upvel,ur-326n4g", "ralink,rt3052-soc";
model = "UPVEL UR-326N4G";
+ aliases {
+ led-status = &led_wps;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "ur-326n4g:green:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "upvel,ur-336un", "ralink,rt3052-soc";
model = "UPVEL UR-336UN";
+ aliases {
+ led-status = &led_wps;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "ur-336un:green:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
model = "Ralink V11ST-FE";
+ aliases {
+ led-status = &led_status;
+ };
+
pci@440000 {
status = "okay";
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "v11st-fe:green:status";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc";
model = "Ralink AP-RT3052-V22RW-2X2";
+ aliases {
+ led-status = &led_security;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- security {
+ led_security: security {
label = "v22rw-2x2:green:security";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
compatible = "vonets,var11n-300", "ralink,mt7620n-soc";
model = "Vonets VAR11N-300";
+ aliases {
+ led-status = &led_system;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- system {
+ led_system: system {
label = "var11n-300:blue:system";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
/ {
compatible = "vocore,vocore", "ralink,rt5350-soc";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-export {
compatible = "gpio-export";
#size-cells = <0>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
/* UARTF_RXD */
label = "vocore:green:status";
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
compatible = "vocore,vocore2", "mediatek,mt7628an-soc";
model = "VoCore2";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "vocore2:fuchsia:status";
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
};
compatible = "vocore,vocore2lite", "vocore,vocore2", "mediatek,mt7628an-soc";
model = "VoCore2-Lite";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "vocore2lite:green:status";
gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
};
compatible = "planex,vr500", "mediatek,mt7621-soc";
model = "Planex VR500";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x10000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "vr500:green:power";
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
};
compatible = "tenda,w150m", "ralink,rt3050-soc";
model = "Tenda W150M";
+ aliases {
+ led-status = &led_ap;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- ap {
+ led_ap: ap {
label = "w150m:blue:ap";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "tenda,w306r-v2", "ralink,rt3052-soc";
model = "Tenda W306R V2.0";
+ aliases {
+ led-status = &led_sys;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- sys {
+ led_sys: sys {
label = "w306r-v20:green:sys";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "alfanetworks,w502u", "ralink,rt3052-soc";
model = "ALFA Networks W502U";
+ aliases {
+ led-status = &led_wps;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "w502u:blue:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
model = "Buffalo WCR-1166DS";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wcr-1166ds:green:power";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
compatible = "sparklan,wcr150gn", "ralink,rt3050-soc";
model = "Sparklan WCR-150GN";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wcr-150gn:amber:power";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "netis,wf-2881", "mediatek,mt7621-soc";
model = "NETIS WF-2881";
+ aliases {
+ led-status = &led_wps;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "wf-2881:green:wps";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc";
model = "Buffalo WHR-1166D";
+ aliases {
+ led-status = &led_power_green;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- power2 {
+ led_power_green: power2 {
label = "whr-1166d:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
model = "Buffalo WHR-300HP2";
+ aliases {
+ led-status = &led_power_green;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- power2 {
+ led_power_green: power2 {
label = "whr-300hp2:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,whr-600d", "ralink,mt7620a-soc";
model = "Buffalo WHR-600D";
+ aliases {
+ led-status = &led_power_green;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- power2 {
+ led_power_green: power2 {
label = "whr-600d:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,whr-g300n", "ralink,rt3052-soc";
model = "Buffalo WHR-G300N";
+ aliases {
+ led-status = &led_router;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
- router {
+ led_router: router {
label = "whr-g300n:green:router";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "widora,neo", "mediatek,mt7628an-soc";
+ aliases {
+ led-status = &led_wifi;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- wifi {
+ led_wifi: wifi {
label = "widora:orange:wifi";
gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
default-state = "on";
compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
model = "WIZnet WizFi630A";
+ aliases {
+ led-status = &led_run;
+ };
+
chosen {
bootargs = "console=ttyS1,115200";
};
gpio-leds {
compatible = "gpio-leds";
- run {
+ led_run: run {
label = "wizfi630a::run";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
compatible = "asus,wl-330n", "ralink,rt3050-soc";
model = "Asus WL-330N";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wl-330n:blue:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "asus,wl-330n3g", "ralink,rt3050-soc";
model = "Asus WL-330N3G";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wl-330n3g:blue:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
compatible = "sitecom,wl-351", "ralink,rt3052-soc";
model = "Sitecom WL-351 v1 002";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "wl-351:amber:power";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
model = "Buffalo WLI-TX4-AG300N";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wli-tx4-ag300n:blue:power";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
model = "Sitecom WLR-6000";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "wlr-6000:red:power";
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
model = "Buffalo WMR-300";
+ aliases {
+ led-status = &led_status;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
};
- power {
+ led_status: status {
label = "wmr-300:green:status";
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
};
compatible = "iodata,wn-ax1167gr", "mediatek,mt7621-soc";
model = "I-O DATA WN-AX1167GR";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "wn-ax1167gr:green:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
model = "I-O DATA WN-GX300GR";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "wn-gx300gr:green:power";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
compatible = "netgear,wn3000rp-v3", "ralink,mt7620a-soc";
model = "Netgear WN3000RPv3";
+ aliases {
+ led-status = &led_power_green;
+ };
+
chosen {
bootargs = "console=ttyS0,57600";
};
gpio-leds {
compatible = "gpio-leds";
- power_g {
+ led_power_green: power_g {
label = "wn3000rpv3:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
default-state = "on";
compatible = "netgear,wnce2001", "ralink,rt3052-soc";
model = "Netgear WNCE2001";
+ aliases {
+ led-status = &led_power_green;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power-green {
+ led_power_green: power-green {
label = "wnce2001:green:power";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc";
model = "Netgear WNDR3700v5";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wndr3700v5:green:power";
gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
};
compatible = "youhua,wr1200js", "mediatek,mt7621-soc";
model = "YouHua WR1200JS";
+ aliases {
+ led-status = &led_wps;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "wr1200js:blue:wps";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc";
+ aliases {
+ led-status = &led_wps;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
- wps {
+ led_wps: wps {
label = "wr512-3gn:green:wps";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
model = "ELECOM WRC-1167GHBK2-S";
+ aliases {
+ led-status = &led_power_green;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
};
- power_green {
+ led_power_green: power_green {
label = "wrc-1167ghbk2-s:green:power";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
};
compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
model = "ELECOM WRH-300CR";
+ aliases {
+ led-status = &led_wps;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- wps {
+ led_wps: wps {
label = "wrh-300cr:green:wps";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
model = "WRTNODE";
+ aliases {
+ led-status = &led_indicator;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- indicator {
+ led_indicator: indicator {
label = "wrtnode:blue:indicator";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
compatible = "wrtnode,wrtnode2p", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
model = "WRTnode2P";
+ aliases {
+ led-status = &led_indicator;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- indicator {
+ led_indicator: indicator {
label = "wrtnode:blue:indicator";
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
};
compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
model = "WRTnode2R";
+ aliases {
+ led-status = &led_indicator;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- indicator {
+ led_indicator: indicator {
label = "wrtnode:blue:indicator";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
model = "Buffalo WSR-1166DHP";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "wsr-1166:green:power";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
compatible = "buffalo,wsr-600dhp", "mediatek,mt7621-soc";
model = "Buffalo WSR-600DHP";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "wsr-600:green:power";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "nexx,wt3020", "ralink,mt7620n-soc";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "wt3020:blue:power";
gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
};
compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
model = "Buffalo WZR-AGL300NH";
+ aliases {
+ led-status = &led_router;
+ };
+
pci@440000 {
status = "ok";
};
gpio-leds {
compatible = "gpio-leds";
- router {
+ led_router: router {
label = "wzr-agl300nh:green:router";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
compatible = "poray,x5", "ralink,rt5350-soc";
model = "Poray X5";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "x5:green:power";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
compatible = "poray,x8", "ralink,rt5350-soc";
model = "Poray X8";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "x8:green:power";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc";
model = "XDX RN502J";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "xdxrn502j:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
model = "Lenovo Y1";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- power1 {
+ led_power: power {
label = "y1:blue:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "lenovo,newifi-y1s", "lenovo,newifi-y1", "ralink,mt7620a-soc";
model = "Lenovo Y1S";
+ aliases {
+ led-status = &led_power_blue;
+ };
+
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
- power2 {
+ led_power_blue: power2 {
label = "y1s:blue:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "youku,yk1", "ralink,mt7620a-soc";
model = "YOUKU YK1";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
wan {
label = "youku-yk1:blue:usb";
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "youku-yk1:blue:power";
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
};
compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WA05";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "zbt-wa05:blue:power";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc";
model = "Zbtlink ZBT-WE1226";
+ aliases {
+ led-status = &led_wlan;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
};
- wlan {
+ led_wlan: wlan {
label = "zbt-we1226:green:wlan";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};
compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WE2026";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "zbt-we2026:red:power";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
+ aliases {
+ led-status = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "zbt-we826:green:power";
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
compatible = "zbtlink,zbt-wg2626", "mediatek,mt7621-soc";
model = "ZBT-WG2626";
+ aliases {
+ led-status = &led_status;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "zbt-wg2626:green:status";
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
};
/ {
compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
+ aliases {
+ led-status = &led_status;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
gpio-leds {
compatible = "gpio-leds";
- status {
+ led_status: status {
label = "zbt-wg3526:green:status";
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
};
compatible = "zbtlink,zbt-wr8305rt", "ralink,mt7620n-soc";
model = "Zbtlink ZBT-WR8305RT";
+ aliases {
+ led-status = &led_sys;
+ };
+
gpio-leds {
compatible = "gpio-leds";
- sys {
+ led_sys: sys {
label = "zbt-wr8305rt:green:sys";
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
};
compatible = "zorlik,zl5900v2", "ralink,rt5350-soc";
model = "Zorlik ZL5900V2";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
};
- power {
+ led_power: power {
label = "zl5900v2:blue:power";
gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
};
compatible = "zte,q7", "ralink,mt7620a-soc";
model = "ZTE Q7";
+ aliases {
+ led-status = &led_status_blue;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
- statblue {
+ led_status_blue: statblue {
label = "zte-q7:blue:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc";
model = "ZyXEL Keenetic Extra II";
+ aliases {
+ led-status = &led_power;
+ };
+
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "keenetic-extra-ii:green:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
default-state = "keep";
compatible = "zyxel,keenetic", "ralink,rt3052-soc";
model = "ZyXEL Keenetic";
+ aliases {
+ led-status = &led_power;
+ };
+
cfi@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
gpio-leds {
compatible = "gpio-leds";
- power {
+ led_power: power {
label = "kn:green:power";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
compatible = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
model = "ZyXEL Keenetic Omni";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "kn_rc:green:power";
gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
};
compatible = "zyxel,keenetic-omni-ii", "ralink,mt7620n-soc";
model = "ZyXEL Keenetic Omni II";
+ aliases {
+ led-status = &led_power;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power: power {
label = "kn_rc:green:power";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc";
model = "ZyXEL Keenetic Viva";
+ aliases {
+ led-status = &led_power_green;
+ };
+
gpio-leds {
compatible = "gpio-leds";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
- power {
+ led_power_green: power {
label = "kng_rc:green:power";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};