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 1e67097cd8f5eee4539c664a260e83575ef3fab6..6df243e39399b29a3b9df11e6360bd3df679be7a 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 82cfaa800827adc0a3416abb5d9f0ecaa7722e41..f11b945638df794aee20e840a546777b0d99fce2 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 c95c5bf2da8bd3185293ef8561ad5cf526569a16..00a2b139e4e23e870031cd02f4e0d59d2cf41c9d 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 afe9fafe9bea385769a43acadbbb93e980824c1c..48c715a459ad65d9c298bf27d092517537ce1b58 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 eb1399529acd141cf80c6dd67a29f57315a4619b..0957ed9f8471a806ca24075c77585922e85b66e8 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 40b0b1c37aa2edc6c4d06a52c619443d3c48cef0..920a121994f19d3831684ecbb7bc4c6c71f62573 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 9bdbf5cadf84f1818ffd72fcebb3332a76e5a8cb..5215f5d6a84c9f48b1745bbe772254a2a4a60bcd 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 b0100f63bb43e55092ef468a68829436291ad860..819a2449a028208fde524a04b35051eaead77526 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 f34567f286b697388b313c95f9fd1f7c0b051639..d27561a5b52985150f2b26484b9fbdf3b50b6fe0 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 3759f4a8c4e4855cc6090aefabc1115140fcf795..9ca3cd2e3c6181cfb7647ffe3343c5dd0fcfc216 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 ae5034edee06e9f58219c0937268a1edddad2034..540c976d2bec8dd921a816188cc38a2d07ab3013 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 67dc34787e09c175fc18e9e9ed0c1b9e5133d5a7..405cc55114ace1c8ddc43e676834f033fa4c6112 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 ca62a443c8796c2a216b125bd6e56641614a050f..c463bc91d8147c2b988ce157cc2d2bb7194b3856 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 c304373ce17a6a0221d32aa4bb8d302448c0a6c1..8c8117005497af896694dba2cfc5765701f57c25 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 c0ffbb279aaecbfaab2b8696d7a202947a513e3d..b8c57f94742702f679bedbd4633f6303116ef052 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 6af75e39cec3a35001d67d2ab7a68189b688ba7d..2387dbcf8d44f0996118c5c436dbbda1f2527ca1 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 9d8a2b595ca60914fd4e558239047fef7e4cab29..5dd29742f2a333e69b773dd319023ec5c707575b 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 77f70bd840ffca7f90a15cc30b664eec6d25ca2f..92080da905553bd12542b2430cfa080bd963d540 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 88bd3272d7a0e44883ea1ae93e012556487fd983..1e197fcfd7386a065a1681617dbdb88f166c966f 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 ebb76abcd8ce7b6569d2acd17e2a75b55add2e21..93d9a34ccf588a125e3fe93f49bc90077d2e3da5 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 ec28d39672d0b6895e9b6bffa07f455e741d8e32..9a8b558e6ff2d83f42c0807bbc093e7fd9baf862 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 11611b083f86e706016ca07f96dcab0d942e216a..1c3afe54c29b8b93d3eb6d505915407953144ac1 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 c449a36fc71765058677e3cbe56870a83b9ee2c3..1f09fbd31199ced98ef8df67609d530025dbf0a3 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 b66df862fb344b55fb0afd502ecb2ba24b21d6d3..cfe2541cf31a626fa1e2875c4dd052e6db292e53 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 6b70a31678d52cdebc3c1c79abf7d4b8610ccf8d..c629068328574906020891d5cfb94ff2b6ca915b 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 b5b594bf59ae421cc24a4d6727a2305e91e03804..8db5f31471574621edd2df7154a363cd194eacde 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 a7d7d3777d648b3537342daedfe608551b5efa92..4f4b69e462501c2d301f4c8beb2ba79a844c9887 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 392e92d466a08c7c6a7026e42054716d60125b4f..2432175672041ec6021625bab517c78b5f83f691 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 107acdb2c3bdd008e420fd5d73103a6ce3bd02a6..4a9350931174710a6077201b9fded9a1e0339cc5 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 8f8d098bd52c9a817268fd02d3946735a6afb0a0..a5ac6cae0ad3c28e89e294be20f340469b618e30 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 09efff6f50970fd2078cde698ab5a40a949d76c0..8c160f80f367db74a76fb986673b265522c7dcb2 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 1aea90805ca9a3b6f25a9258a5f3de41626488d6..41876093fa4425bcacadf5cc0b2d4dfa2913007d 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 348cdb43823aaec72fd4849d01070c402ede5bd6..1665e5417103055bde65d6c3daaefc34f3bcdf1e 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 5d2899ea27fd31c28678445cef09835aba7bc4eb..abd6cbc666f5a4afae139c932caa84d7ebf90a4d 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 b8d8f164586c92cc5d8340f2f2e91c28198a7b5b..16b491a8692dbecdc572fc51f600be929715ea08 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 12ccd1620d51cf0ee3ca789ce86dfe356ee01648..52104d2451ca671c9d3d204a64b0f3c14feb82f5 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 9e05b63e98c273db5008748786859fdd6c934159..f65c5ca98fe17f8e15e4cf14ea293775f7e32c1f 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 0e8239d0b33a60fc39b56bc4e87bf2198ccce93c..b01232267eded7493e24d175adecc70fe68bf379 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 eda0bc8c2f3d6415d9f40674d5aa15bb5d32661b..1c10800f5b123f22d69e02d3ccf1952e5067d5dc 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 507f08774a18ce16a11d929976cb97e3777fdd5c..0808b8565a2150f24305a07cae7debf02c0e5c2b 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 7d410f1ddc6738f35d22a33517b08d0ea2d79447..6b04cc550b03e5e34a203b01ff35fa6c19c88645 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 23f5a5daef9413e7bb07a1a8801bbaa780802d7b..e0c84ff43d7a6726e2e1de6843a5eda81dd4f3de 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 2def8aae4a6f4f0e6c435469d786f7a9e844563b..a5fe3577300a920f4c4a9dc0688aecc3628e2d59 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 0afa87a0774de99a35ff30c2d4a37220f2f42eda..1cb40eb694aeeb42b176b66e4f35e72b2453c178 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 7a1736d5632ceefc6ada6c695d2b1f219143d571..22487a8e5dfcef036adcb90a10fc3fc0f6c05831 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 5dfc1eeaefd57d5a81e019f13f6fd9d1630bc952..b8e675eb2fd510b3565fd40a1dbfdebb65c2076c 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 928e34ea4dff3f26125f993c7a6834dd6464ad09..313e9cbd1b0d20eada57cedb9d6b7f819eeef49e 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 74a33e10e4fc347e114114b25e8a82071874b61d..8b06ed708c486abd002cc08ffcc154f3e79a3298 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 dbcbc17d843ffc683f5896c0562ed0f38fc9c733..5a32c55f3894ab7db52372c23be30ef6c1077f39 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 f65f14492157cabbea809670644446a286861b9a..f739964a0491b9606ae9a4db6aa0df0e76c1cd0b 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 444bea1af7355347fcfcac587bc40bdb764abd2b..9947a77d0c646bbbd340597e73e9b21ce5c0a138 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 84c4f72cb662ddc8e80aac6415f13a9a7694d57f..5d0c70a592d8361917a893dd911b96446751433b 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 380db801d573bdf12c4b6e0a2454dbd903a7914f..b109fcd880aeecfefef8a706f312bc7192ed275f 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 18079ea79cebf60d21911146af8dce7d0ffc2f7b..5dd6929b8c1d72ca9e4ff8fd358b9bb7acaf3cfd 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 79920922d47588489bacb4a03bcb4bc5bbf4481c..32850b4a0747cff666d25e789565775ad7aaa8bb 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 5e32d7ff7ceffd24ed6a398928cfbf09d7a67f09..6d4ed1d8cfc01539298afa605d6e78abc4044c33 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 532c6243b841e8c1eb4dbf96df2944ec10576e09..01211b215df43fdd494bb5b30d75a9005fa1104b 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 262dbb5f576a86a313b78b92849bb4c40a073d75..5a65ec1d81e9b64f8e4e4dbaa3d6680ebb8242a5 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 bc7474ccfb204e3c7f3fa8adaf97c80b6e7ec701..be66cfa72c5a6bcd162ae804b59de74eb47f9dfb 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 609e058967949845abdaa291e252d8f28fb7212a..814d6d12261b99b0d9f3a0a26523f28034fff72a 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 f8f4361e2f7c0b3d516b08966382580b27c6b4dd..0576aa0a8bd7692b6bee7ce659089860e7bd34a3 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 ada618f17bb05f575ab46f26d510fda312cc8c64..87b1f0bb9a6ce0a2d674f51562a14792901ef5e6 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 5227ee06c52a5173acd18f40d89f615dc87696de..c7d6039a051e68c6490d19b2ef4dd6534b9d6b75 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 9ca734f0a655d46d434ff0b390d0cdc22788dfe8..57b86cf0693a77ed6f581eb22c35c6612058c8c6 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 6cc7c6ba7646cf24a7189bb7584c49524fe34d8c..64b6d27af9ca791edff515b437e4d9281387dffe 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 8773588e3e7e42e5900bb667cda82b92ae3efe8e..d6049fd8ecf7ceba569af95a94b698f9cead06da 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 c6fc7cb15497d2388c61a15321b35141e8f91c1a..e73be9071f4d05ac2cd1ec102208f5d06c01dd5c 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 bed5977ac13946783c0a4118c02a81bacf155f36..8b1be61645e1abdfb0ece9e0bafd7df6a9ff401e 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 904c8df9fe55f2664c0c253577051bf2afed86a1..eea7252458f6ad78801db3fcbcfd445a98c60213 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 a2874725013fda81ea15b95c9ff7eea8911c4747..fa93836d434d2b7306082f66ee164d680aefda37 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 f6a05fcd5f832343ae4e4f54a8abea492e6e4a12..863de7b941034279fa6440efb0e6f19f9d50af1c 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 260846e16446efbdf38d0364b2ee81c2981dbd96..5d2149c46ed6743e3ac3edc7fc2480d1e318fdc0 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 d043e0f05d3f38fec32f284e3f7f7aacbfd2111d..1497c9e0d623f637051ab8dc7fbdbb1c85ca2226 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 5e64b2cc0903dd287012f5c50b53abb1502c32dd..f6fd82e3e6556d4a5cfabd6e6c126c5c12b2c948 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 d1d2627f26c4a991ea62114a6183860a1eb34c6f..fa16b6806aacc58848aa4bc874b291ad5ebbac17 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 7aed533c33f2e003a67575f6f9a06413b0d90211..09689f7bea35032a28c3ff5f77dcab42c7d35cf8 100644 (file)
@@ -10,6 +10,7 @@
        model = "Phicomm K2G";
 
        aliases {
+               led-status = &led_blue;
                serial0 = &uartlite;
        };
 
index db4dc298789cc0a3bcb9c321af3462d03833727e..60948782b39addaaa56b30b4a3c811b3d2e353c1 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 a81a2d5a4c581eb518989e83a271352b9d43afe7..8b83c3304b246e365604451baa45643eb6e599a0 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 d828f5a74768802da9014faeb58b1894296d4c36..6c038e005bbe1faa4b4efff8d6af461836bdfc9e 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 5f52e6064ff58f1d26e61424f8d97757c5a3aaa6..8d9241a8b49136387e6bcd6ff4d8c7e17b83a641 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 f657325b535966d1781000b078d5639bcc0f3765..57a760c4fe58126ca30431a56349d434f6d53f18 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 bcbe55f3f890fc0335747f19af4d706cf2473754..8c07105a5018a21b5ac81bb6d251acd1cdb73a0a 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 d4551896363968dfb0cd9ccb951160e69203ef65..beb8ac82e4b57411bd1d6532b506f16b125d5d56 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 44dfc1796c2251a63a317d156901f0a03f0182ef..faba70f181594408ceb30e49523857b80d6cf8bb 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 3da39c529e39c8d62d02f37f3753677641ea2933..3223ab87dfe834d92cef6c73f8c4176f9b9fc8c9 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 b8a325d4f4744409cdb39c38c68526ac1ffc1563..b08715678cce8499b0fcb92afe7fccbe3e233c93 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 f4a715247904c42e419012ed7f4f8acf79552ad0..20087555f77a1916818d5591b93c158ae070a8c5 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 58fce43b4fe58b1f613db49dc20fe783423cf2a3..4566de38b16ed3f0e3fae7c33d788fb0db4cb868 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 f60919d5a19ac6fa9422b57e2a9220e0a6a630bd..83847a58311af5fe081f5ec3c0a50e2f8255731c 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 59dfe4ebd2d04591aa1bf5af1601b39cb81b93b9..66ced42d96c9a121384f5e3e9d112bec6139fa7f 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 4bf9b57549e296539218f930678aa2352af4fa80..2de12fc86c7ddac1abc52d3f83dda0b8e224226a 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 44569eb62d5e4ca698da7981704f07da6af6cd32..b092358ba3db8e6166cde5b064973b17f6cdb113 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 f9f02550cae4d20274ce721a04660cfda5649971..3f4db949e442ddd8c78fd62e67828c78a6911fb8 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 6e5d9c18044aa5f6bf689c7c842d7eac4c59f294..3a8243420b6607a4c6000bbfbab4058961ba7dcb 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 3463201f89bde57152192c6c3725b2de01053527..cec39b06f6b4b5d796f6cf215096c974fd2a127e 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 21d47ddfa881edd5c719ef777d296f3f68b59a99..27e4ac7ac5e68a439d26a695fd9321b61c299de2 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 d96ea609407efefd11a7f27ff60dc5a052ce7a8b..558450c07da6a779dfb00663e33e856832038f3b 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 be909cf3349a65d5d6197073d6950a50152a5848..1d117bd539ba560c280a274e1dee78155897e530 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 55590de1bebf18ec753015152149c80fb9387e62..f76620f2f7b5cbcd702ce2f38b6823b168cfc8ae 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 a6e48039641a672e2fb32741af6e980324433d62..64164e1433ec9ff751d9eb14e99a50fbbdd340b8 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 904739753654a26baf78a6e43da570ed3d8561b2..64064acfcfdad2268a11b8a34a5ea9da6bcc594d 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 5368b19ea1593068b7365b4c8e56724f159c6442..8fb451178d01fa50d21a2982224c4807c5885e48 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 e919338e4eacd4269a7c5b9da044f5010291b76f..10151344c93feec16c7adcdda79b4940456d1388 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 73a690879246d165ba07136fbdaa2e17601d4c66..e79eb6a92bbb7ed8cde85309a1714b446fa3da08 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "onion,omega2", "mediatek,mt7628an-soc";
 
+       aliases {
+               led-status = &system_led;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
index 0fe372dd3a31664d661674a0529abc4bfd59dea5..a982477244b8b0f81b62ab96061fa481a0f35a6d 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 78a36577c0f7e161cf3a88ec45d5ebeb87a11a4c..e9a71f90eef9f90d74cc39f41d99be94d291c7c5 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 66a71a91ad17275bc491a8fd1ba03e82c3647f10..c6b09effec9c91e8727c31cb3fa0eeaeeae01f99 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 f008ec7ab742c2d4a64b09cb389eb34ac1069807..3047679a13c7aab6d7361be234f24a7dc0acd561 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 d76abc39fcda1b6d19ed91361cb201e405922936..f48ac1deb6351e5d0e7e95598fe762d6d596ab5a 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 2dfa7635d12758032e400d63e2afcb28e0d8d409..86b1194b7a00045fc29a88ac9252bf4af3a2d328 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 2297c1126c57eecf01b07d1ff9278ea6aac57b83..f57c0a860a45a99c3c85f29bc6eb982b63377539 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 c086894fd25407965e37fbd5120abf638d6ef343..332e82265f757557b439d1c537256ecf6c0dbe5a 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 ac47ed845743cebcb0aea55035e082d922e4b239..1d40e9565d023d01d4b0c70400defb4304730842 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 7d886725e15cb6e6e237bd7f2109b488b5013187..320ca801ac5ed93a7a26941aa8d9365bd58f0da6 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 dc359b10bbb0a5753783ab5fb6f730c512f4b1d9..563a5372688dcf50998a131c9a399140b5d9155f 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 9288e965bd9e3d376db71e5c5fe741d5f5d1fff5..f312093a22d51c09b0d9f7c25bbf12fbe96209cc 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 ed2cb841dd68ee05b716d947ec2d06ed137a1153..cc6da267a2b642582819fb21271a0a7896e483c9 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 2f3bb1245cf9e79d590c485ea047f606b2416496..8cf0b35110d56181b11663ef05165294a1a82324 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 b2b5a29238bca252414ee13aab39be2f9af9619d..8b6634c3bbb2d8ff2edaebbe4ab826f973c3bd45 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 ec313cc5aeedda639c1041873395cf8c428328cb..244d78f975bb084354ccb23fb20abf7a3ba023ce 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 a55d06f1b3fdaeb27bbb253bb4f73be28cc3c781..aeeada8e9657cce9fb850542f2f941b0b94f5b42 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 f3e0284aedfc1c1814fdacd9a99d852461f781a0..8a22e144285b79ce4742ba60531a5c136437af36 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 35a6c0aa2c067c50d9b65bb3530a577501301711..7effe5b320a91fe448aa111924e86b871664a457 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 8ae4580b9b43c6562728cfc709453fafcf445a5d..781ce3f7142f132be4ece8ee89ad8e449b83ae3c 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 ee1c34024ee59e055c5795a7a3c98efc0a1d7a9d..4d6d62f939f2ea63f30cedfc375ac47a81a9215b 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 417411db77d444916a15ec81d3a74432bdec3217..01d0015869ac890e3b94eb3e8c3399b8c96d669d 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 e80b64d4ec996cd5c7a0afa01d0413595595b6de..3652cc8089181d5d84ccfe0cb116c2c757672dfa 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 7264e30b5885fee7eadb5021bc14f2a83d31c1b3..7ce7072affcdf7deb2900a8dcb59094cad7c7689 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 0ded039d8efb6da6aa9a0dee6acec06eefbc677b..544595e09835635a93677a4bf3c77e46b8666b39 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 f6f20a8174e3a4929f554f1fcf91628670ddb22e..c0a0eed290d67c4d41e1edcf1d4fa0d692d26f76 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 3c9b12968f97b735fa9450003fd37a7f676676df..c0e09fea5129436e4632dfd4a9509616ee1fa401 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 0ee5e4ab2c0cfffaa8641c1bdb61611d076ca9ec..3ac6074b87af8b068ba255b01cb094b37925c8b7 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 a2e853a0ae42810b643b909fa260a9f728d3c3b2..db8fef1699a8d823105c3628be9a95bbc248fdc2 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 397b2e169914f4953f1763932d983675d963c41e..2968d55c31b5842ebf49c53f08d09f9321c99ad3 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 0d4f8467b97e14f082925e4e3abda53a285d3dea..8dd5f9cbee64e5232744f78060be7d5b9488698d 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 09952e7a7aae5a1a3c82fd5c74b3d8818e2ecc0d..e87f7b78e1e859cb9f4942eb78437a2d9d717852 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 ecc0fedd5938d016af3b2c6c3053922844793112..abacfdf4bbce631cbd0ce429dc5ce845d89fe169 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 e552b47034275a55aafa2966610709fb30568b9b..384f403645e544392491da9e68403787a44ebfb8 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 397c10637461ed7730ef653db79415b666bc2f79..cfff82af6eba2bd63b9cb70914dc96ef9032b91c 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 bfdc03b1b33604ceadab7ca13e98496bd8ea419d..5716f685b87463adf1445017c508e22f220a21f6 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 066d16a8f9f5667feae13ef36bffb75729810834..57b1beb864279a6ab2bc74ca03113c657f2b6fc9 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 8021b0f79d2767c2219f87ab30a7e02d49ee7c92..bdc74e0bf6dc2121a1f95961b675d087660ec300 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 33d9112c61d3256390820158f461e6e356a476ad..bd09bc3498fcf69cea4206545885a55ca9243a8e 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 0502904bd02441a3f72fa7527c20802ffd5de9cb..95c23015fe4636c3f3b611d7a4a0d4b9e2fb5a1c 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 34226a4a4e029b554c738a7afbb771d0b98b776b..2df1cc974e641ebb08a8aeee24e2f214b847269e 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 ecb747c766b688cdb4569a5af8ce6b1807c01d47..4a8dbd9716795351fc282be64e0ec77f00744676 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 31aa62e72ecbac319348718f4150e730845ede61..d3a6151a7e1c4807d521cefec76aa62e6b2129a0 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 ae306670cf804b834f27139d2762b1273b5d79ee..44657ac073f343948f8de726a36333f41fec1896 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 8b0fba1919ab072854a328363253bb04fa233ccc..7311445fe93346466509add350f08674fbda0877 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 54bcb3df02f68fad3d051ea4098ff490dca17b7c..beef4c368dd5ee86d695b7faf23b43ade496e563 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 4c4522710edf9887c4a42cc20d9e3145f2bbdc2f..9b214dde891886de8f2e27ec8e2fd7dfb5bdd36e 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 43f8475856e92f86609ef82d858af55b9d2a5ea0..659a96d02a6265a007ab4ec8b20330b02fed389a 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 8e87c1d519f0667261a63a69f26e84d6f7cb9bc8..e41bc0afea596b10a3f5f4ad202c5a46bb3f3282 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 776cc2ac5cb7915b0bc67fd3bef1d746c7d126ca..832c61f58a80d4e7967ddeb0d5c5f50fd2c32cee 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 d2f85740833219801b9e835be83ba7729beb3038..f733c15b8f00b875424a06b14454f9850cef86c6 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 5aeb91cfb7df1b86c7a9f26efa326ae3a2b03b0c..5b42b4bfb861ddfee3bd355d165ff5edf7d6103c 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 b02c6c125622db4a83976a83b157521f0a4dd0f9..a370137790d4905f003f1ab25112e6d3f7c00177 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 34734ceda58966f62c0461003dafccdebc47fa09..125d98775290d713744d586eb0040e3d47f5d5e0 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 9a4c4fc7d1205805f2b718c01c446e98c46a3562..7225f4f54fdd5053e047ab378acc3487df9e1887 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 33f521cb95e2f0d41eededbc9d3301024f3e357f..ed25cf607f12fb7a22408380f8e7a61552ccff22 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 ab5d2d25ad4d3d5c23435948eb1846f99392b290..652a6aef896e6f46e880f224d7a467e4798ffd03 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 d405686d7a290b40aa028af3d46cb7c1c576e8aa..85a3a5dcdd4ffaa7be5c5274a9c9522e0b27f8af 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 611a23d9bbbca5b9fcae21a364c9ff489e262da2..fc90fc6c463e407875b964b0186500e7ed959ac6 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 a7c28341b2d8ccd2f589f291200cc849e0d89f5e..7349a239dde37f7c68f1b8454d4421f53ad027dc 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 3334c88e22ad6815f484a7bfe88f536fcccccada..b5001c9774a58c72bca03d7cd240871749ece195 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 d12753650e4b459d36d6beb9a06b16e52e8c081d..ac9729dc0dbf26063920d7eec7e360dfd685d382 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 0eb7b7ff78c7a1bdd545723cfb9383f8fd8e3975..b3599403ef8905a67e1e3c8485e9836de546a15c 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 3801a9d9efc6d0463189b7d0a7b739e12ae92f63..7e56da93c291fdfec8d2189a986ffced28d4c08b 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 0dd596cfe6de168eeb3fc143240122aef9ee398f..59ef573f042c811bd5c35c3f6a9292057986001f 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 3c04d49b6630c7616f5d8cb7e04c38a80c11ff3a..d90d3c8195197b6904c4bb30b66f7044aa93e628 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 4f8ba6fff9cf8179a93081b881108e2fc7104bd5..f7e78ced2800abeae040cbb3facf2286bf3ad63d 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 63354dafbe7cece3f83fbc94eb7b15877e6b64b3..7f58167a51906d53a31befe56d89423fbc82120c 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 cc8ef44163b032ce0c27ec4bc5e7b71fc20db414..f4bac414114e3246b616e2e2de6da8c790fa4c7c 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 aa89f055550989c100ee3dbcc80b3a44a199a5ef..44cdc4f0a4da1dc9e64c2fdc03f14e72ca42f46f 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 8fb76c0a49060b9b7fd4bac4ba3067e007c862e2..a2f6eb9d9440d875f98ce58e2e85185590120614 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 0421ee660b13a6d7fc2f5472381442bacc5f0b2c..55edbd705abdd5da3178c7e9aeb1715de59f18fc 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 ce964403697cfaced621df3d5a1a9df28137bda2..5d9dfc9de77d405ed9d547b03e109e21797940d3 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 2169e74e23db17ecc23b9f190821078f28a8f3d5..25eb1742b5292b499a33ee7a2f9cddec643408a3 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 854ab251bac738b2bb819abf74fc7d8fc59ace64..45b2413aa30894e91f310aea2287afbbaa018e4f 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 7b1cfd73047fb789c79d49e097eb0b2967864d07..c23497bcaa8c3a1af71be451f0a99f4e1e5a6e29 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 2b40f981f21b257fd51a95e9ac8844a3ede23abb..8894b3815e0971d4867e467039dd0fad3efff788 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 888d32ab162b812930431ac3254622e68dbedef7..8591cb45a6527404523ddd0933a75a22adaa93ba 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 53619138b1143631ca9e5c7d0065fbbb2f1620f6..d3f8fe7e32b5def327f91e1ba67bf6c34628a02f 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 abcbc7377568caeff5c403bcba034c9f7c48f090..469d65c35000bc971f31b5d6336b70f320e503cb 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 38edbde74584bf408eea9ba8408f0a3e46f56198..8207b0214e5afc3bb0053539155390a3bdcb740d 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 1db280902730d6d027cbecdd77645b10ad92ba7a..21cb6ba267ef89bfc6f4bb5a85730d5a29f059b9 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 91720e32c9173854f13494a72cc8ee4935fe967c..b60d6fe3a221966b36e955ed8224e719776b8a1d 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 ff7a5ecf9416ed6566e0a3d05c6c3809b11579df..ac87579e0f20ca514279fdfc211ea2c99e9b5bf7 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 20c4237eb81bef5167b4e660682cc6a2921e7633..b8bd41c21bbe7236541908dfd6a1ec19866d2d39 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 30041e0b07c1a388c1eb81e2ce6c4858bb88bd45..ea55fcd47dd7804ba4687116b34b81b394470979 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 cba8f08812a038d63ea5f3820044fc4ddb319177..cd4b49b062ac22e8a332be3ad644c4adc4192959 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 8aed5c120eb0a6cd1074c57a7277ad4c88a39062..d9d00f082fca3c57936f92e102016e67bac074af 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 74f7ca93cdc99b75631b6915c709b36e03864878..95e2aea084b5baae51fd56dfb9afee857d0d55a2 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 8a0e0819ecf0b88d13d701493dadd0d314608846..05bd7126cbd81d211a6fda7991b731f536d9c1bd 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 b1586ae82f80c0c98be9db964a3da381ab321dd6..b74dd57854ef4250609d21532562b4f7bcbe3cd5 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zbtlink,zbt-wa05", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WA05";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "zbt-wa05:blue:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
index 5ece7567f354d4e033db5cb5e15210451808a61e..eb74a1e9240dd59b609d0334478428d5799fbf8c 100644 (file)
@@ -8,6 +8,10 @@
        compatible = "zbtlink,zbt-we1226", "mediatek,mt7628an-soc";
        model = "Zbtlink ZBT-WE1226";
 
+       aliases {
+               led-status = &led_wlan;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -48,7 +52,7 @@
                        gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
                };
 
-               wlan {
+               led_wlan: wlan {
                        label = "zbt-we1226:green:wlan";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
index 02f33788900be9391ec9e9120604c1b5444f9d78..91e39ec526501c3c69fa187851a25648d45db760 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WE2026";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -16,7 +20,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "zbt-we2026:red:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
index dcfcb8500be95d2b98e025504c473ffe17c12d58..6b7bca608d45be13af998920600c939a48efd750 100644 (file)
@@ -6,13 +6,17 @@
 / {
        compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
 
        gpio-leds {
                compatible = "gpio-leds";
-               power {
+               led_power: power {
                        label = "zbt-we826:green:power";
                        gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
                };
index 79f2859bb7a3d8307fa889258feb8369f590b48e..0ecb24ea5e68e3287895b552933fbe997237c242 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zbtlink,zbt-wg2626", "mediatek,mt7621-soc";
        model = "ZBT-WG2626";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
@@ -40,7 +44,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "zbt-wg2626:green:status";
                        gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
index 104a51f8de7110c0f65f760af70033853f3da745..99a976d99a7900a37e16eae01125f80893d35e70 100644 (file)
@@ -6,6 +6,10 @@
 / {
        compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
@@ -37,7 +41,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "zbt-wg3526:green:status";
                        gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
index 52cac80a728f39bb4c0e6d550deff14482f3c369..59970c4daed2dd53f951b4fbcf9b3d0361416c12 100644 (file)
@@ -9,10 +9,14 @@
        compatible = "zbtlink,zbt-wr8305rt", "ralink,mt7620n-soc";
        model = "Zbtlink ZBT-WR8305RT";
 
+       aliases {
+               led-status = &led_sys;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
-               sys {
+               led_sys: sys {
                        label = "zbt-wr8305rt:green:sys";
                        gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
index 2d8daf1346a11571070ef3bdc078fed05782b3c9..a7e7586def17705d63a14cac64cc32288fe39f38 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zorlik,zl5900v2", "ralink,rt5350-soc";
        model = "Zorlik ZL5900V2";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                };
 
-               power {
+               led_power: power {
                        label = "zl5900v2:blue:power";
                        gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
                };
index db426eea3d451edebedd9b6e73143a1c1d26a63c..dcad4587f7a16b5517e84677a8c05be3e792d3b8 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zte,q7", "ralink,mt7620a-soc";
        model = "ZTE Q7";
 
+       aliases {
+               led-status = &led_status_blue;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -17,7 +21,7 @@
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
-               statblue {
+               led_status_blue: statblue {
                        label = "zte-q7:blue:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 8b27063a46becad24c6415e2bcba68cdd8a4fe00..9f6f84b15e1dcd0fb903b3509cb55e15e13f7a9a 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,keenetic-extra-ii", "mediatek,mt7628an-soc";
        model = "ZyXEL Keenetic Extra II";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -46,7 +50,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power: power {
                        label = "keenetic-extra-ii:green:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
index 77b047c094c0546ee0cbb3461c61cd2d7db81e97..e31d38e54e07a183bc8c9509d25228f8b11f73d2 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,keenetic", "ralink,rt3052-soc";
        model = "ZyXEL Keenetic";
 
+       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 = "kn:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
index 533142b4925fde71869f39921da001e4c46d2407..19cbefe96f1ac243eba08f97845d8adfe81db3ec 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,keenetic-omni", "ralink,mt7620n-soc";
        model = "ZyXEL Keenetic Omni";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -27,7 +31,7 @@
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "kn_rc:green:power";
                        gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
                };
index bccd50035b0b94f16d0043016cbe35c4a5236bac..ab3ed8c5862486f54a7c76cc1d7b25deecfe791c 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,keenetic-omni-ii", "ralink,mt7620n-soc";
        model = "ZyXEL Keenetic Omni II";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -27,7 +31,7 @@
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "kn_rc:green:power";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
index 2d0582d0807e2f823b65f187d109aa6c7b03b5a2..1af2694e04ebd70c2771c821873224d8b084b731 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "zyxel,keenetic-viva", "ralink,mt7620a-soc";
        model = "ZyXEL Keenetic Viva";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -32,7 +36,7 @@
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power_green: power {
                        label = "kng_rc:green:power";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };