ramips: Use dts alias based status led
authorChuanhong Guo <gch981213@gmail.com>
Mon, 16 Jul 2018 08:27:22 +0000 (16:27 +0800)
committerJohn Crispin <john@phrozen.org>
Mon, 16 Jul 2018 13:12:18 +0000 (15:12 +0200)
Also fix several typos in led node name.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
208 files changed:
target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/dts/3G-6200N.dts
target/linux/ramips/dts/3G-6200NL.dts
target/linux/ramips/dts/3G150B.dts
target/linux/ramips/dts/3G300M.dts
target/linux/ramips/dts/A5-V11.dts
target/linux/ramips/dts/AC1200RM.dts
target/linux/ramips/dts/AI-BR100.dts
target/linux/ramips/dts/ALL0239-3G.dts
target/linux/ramips/dts/AR670W.dts
target/linux/ramips/dts/AR725W.dts
target/linux/ramips/dts/ASL26555.dtsi
target/linux/ramips/dts/ATP-52B.dts
target/linux/ramips/dts/AWAPN2403.dts
target/linux/ramips/dts/AWUSFREE1.dts
target/linux/ramips/dts/ArcherC2-v1.dts
target/linux/ramips/dts/ArcherC20v1.dts
target/linux/ramips/dts/ArcherC20v4.dts
target/linux/ramips/dts/ArcherC50.dts
target/linux/ramips/dts/ArcherC50V3.dts
target/linux/ramips/dts/ArcherMR200.dts
target/linux/ramips/dts/BR-6475ND.dts
target/linux/ramips/dts/C108.dts
target/linux/ramips/dts/CF-WR800N.dts
target/linux/ramips/dts/CS-QR10.dts
target/linux/ramips/dts/CY-SWR1100.dts
target/linux/ramips/dts/D105.dts
target/linux/ramips/dts/D240.dts
target/linux/ramips/dts/DAP-1350.dts
target/linux/ramips/dts/DAP-1522-A1.dts
target/linux/ramips/dts/DB-WRT01.dts
target/linux/ramips/dts/DCH-M225.dts
target/linux/ramips/dts/DCS-930.dts
target/linux/ramips/dts/DCS-930L-B1.dts
target/linux/ramips/dts/DIR-300-B1.dts
target/linux/ramips/dts/DIR-300-B7.dts
target/linux/ramips/dts/DIR-320-B1.dts
target/linux/ramips/dts/DIR-600-B1.dts
target/linux/ramips/dts/DIR-610-A1.dts
target/linux/ramips/dts/DIR-615-D.dts
target/linux/ramips/dts/DIR-615-H1.dts
target/linux/ramips/dts/DIR-620-A1.dts
target/linux/ramips/dts/DIR-620-D1.dts
target/linux/ramips/dts/DIR-645.dts
target/linux/ramips/dts/DIR-810L.dts
target/linux/ramips/dts/DIR-860L-B1.dts
target/linux/ramips/dts/DWR-116-A1.dts
target/linux/ramips/dts/DWR-512-B.dts
target/linux/ramips/dts/DWR-921-C1.dts
target/linux/ramips/dts/E1700.dts
target/linux/ramips/dts/ESR-9753.dts
target/linux/ramips/dts/EW1200.dts
target/linux/ramips/dts/EX2700.dts
target/linux/ramips/dts/EX3700.dts
target/linux/ramips/dts/F5D8235_V1.dts
target/linux/ramips/dts/F5D8235_V2.dts
target/linux/ramips/dts/F7C027.dts
target/linux/ramips/dts/FIREWRT.dts
target/linux/ramips/dts/FONERA20N.dts
target/linux/ramips/dts/GB-PC1.dts
target/linux/ramips/dts/GB-PC2.dts
target/linux/ramips/dts/GL-MT300N-V2.dts
target/linux/ramips/dts/HC5661.dts
target/linux/ramips/dts/HC5661A.dts
target/linux/ramips/dts/HC5761.dts
target/linux/ramips/dts/HC5861.dts
target/linux/ramips/dts/HC5962.dts
target/linux/ramips/dts/HG255D.dts
target/linux/ramips/dts/HPM.dts
target/linux/ramips/dts/HT-TM02.dts
target/linux/ramips/dts/HW550-3G.dts
target/linux/ramips/dts/IP2202.dts
target/linux/ramips/dts/JHR-N805R.dts
target/linux/ramips/dts/JHR-N825R.dts
target/linux/ramips/dts/JHR-N926R.dts
target/linux/ramips/dts/K2G.dts
target/linux/ramips/dts/K2P.dts
target/linux/ramips/dts/LINKIT7688.dts
target/linux/ramips/dts/M2M.dts
target/linux/ramips/dts/M3.dts
target/linux/ramips/dts/M4.dtsi
target/linux/ramips/dts/MAC1200RV2.dts
target/linux/ramips/dts/MINIEMBWIFI.dts
target/linux/ramips/dts/MIR3G.dts
target/linux/ramips/dts/MIWIFI-MINI.dts
target/linux/ramips/dts/MIWIFI-NANO.dts
target/linux/ramips/dts/MLW221.dts
target/linux/ramips/dts/MLWG2.dts
target/linux/ramips/dts/MOFI3500-3GN.dts
target/linux/ramips/dts/MPRA1.dts
target/linux/ramips/dts/MPRA2.dts
target/linux/ramips/dts/MR-102N.dts
target/linux/ramips/dts/MZK-750DHP.dts
target/linux/ramips/dts/MZK-DP150N.dts
target/linux/ramips/dts/MZK-EX300NP.dts
target/linux/ramips/dts/MZK-EX750NP.dts
target/linux/ramips/dts/MZK-W300NH2.dts
target/linux/ramips/dts/NA930.dts
target/linux/ramips/dts/NBG-419N.dts
target/linux/ramips/dts/NBG-419N2.dts
target/linux/ramips/dts/NW718.dts
target/linux/ramips/dts/Newifi-D1.dts
target/linux/ramips/dts/Newifi-D2.dts
target/linux/ramips/dts/OMEGA2.dtsi
target/linux/ramips/dts/OY-0001.dts
target/linux/ramips/dts/PBR-D1.dts
target/linux/ramips/dts/PBR-M1.dts
target/linux/ramips/dts/PSG1208.dts
target/linux/ramips/dts/PSG1218A.dts
target/linux/ramips/dts/PSG1218B.dts
target/linux/ramips/dts/PSR-680W.dts
target/linux/ramips/dts/PWH2004.dts
target/linux/ramips/dts/PX-4885.dtsi
target/linux/ramips/dts/R6220.dts
target/linux/ramips/dts/RB750Gr3.dts
target/linux/ramips/dts/RBM11G.dts
target/linux/ramips/dts/RBM33G.dts
target/linux/ramips/dts/RE350.dts
target/linux/ramips/dts/RE6500.dts
target/linux/ramips/dts/RT-AC51U.dts
target/linux/ramips/dts/RT-N10-PLUS.dts
target/linux/ramips/dts/RT-N12-PLUS.dts
target/linux/ramips/dts/RT-N13U.dts
target/linux/ramips/dts/RT-N14U.dts
target/linux/ramips/dts/RT-N15.dts
target/linux/ramips/dts/RT-N56U.dts
target/linux/ramips/dts/RUT5XX.dts
target/linux/ramips/dts/SAP-G3200U3.dts
target/linux/ramips/dts/SK-WB8.dts
target/linux/ramips/dts/SL-R7205.dts
target/linux/ramips/dts/TEW-638APB-V2.dts
target/linux/ramips/dts/TEW-691GR.dts
target/linux/ramips/dts/TEW-692GR.dts
target/linux/ramips/dts/TL-MR3420V5.dts
target/linux/ramips/dts/TL-WA801NDV5.dts
target/linux/ramips/dts/TL-WR840NV4.dts
target/linux/ramips/dts/TL-WR840NV5.dts
target/linux/ramips/dts/TL-WR841NV13.dts
target/linux/ramips/dts/TL-WR842NV5.dts
target/linux/ramips/dts/TL-WR902ACV3.dts
target/linux/ramips/dts/Timecloud.dts
target/linux/ramips/dts/U25AWF-H1.dts
target/linux/ramips/dts/U35WF.dts
target/linux/ramips/dts/U7621-06.dtsi
target/linux/ramips/dts/U7628-01.dtsi
target/linux/ramips/dts/UR-326N4G.dts
target/linux/ramips/dts/UR-336UN.dts
target/linux/ramips/dts/V11STFE.dts
target/linux/ramips/dts/V22RW-2X2.dts
target/linux/ramips/dts/VAR11N-300.dts
target/linux/ramips/dts/VOCORE.dtsi
target/linux/ramips/dts/VOCORE2.dts
target/linux/ramips/dts/VOCORE2LITE.dts
target/linux/ramips/dts/VR500.dts
target/linux/ramips/dts/W150M.dts
target/linux/ramips/dts/W306R_V20.dts
target/linux/ramips/dts/W502U.dts
target/linux/ramips/dts/WCR-1166DS.dts
target/linux/ramips/dts/WCR150GN.dts
target/linux/ramips/dts/WF-2881.dts
target/linux/ramips/dts/WHR-1166D.dts
target/linux/ramips/dts/WHR-300HP2.dts
target/linux/ramips/dts/WHR-600D.dts
target/linux/ramips/dts/WHR-G300N.dts
target/linux/ramips/dts/WIDORA-NEO.dtsi
target/linux/ramips/dts/WIZFI630A.dts
target/linux/ramips/dts/WL-330N.dts
target/linux/ramips/dts/WL-330N3G.dts
target/linux/ramips/dts/WL-351.dts
target/linux/ramips/dts/WLI-TX4-AG300N.dts
target/linux/ramips/dts/WLR-6000.dts
target/linux/ramips/dts/WMR-300.dts
target/linux/ramips/dts/WN-AX1167GR.dts
target/linux/ramips/dts/WN-GX300GR.dts
target/linux/ramips/dts/WN3000RPV3.dts
target/linux/ramips/dts/WNCE2001.dts
target/linux/ramips/dts/WNDR3700V5.dts
target/linux/ramips/dts/WR1200JS.dts
target/linux/ramips/dts/WR512-3GN.dtsi
target/linux/ramips/dts/WRC-1167GHBK2-S.dts
target/linux/ramips/dts/WRH-300CR.dts
target/linux/ramips/dts/WRTNODE.dts
target/linux/ramips/dts/WRTNODE2P.dts
target/linux/ramips/dts/WRTNODE2R.dts
target/linux/ramips/dts/WSR-1166.dts
target/linux/ramips/dts/WSR-600.dts
target/linux/ramips/dts/WT3020.dtsi
target/linux/ramips/dts/WZR-AGL300NH.dts
target/linux/ramips/dts/X5.dts
target/linux/ramips/dts/X8.dts
target/linux/ramips/dts/XDXRN502J.dts
target/linux/ramips/dts/Y1.dts
target/linux/ramips/dts/Y1S.dts
target/linux/ramips/dts/YOUKU-YK1.dts
target/linux/ramips/dts/ZBT-WA05.dts
target/linux/ramips/dts/ZBT-WE1226.dts
target/linux/ramips/dts/ZBT-WE2026.dts
target/linux/ramips/dts/ZBT-WE826.dtsi
target/linux/ramips/dts/ZBT-WG2626.dts
target/linux/ramips/dts/ZBT-WG3526.dtsi
target/linux/ramips/dts/ZBT-WR8305RT.dts
target/linux/ramips/dts/ZL5900V2.dts
target/linux/ramips/dts/ZTE-Q7.dts
target/linux/ramips/dts/ki_rb.dts
target/linux/ramips/dts/kn.dts
target/linux/ramips/dts/kn_rc.dts
target/linux/ramips/dts/kn_rf.dts
target/linux/ramips/dts/kng_rc.dts

index 1e67097..6df243e 100644 (file)
@@ -4,353 +4,7 @@
 . /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
index 82cfaa8..f11b945 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
        model = "Edimax 3g-6200n";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -50,7 +54,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "3g-6200n:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index c95c5bf..00a2b13 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "edimax,3g-6200nl", "ralink,rt3050-soc";
        model = "Edimax 3g-6200nl";
 
+       aliases {
+               led-status = &led_internet;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -50,7 +54,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               internet {
+               led_internet: internet {
                        label = "3g-6200nl:green:internet";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index afe9faf..48c715a 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index eb13995..0957ed9 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tenda,3g300m", "ralink,rt3052-soc";
        model = "Tenda 3G300M";
 
+       aliases {
+               led-status = &led_ap;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               ap {
+               led_ap: ap {
                        label = "3g300m:blue:ap";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 40b0b1c..920a121 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "unbranded,a5-v11", "ralink,rt5350-soc";
        model = "A5-V11";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "a5-v11:red:power";
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
index 9bdbf5c..5215f5d 100644 (file)
        compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc";
        model = "ALFA Network AC1200RM";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -66,7 +70,7 @@
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "ac1200rm:green:wps";
                        gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
index b0100f6..819a244 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "aigale,ai-br100", "ralink,mt7620a-soc";
        model = "Aigale Ai-BR100";
 
+       aliases {
+               led-status = &led_wlan;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
 
-               wlan {
+               led_wlan: wlan {
                        label = "ai-br100:blue:wlan";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
index f34567f..d27561a 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
        model = "Allnet ALL0239-3G";
 
+       aliases {
+               led-status = &led_status;
+       };
+
 
        cfi@1f000000 {
                compatible = "cfi-flash";
@@ -55,7 +59,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "all0239-3g:green:status";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 3759f4a..9ca3cd2 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "airlink101,ar670w", "ralink,rt2880-soc";
        model = "Airlink101 AR670W";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@bdc00000 {
                compatible = "cfi-flash";
                reg = <0xbc400000 0x800000>;
@@ -37,7 +41,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_power: power {
                        label = "ar670w:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index ae5034e..540c976 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "airlink101,ar725w", "ralink,rt2880-soc";
        model = "Airlink101 AR725W";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@bdc00000 {
                compatible = "cfi-flash";
                reg = <0xbc400000 0x800000>;
@@ -42,7 +46,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_power: power {
                        label = "ar725w:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
index 67dc347..405cc55 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "alphanetworks,asl26555", "ralink,rt3050-soc";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -48,7 +52,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
-               power-green {
+               led_power_green: power-green {
                        label = "asl26555:green:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
index ca62a44..c463bc9 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "argus,atp-52b", "ralink,rt3052-soc";
        model = "Argus ATP-52B";
 
+       aliases {
+               led-status = &led_run;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -42,7 +46,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               run {
+               led_run: run {
                        label = "atp-52b:green:run";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index c304373..8c81170 100644 (file)
@@ -9,10 +9,15 @@
        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>;
                };
index c0ffbb2..b8c57f9 100644 (file)
        compatible = "alfa-network,awusfree1", "mediatek,mt7628an-soc";
        model = "ALFA Network AWUSFREE1";
 
+       aliases {
+               led-status = &led_system;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -61,7 +65,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               system {
+               led_system: system {
                        label = "awusfree1:orange:system";
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
index 6af75e3..2387dbc 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tplink,c2-v1", "ralink,mt7620a-soc";
        model = "TP-Link Archer C2 v1";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -35,7 +39,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "c2-v1:green:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
index 9d8a2b5..5dd2974 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tplink,c20-v1", "ralink,mt7620a-soc";
        model = "TP-Link Archer C20 v1";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -21,7 +25,7 @@
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "c20-v1:blue:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
index 77f70bd..92080da 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tplink,c20-v4", "mediatek,mt7628an-soc";
        model = "TP-Link Archer C20 v4";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "c20-v4:green:power";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                };
index 88bd327..1e197fc 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tplink,c50", "ralink,mt7620a-soc";
        model = "TP-Link Archer C50";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -21,7 +25,7 @@
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "c50:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "on";
index ebb76ab..93d9a34 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -36,7 +40,7 @@
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "c50-v3:green:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index ec28d39..9a8b558 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tplink,mr200", "ralink,mt7620a-soc";
        model = "TP-Link Archer MR200";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "mr200:white:power";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 11611b0..1c3afe5 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -32,7 +36,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "br-6475nd:green:power";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
index c449a36..1f09fbd 100644 (file)
        compatible = "hnet,c108", "ralink,mt7620a-soc";
        model = "HNET C108";
 
+       aliases {
+               led-status = &led_lan_green;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -80,7 +84,7 @@
                        gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
                };
 
-               lan_green {
+               led_lan_green: lan_green {
                        label = "c108:green:lan";
                        gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
                };
index b66df86..cfe2541 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc";
        model = "Comfast CF-WR800N";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -26,7 +30,7 @@
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "cf-wr800n:white:wps";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
index 6b70a31..c629068 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index b5b594b..8db5f31 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -80,7 +84,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wps {
+               led_wps: wps {
                        label = "cy-swr1100:blue:wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
index a7d7d37..4f4b69e 100644 (file)
@@ -9,6 +9,10 @@
        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>;
                };
index 392e92d..2432175 100644 (file)
        compatible = "sanlinking,d240", "ralink,mt7620a-soc";
        model = "Sanlinking Technologies D240";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -67,7 +71,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "d240:blue:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
index 107acdb..4a93509 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "dlink,dap-1350", "ralink,rt3052-soc";
        model = "D-Link DAP-1350";
 
+       aliases {
+               led-status = &led_power_blue;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -54,7 +58,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power_blue: power {
                        label = "dap-1350:blue:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 8f8d098..a5ac6ca 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -92,7 +96,7 @@
                        gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "dap-1522-a1:blue:status";
                        gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
                };
index 09efff6..8c160f8 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 1aea908..4187609 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -31,7 +35,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "dch-m225:green:power";
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
index 348cdb4..1665e54 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -59,7 +63,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_status: status {
                        label = "dcs-930:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 5d2899e..abd6cbc 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index b8d8f16..16b491a 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -68,7 +72,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               status2 {
+               led_status_green: status2 {
                        label = "dir-300-b1:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 12ccd16..52104d2 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 9e05b63..f65c5ca 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 0e8239d..b012322 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -68,7 +72,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               status2 {
+               led_status_green: status2 {
                        label = "dir-600-b1:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index eda0bc8..1c10800 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 507f087..0808b85 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -68,7 +72,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               status2 {
+               led_status_green: status2 {
                        label = "dir-615-d:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 7d410f1..6b04cc5 100644 (file)
@@ -9,6 +9,10 @@
        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";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
-               status2 {
+               led_status_green: status2 {
                        label = "dir-615-h1:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
index 23f5a5d..e0c84ff 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -68,7 +72,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               status2 {
+               led_status_green: status2 {
                        label = "dir-620-a1:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 2def8aa..a5fe357 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 0afa87a..1cb40eb 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -43,7 +47,7 @@
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "dir-645:green:wps";
                        gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
                };
index 7a1736d..22487a8 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -31,7 +35,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power_green: power {
                        label = "dir-810l:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
@@ -41,7 +45,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
-               status {
+               power2 {
                        label = "dir-810l:orange:power";
                        gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };
index 5dfc1ee..b8e675e 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
-               power2 {
+               led_power_green: power2 {
                        label = "dir-860l-b1:green:power";
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
index 928e34e..313e9cb 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -31,7 +35,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "dwr-116-a1:green:status";
                        gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
index 74a33e1..8b06ed7 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -35,7 +39,7 @@
                        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>;
                };
index dbcbc17..5a32c55 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -41,7 +45,7 @@
                        gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
                };
 
-               sstrengthg {
+               led_sstrenghg: sstrengthg {
                        label = "dwr-921-c1:green:sigstrength";
                        gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
index f65f144..f739964 100644 (file)
        compatible = "linksys,e1700", "ralink,mt7620a-soc";
        model = "Linksys E1700";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -41,7 +45,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "e1700:green:power";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
index 444bea1..9947a77 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "esr-9753:orange:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 84c4f72..5d0c70a 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "afoundry,ew1200", "mediatek,mt7621-soc";
        model = "EW1200";
 
+       aliases {
+               led-status = &led_run;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -40,7 +44,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_run: run {
                        label = "ew1200:green:run";
                        gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
                };
index 380db80..b109fcd 100644 (file)
        compatible = "netgear,ex2700", "ralink,mt7620a-soc";
        model = "Netgear EX2700";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600";
        };
@@ -26,7 +30,7 @@
        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";
index 18079ea..5dd6929 100644 (file)
        compatible = "netgear,ex3700", "ralink,mt7620a-soc";
        model = "Netgear EX3700/EX3800";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600";
        };
@@ -18,7 +22,7 @@
        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";
index 7992092..32850b4 100644 (file)
        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>;
                };
index 5e32d7f..6d4ed1d 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "belkin,f5d8235-v2", "ralink,rt3052-soc";
        model = "Belkin F5D8235 v2";
 
+       aliases {
+               led-status = &led_router;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -68,7 +72,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               router {
+               led_router: router {
                        label = "f5d8235-v2:blue:router";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 532c624..01211b2 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "belkin,f7c027", "ralink,rt5350-soc";
        model = "Belkin F7C027";
 
+       aliases {
+               led-status = &led_status_orange;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
-               orange {
+               led_status_orange: orange {
                        label = "f7c027:orange:status";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index 262dbb5..5a65ec1 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "firefly,firewrt", "mediatek,mt7621-soc";
        model = "Firefly FireWRT";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "firewrt:green:power";
                        gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
index bc7474c..be66cfa 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "fon,fonera20n", "ralink,rt3052-soc";
        model = "La Fonera 2.0N";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -49,7 +53,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "fonera20n:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 609e058..814d6d1 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -39,7 +43,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "gb-pc1:green:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index f8f4361..0576aa0 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -39,7 +43,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "gb-pc2:green:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index ada618f..87b1f0b 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc";
        model = "GL-MT300N-V2";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "gl-mt300n-v2:green:power";
                        default-state = "on";
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
index 5227ee0..c7d6039 100644 (file)
@@ -6,10 +6,14 @@
        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>;
                };
index 9ca734f..57b86cf 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
        model = "HiWiFi HC5661A";
 
+       aliases {
+               led-status = &led_system;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               system {
+               led_system: system {
                        label = "hc5661a:blue:system";
                        gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
                };
index 6cc7c6b..64b6d27 100644 (file)
@@ -6,10 +6,14 @@
        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>;
                };
index 8773588..d6049fd 100644 (file)
@@ -6,10 +6,14 @@
        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>;
                };
index c6fc7cb..e73be90 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
        model = "HiWiFi HC5962";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "hc5962:white:status";
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
index bed5977..8b1be61 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "huawei,hg255d", "ralink,rt3052-soc";
        model = "HuaWei HG255D";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x1000000>;
@@ -50,7 +54,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "hg255d:green:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 904c8df..eea7252 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "omnima,hpm", "ralink,rt3883-soc";
        model = "Omnima HPM";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -34,7 +38,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "hpm:green:status";
                        gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                };
index a287472..fa93836 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index f6a05fc..863de7b 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "aztech,hw550-3g", "ralink,rt3052-soc";
        model = "Aztech HW550-3G";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -54,7 +58,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "hw550-3g:green:status";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 260846e..5d2149c 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "poray,ip2202", "ralink,rt3052-soc";
        model = "Poray IP2202";
 
+       aliases {
+               led-status = &led_run;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               run {
+               led_run: run {
                        label = "ip2202:green:run";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index d043e0f..1497c9e 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 5e64b2c..f6fd82e 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "jcg,jhr-n825r", "ralink,rt3052-soc";
        model = "JCG JHR-N825R";
 
+       aliases {
+               led-status = &led_system;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -43,7 +47,7 @@
 
        gpio-leds {
                compatible = "gpio-leds";
-               system {
+               led_system: system {
                        label = "jhr-n825r:red:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index d1d2627..fa16b68 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "jcg,jhr-n926r", "ralink,rt3052-soc";
        model = "JCG JHR-N926R";
 
+       aliases {
+               led-status = &led_system;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -59,7 +63,7 @@
                        gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
                };
 
-               system {
+               led_system: system {
                        label = "jhr-n926r:blue:system";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
index 7aed533..09689f7 100644 (file)
@@ -10,6 +10,7 @@
        model = "Phicomm K2G";
 
        aliases {
+               led-status = &led_blue;
                serial0 = &uartlite;
        };
 
index db4dc29..6094878 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "phicomm,k2p", "mediatek,mt7621-soc";
        model = "Phicomm K2P";
 
+       aliases {
+               led-status = &led_blue;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -31,7 +35,7 @@
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
-               stat_b {
+               led_blue: stat_b {
                        label = "k2p:blue:status";
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
index a81a2d5..8b83c33 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "mediatek,linkit-smart-7688", "mediatek,mt7628an-soc";
        model = "MediaTek LinkIt Smart 7688";
 
+       aliases {
+               led-status = &led_wifi;
+       };
+
        chosen {
                bootargs = "console=ttyS2,57600";
        };
@@ -31,7 +35,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wifi {
+               led_wifi: wifi {
                        label = "linkit-smart-7688:orange:wifi";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
index d828f5a..6c038e0 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "intenso,memory2move", "ralink,rt5350-soc";
        model = "Intenso Memory 2 Move";
 
+       aliases {
+               led-status = &led_wifi;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wifi {
+               led_wifi: wifi {
                        label = "m2m:blue:wifi";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index 5f52e60..8d9241a 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index f657325..57a760c 100644 (file)
@@ -6,10 +6,14 @@
 / {
        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>;
                };
index bcbe55f..8c07105 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
        model = "Mercury MAC1200R v2";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600";
        };
@@ -20,7 +24,7 @@
 
        gpio-leds {
                compatible = "gpio-leds";
-               status {
+               led_status: status {
                        label = "mac1200rv2:green:status";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index d455189..beb8ac8 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 44dfc17..faba70f 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               status_blue {
+               led_status_blue: status_blue {
                        label = "mir3g:blue:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 3da39c5..3223ab8 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
        model = "Xiaomi MiWiFi Mini";
 
+       aliases {
+               led-status = &led_blue;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               blue {
+               led_blue: blue {
                        label = "miwifi-mini:blue:status";
                        gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
index b8a325d..b087156 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
        model = "MiWiFi Nano";
 
+       aliases {
+               led-status = &led_blue;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status_blue {
+               led_blue: status_blue {
                        label = "miwifi-nano:blue:status";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index f4a7152..2008755 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 58fce43..4566de3 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index f60919d..83847a5 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -54,7 +58,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "mofi3500-3gn:green:status";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 59dfe4e..66ced42 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 4bf9b57..2de12fc 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 44569eb..b092358 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "aximcom,mr-102n", "ralink,rt3052-soc";
        model = "AXIMCom MR-102N";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -59,7 +63,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "mr-102n:amber:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index f9f0255..3f4db94 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "planex,mzk-750dhp", "ralink,mt7620a-soc";
        model = "Planex MZK-750DHP";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "mzk-750dhp:green:power";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
index 6e5d9c1..3a82434 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 3463201..cec39b0 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc";
        model = "Planex MZK-EX300NP";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "mzk-ex300np:green:wps";
                        gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
                };
index 21d47dd..27e4ac7 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index d96ea60..558450c 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc";
        model = "Planex MZK-W300NH2";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -50,7 +54,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "mzk-w300nh2:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index be909cf..1d117bd 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "sercomm,na930", "ralink,mt7620a-soc";
        model = "Sercomm NA930";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS1,57600";
        };
@@ -85,7 +89,7 @@
                        gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "na930:blue:power";
                        gpios = <&gpio2 29 GPIO_ACTIVE_LOW>;
                };
index 55590de..f76620f 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,nbg-419n", "ralink,rt3052-soc";
        model = "ZyXEL NBG-419N";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "nbg-419n:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index a6e4803..64164e1 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc";
        model = "ZyXEL NBG-419N v2";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        palmbus@10000000 {
                spi@b00 {
                        status = "okay";
@@ -48,7 +52,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "nbg-419n2:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 9047397..64064ac 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 5368b19..8fb4511 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc";
        model = "Newifi-D1";
 
+       aliases {
+               led-status = &led_blue;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -31,7 +35,7 @@
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
-               statys-blue {
+               led_blue: status-blue {
                        label = "newifi-d1:blue:status";
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
                };
index e919338..1015134 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               power-blue {
+               led_power_blue: power-blue {
                        label = "newifi-d2:blue:power";
                        gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
                };
index 73a6908..e79eb6a 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "onion,omega2", "mediatek,mt7628an-soc";
 
+       aliases {
+               led-status = &system_led;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
index 0fe372d..a982477 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc";
        model = "OY-0001";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               powerled {
+               led_power: powerled {
                        label = "oy-0001:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 78a3657..e9a71f9 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc";
        model = "PBR-D1";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -31,7 +35,7 @@
                        default-state = "off";
                };
 
-               power {
+               led_power: power {
                        label = "pbr-d1:orange:power";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
index 66a71a9..c6b09ef 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "d-team,pbr-m1", "mediatek,mt7621-soc";
        model = "PBR-M1";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -33,7 +37,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "pbr-m1:blue:power";
                        gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
                };
index f008ec7..3047679 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index d76abc3..f48ac1d 100644 (file)
@@ -6,9 +6,13 @@
        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>;
                };
index 2dfa763..86b1194 100644 (file)
@@ -6,9 +6,13 @@
        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>;
                };
index 2297c11..f57c0a8 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "petatel,psr-680w", "ralink,rt3052-soc";
        model = "Petatel PSR-680W Wireless 3G Router";
 
+       aliases {
+               led-status = &led_wan;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -48,7 +52,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wan {
+               led_wan: wan {
                        label = "psr-680w:red:wan";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
                };
index c086894..332e822 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "prolink,pwh2004", "ralink,rt3052-soc";
        model = "Prolink PWH2004";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -49,7 +53,7 @@
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "pwh2004:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index ac47ed8..1d40e95 100644 (file)
@@ -6,6 +6,10 @@
 / {
        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>;
                };
index 7d88672..320ca80 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "netgear,r6220", "mediatek,mt7621-soc";
        model = "Netgear R6220";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "r6220:green:power";
                        gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
index dc359b1..563a537 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "mikrotik,rb750gr3", "mediatek,mt7621-soc";
        model = "MikroTik RB750Gr3";
 
+       aliases {
+               led-status = &led_pwr;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               pwr {
+               led_pwr: pwr {
                        label = "rb750gr3:blue:pwr";
                        gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
                };
index 9288e96..f312093 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "mikrotik,rbm11g", "mediatek,mt7621-soc";
        model = "MikroTik RBM11G";
 
+       aliases {
+               led-status = &led_usr;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               usr {
+               led_usr: usr {
                        label = "rbm11g:green:usr";
                        gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
index ed2cb84..cc6da26 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc";
        model = "MikroTik RBM33G";
 
+       aliases {
+               led-status = &led_usr;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               usr {
+               led_usr: usr {
                        label = "rbm33g:green:usr";
                        gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
index 2f3bb12..8cf0b35 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "re350-v1:blue:power";
                        gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
                };
index b2b5a29..8b6634c 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "linksys,re6500", "mediatek,mt7621-soc";
        model = "Linksys RE6500";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x4000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
                };
 
-               power {
+               led_power: power {
                        label = "re6500:white:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
index ec313cc..244d78f 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index a55d06f..aeeada8 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wps {
+               led_wps: wps {
                        label = "rt-n10-plus:green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
index f3e0284..8a22e14 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "asus,rt-n12p", "ralink,mt7620n-soc";
        model = "Asus RT-N12+";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -26,7 +30,7 @@
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "rt-n12p:green:power";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
index 35a6c0a..7effe5b 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "asus,rt-n13u", "ralink,rt3052-soc";
        model = "Asus RT-N13U";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "rt-n13u:blue:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index 8ae4580..781ce3f 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "asus,rt-n14u", "ralink,mt7620n-soc";
        model = "Asus RT-N14U";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -27,7 +31,7 @@
                        gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "rt-n14u:blue:power";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };
index ee1c340..4d6d62f 100644 (file)
        compatible = "asus,rt-n15", "ralink,rt2880-soc";
        model = "Asus RT-N15";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -71,7 +75,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "rt-n15:blue:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index 417411d..01d0015 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -69,7 +73,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "rt-n56u:blue:power";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
index e80b64d..3652cc8 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 7264e30..7ce7072 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
        model = "STORYLiNK SAP-G3200U3";
 
+       aliases {
+               led-status = &led_usb;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               usb {
+               led_usb: usb {
                        label = "sap-g3200u3:green:usb";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
index 0ded039..544595e 100644 (file)
@@ -8,6 +8,10 @@
        compatible = "samknows,whitebox-v8", "mediatek,mt7621-soc";
        model = "SamKnows Whitebox 8";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -20,7 +24,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wps {
+               led_wps: wps {
                        label = "sk-wb8:green:wps";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
index f6f20a8..c0a0eed 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wifi {
+               led_wifi: wifi {
                        label = "sl-r7205:green:wifi";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index 3c9b129..c0e09fe 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -68,7 +72,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               wps2 {
+               led_wps_green: wps2 {
                        label = "tew-638apb-v2:green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
index 0ee5e4a..3ac6074 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -68,7 +72,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wps {
+               led_wps: wps {
                        label = "tew-691gr:green:wps";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index a2e853a..db8fef1 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -67,7 +71,7 @@
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
-               wps2 {
+               led_wps_green: wps2 {
                        label = "tew-692gr:green:wps";
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
index 397b2e1..2968d55 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -36,7 +40,7 @@
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "tl-mr3420-v5:green:power";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                };
index 0d4f846..8dd5f9c 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -25,7 +29,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "tl-wa801nd-v5:green:power";
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
index 09952e7..e87f7b7 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -30,7 +34,7 @@
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "tl-wr840n-v4:green:power";
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
index ecc0fed..abacfdf 100644 (file)
@@ -9,6 +9,10 @@
        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";
        };
@@ -34,7 +38,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power_green: power {
                        label = "tl-wr840n-v5:green:power";
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
index e552b47..384f403 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -31,7 +35,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "tl-wr841n-v13:green:power";
                        gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
                };
index 397c106..cfff82a 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -36,7 +40,7 @@
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "tl-wr842n-v5:green:power";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                };
index bfdc03b..5716f68 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -48,7 +52,7 @@
                        gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
                };
 
-               power {
+               led_power: power {
                        label = "tl-wr902ac-v3:green:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
index 066d16a..57b1beb 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "thunder,timecloud", "mediatek,mt7621-soc";
        model = "Thunder Timecloud";
 
+       aliases {
+               led-status = &led_statuso;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
-               stato {
+               led_statuso: stato {
                        label = "timecloud:orange:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
                };
index 8021b0f..bdc74e0 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -25,7 +29,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wifi {
+               led_wifi: wifi {
                        label = "u25awf:red:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
index 33d9112..bd09bc3 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "kimax,u35wf","ralink,mt7620n-soc";
        model = "Kimax U35WF";
 
+       aliases {
+               led-status = &led_wifi;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -25,7 +29,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wifi {
+               led_wifi: wifi {
                        label = "u35wf:blue:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
index 0502904..95c2301 100644 (file)
 / {
        compatible = "unielec,u7621-06", "mediatek,mt7621-soc";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -71,7 +75,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "u7621-06:green:status";
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
index 34226a4..2df1cc9 100644 (file)
 / {
        compatible = "unielec,u7628-01", "mediatek,mt7628an-soc";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -59,7 +63,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "u7628-01:green:power";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
index ecb747c..4a8dbd9 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "upvel,ur-326n4g", "ralink,rt3052-soc";
        model = "UPVEL UR-326N4G";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -59,7 +63,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "ur-326n4g:green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
index 31aa62e..d3a6151 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "upvel,ur-336un", "ralink,rt3052-soc";
        model = "UPVEL UR-336UN";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -59,7 +63,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "ur-336un:green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
index ae30667..44657ac 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "ralink,v11st-fe", "ralink,rt2880-soc";
        model = "Ralink V11ST-FE";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        pci@440000 {
                status = "okay";
 
@@ -66,7 +70,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "v11st-fe:green:status";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 8b0fba1..7311445 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               security {
+               led_security: security {
                        label = "v22rw-2x2:green:security";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
index 54bcb3d..beef4c3 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 4c45227..9b214dd 100644 (file)
@@ -5,6 +5,10 @@
 / {
        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>;
index 43f8475..659a96d 100644 (file)
@@ -8,10 +8,14 @@
        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>;
                };
index 8e87c1d..e41bc0a 100644 (file)
@@ -8,10 +8,14 @@
        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>;
                };
index 776cc2a..832c61f 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "planex,vr500", "mediatek,mt7621-soc";
        model = "Planex VR500";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x10000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "vr500:green:power";
                        gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                };
index d2f8574..f733c15 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "tenda,w150m", "ralink,rt3050-soc";
        model = "Tenda W150M";
 
+       aliases {
+               led-status = &led_ap;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -49,7 +53,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               ap {
+               led_ap: ap {
                        label = "w150m:blue:ap";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 5aeb91c..5b42b4b 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               sys {
+               led_sys: sys {
                        label = "w306r-v20:green:sys";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index b02c6c1..a370137 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "alfanetworks,w502u", "ralink,rt3052-soc";
        model = "ALFA Networks W502U";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -53,7 +57,7 @@
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "w502u:blue:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
index 34734ce..125d987 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -73,7 +77,7 @@
                        gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wcr-1166ds:green:power";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
index 9a4c4fc..7225f4f 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "sparklan,wcr150gn", "ralink,rt3050-soc";
        model = "Sparklan WCR-150GN";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -49,7 +53,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wcr-150gn:amber:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 33f521c..ed25cf6 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "netis,wf-2881", "mediatek,mt7621-soc";
        model = "NETIS WF-2881";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "wf-2881:green:wps";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
index ab5d2d2..652a6ae 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc";
        model = "Buffalo WHR-1166D";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power2 {
+               led_power_green: power2 {
                        label = "whr-1166d:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index d405686..85a3a5d 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
        model = "Buffalo WHR-300HP2";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power2 {
+               led_power_green: power2 {
                        label = "whr-300hp2:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 611a23d..fc90fc6 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,whr-600d", "ralink,mt7620a-soc";
        model = "Buffalo WHR-600D";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power2 {
+               led_power_green: power2 {
                        label = "whr-600d:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index a7c2834..7349a23 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,whr-g300n", "ralink,rt3052-soc";
        model = "Buffalo WHR-G300N";
 
+       aliases {
+               led-status = &led_router;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -55,7 +59,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               router {
+               led_router: router {
                        label = "whr-g300n:green:router";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 3334c88..b5001c9 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "widora,neo", "mediatek,mt7628an-soc";
 
+       aliases {
+               led-status = &led_wifi;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -18,7 +22,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               wifi {
+               led_wifi: wifi {
                        label = "widora:orange:wifi";
                        gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
index d127536..ac9729d 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
        model = "WIZnet WizFi630A";
 
+       aliases {
+               led-status = &led_run;
+       };
+
        chosen {
                bootargs = "console=ttyS1,115200";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               run {
+               led_run: run {
                        label = "wizfi630a::run";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
index 0eb7b7f..b359940 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "asus,wl-330n", "ralink,rt3050-soc";
        model = "Asus WL-330N";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wl-330n:blue:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index 3801a9d..7e56da9 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "asus,wl-330n3g", "ralink,rt3050-soc";
        model = "Asus WL-330N3G";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wl-330n3g:blue:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
index 0dd596c..59ef573 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -44,7 +48,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wl-351:amber:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 3c04d49..d90d3c8 100644 (file)
        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>;
@@ -76,7 +80,7 @@
                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wli-tx4-ag300n:blue:power";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 4f8ba6f..f7e78ce 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -25,7 +29,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wlr-6000:red:power";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
index 63354da..7f58167 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
        model = "Buffalo WMR-300";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_status: status {
                        label = "wmr-300:green:status";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
index cc8ef44..f4bac41 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wn-ax1167gr:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index aa89f05..44cdc4f 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wn-gx300gr:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index 8fb76c0..a2f6eb9 100644 (file)
        compatible = "netgear,wn3000rp-v3", "ralink,mt7620a-soc";
        model = "Netgear WN3000RPv3";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        chosen {
                bootargs = "console=ttyS0,57600";
        };
@@ -18,7 +22,7 @@
        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";
index 0421ee6..55edbd7 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "netgear,wnce2001", "ralink,rt3052-soc";
        model = "Netgear WNCE2001";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power-green {
+               led_power_green: power-green {
                        label = "wnce2001:green:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index ce96440..5d9dfc9 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc";
        model = "Netgear WNDR3700v5";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wndr3700v5:green:power";
                        gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
                };
index 2169e74..25eb174 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "youhua,wr1200js", "mediatek,mt7621-soc";
        model = "YouHua WR1200JS";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -26,7 +30,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "wr1200js:blue:wps";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
index 854ab25..45b2413 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc";
 
+       aliases {
+               led-status = &led_wps;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -24,7 +28,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
-               wps {
+               led_wps: wps {
                        label = "wr512-3gn:green:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
index 7b1cfd7..c23497b 100644 (file)
@@ -9,6 +9,10 @@
        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>;
@@ -31,7 +35,7 @@
                        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>;
                };
index 2b40f98..8894b38 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 888d32a..8591cb4 100644 (file)
@@ -8,10 +8,14 @@
        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>;
                };
index 5361913..d3f8fe7 100644 (file)
@@ -6,10 +6,14 @@
        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>;
                };
index abcbc73..469d65c 100644 (file)
@@ -6,10 +6,14 @@
        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>;
                };
index 38edbde..8207b02 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,wsr-1166dhp", "mediatek,mt7621-soc";
        model = "Buffalo WSR-1166DHP";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -46,7 +50,7 @@
                        gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "wsr-1166:green:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
index 1db2809..21cb6ba 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,wsr-600dhp", "mediatek,mt7621-soc";
        model = "Buffalo WSR-600DHP";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x4000000>;
@@ -21,7 +25,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wsr-600:green:power";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
index 91720e3..b60d6fe 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "nexx,wt3020", "ralink,mt7620n-soc";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -22,7 +26,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "wt3020:blue:power";
                        gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
                };
index ff7a5ec..ac87579 100644 (file)
        compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
        model = "Buffalo WZR-AGL300NH";
 
+       aliases {
+               led-status = &led_router;
+       };
+
        pci@440000 {
                status = "ok";
        };
@@ -81,7 +85,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               router {
+               led_router: router {
                        label = "wzr-agl300nh:green:router";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
index 20c4237..b8bd41c 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index 30041e0..ea55fcd 100644 (file)
@@ -9,10 +9,14 @@
        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>;
                };
index cba8f08..cd4b49b 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc";
        model = "XDX RN502J";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -49,7 +53,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "xdxrn502j:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 8aed5c1..d9d00f0 100644 (file)
@@ -6,10 +6,14 @@
        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>;
                };
index 74f7ca9..95e2aea 100644 (file)
@@ -6,6 +6,10 @@
        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>;
@@ -35,7 +39,7 @@
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
-               power2 {
+               led_power_blue: power2 {
                        label = "y1s:blue:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 8a0e081..05bd712 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "youku,yk1", "ralink,mt7620a-soc";
        model = "YOUKU YK1";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
                wan {
@@ -23,7 +27,7 @@
                        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>;
                };
index b1586ae..b74dd57 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WA05";
 
+       alia