From: Chuanhong Guo Date: Mon, 16 Jul 2018 08:27:22 +0000 (+0800) Subject: ramips: Use dts alias based status led X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c9c4b2116c0984eb8baeff03e806030ee9c6175f;p=openwrt%2Fstaging%2Fneocturne.git ramips: Use dts alias based status led Also fix several typos in led node name. Signed-off-by: Chuanhong Guo --- diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 1e67097cd8..6df243e393 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -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 diff --git a/target/linux/ramips/dts/3G-6200N.dts b/target/linux/ramips/dts/3G-6200N.dts index 82cfaa8008..f11b945638 100644 --- a/target/linux/ramips/dts/3G-6200N.dts +++ b/target/linux/ramips/dts/3G-6200N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/3G-6200NL.dts b/target/linux/ramips/dts/3G-6200NL.dts index c95c5bf2da..00a2b139e4 100644 --- a/target/linux/ramips/dts/3G-6200NL.dts +++ b/target/linux/ramips/dts/3G-6200NL.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/3G150B.dts b/target/linux/ramips/dts/3G150B.dts index afe9fafe9b..48c715a459 100644 --- a/target/linux/ramips/dts/3G150B.dts +++ b/target/linux/ramips/dts/3G150B.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/3G300M.dts b/target/linux/ramips/dts/3G300M.dts index eb1399529a..0957ed9f84 100644 --- a/target/linux/ramips/dts/3G300M.dts +++ b/target/linux/ramips/dts/3G300M.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/A5-V11.dts b/target/linux/ramips/dts/A5-V11.dts index 40b0b1c37a..920a121994 100644 --- a/target/linux/ramips/dts/A5-V11.dts +++ b/target/linux/ramips/dts/A5-V11.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/AC1200RM.dts b/target/linux/ramips/dts/AC1200RM.dts index 9bdbf5cadf..5215f5d6a8 100644 --- a/target/linux/ramips/dts/AC1200RM.dts +++ b/target/linux/ramips/dts/AC1200RM.dts @@ -41,6 +41,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/AI-BR100.dts b/target/linux/ramips/dts/AI-BR100.dts index b0100f63bb..819a2449a0 100644 --- a/target/linux/ramips/dts/AI-BR100.dts +++ b/target/linux/ramips/dts/AI-BR100.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ALL0239-3G.dts b/target/linux/ramips/dts/ALL0239-3G.dts index f34567f286..d27561a5b5 100644 --- a/target/linux/ramips/dts/ALL0239-3G.dts +++ b/target/linux/ramips/dts/ALL0239-3G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/AR670W.dts b/target/linux/ramips/dts/AR670W.dts index 3759f4a8c4..9ca3cd2e3c 100644 --- a/target/linux/ramips/dts/AR670W.dts +++ b/target/linux/ramips/dts/AR670W.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/AR725W.dts b/target/linux/ramips/dts/AR725W.dts index ae5034edee..540c976d2b 100644 --- a/target/linux/ramips/dts/AR725W.dts +++ b/target/linux/ramips/dts/AR725W.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ASL26555.dtsi b/target/linux/ramips/dts/ASL26555.dtsi index 67dc34787e..405cc55114 100644 --- a/target/linux/ramips/dts/ASL26555.dtsi +++ b/target/linux/ramips/dts/ASL26555.dtsi @@ -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>; }; diff --git a/target/linux/ramips/dts/ATP-52B.dts b/target/linux/ramips/dts/ATP-52B.dts index ca62a443c8..c463bc91d8 100644 --- a/target/linux/ramips/dts/ATP-52B.dts +++ b/target/linux/ramips/dts/ATP-52B.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/AWAPN2403.dts b/target/linux/ramips/dts/AWAPN2403.dts index c304373ce1..8c81170054 100644 --- a/target/linux/ramips/dts/AWAPN2403.dts +++ b/target/linux/ramips/dts/AWAPN2403.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/AWUSFREE1.dts b/target/linux/ramips/dts/AWUSFREE1.dts index c0ffbb279a..b8c57f9474 100644 --- a/target/linux/ramips/dts/AWUSFREE1.dts +++ b/target/linux/ramips/dts/AWUSFREE1.dts @@ -41,6 +41,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/ArcherC2-v1.dts b/target/linux/ramips/dts/ArcherC2-v1.dts index 6af75e39ce..2387dbcf8d 100644 --- a/target/linux/ramips/dts/ArcherC2-v1.dts +++ b/target/linux/ramips/dts/ArcherC2-v1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ArcherC20v1.dts b/target/linux/ramips/dts/ArcherC20v1.dts index 9d8a2b595c..5dd29742f2 100644 --- a/target/linux/ramips/dts/ArcherC20v1.dts +++ b/target/linux/ramips/dts/ArcherC20v1.dts @@ -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"; diff --git a/target/linux/ramips/dts/ArcherC20v4.dts b/target/linux/ramips/dts/ArcherC20v4.dts index 77f70bd840..92080da905 100644 --- a/target/linux/ramips/dts/ArcherC20v4.dts +++ b/target/linux/ramips/dts/ArcherC20v4.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ArcherC50.dts b/target/linux/ramips/dts/ArcherC50.dts index 88bd3272d7..1e197fcfd7 100644 --- a/target/linux/ramips/dts/ArcherC50.dts +++ b/target/linux/ramips/dts/ArcherC50.dts @@ -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"; diff --git a/target/linux/ramips/dts/ArcherC50V3.dts b/target/linux/ramips/dts/ArcherC50V3.dts index ebb76abcd8..93d9a34ccf 100644 --- a/target/linux/ramips/dts/ArcherC50V3.dts +++ b/target/linux/ramips/dts/ArcherC50V3.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ArcherMR200.dts b/target/linux/ramips/dts/ArcherMR200.dts index ec28d39672..9a8b558e6f 100644 --- a/target/linux/ramips/dts/ArcherMR200.dts +++ b/target/linux/ramips/dts/ArcherMR200.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/BR-6475ND.dts b/target/linux/ramips/dts/BR-6475ND.dts index 11611b083f..1c3afe54c2 100644 --- a/target/linux/ramips/dts/BR-6475ND.dts +++ b/target/linux/ramips/dts/BR-6475ND.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/C108.dts b/target/linux/ramips/dts/C108.dts index c449a36fc7..1f09fbd311 100644 --- a/target/linux/ramips/dts/C108.dts +++ b/target/linux/ramips/dts/C108.dts @@ -42,6 +42,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/CF-WR800N.dts b/target/linux/ramips/dts/CF-WR800N.dts index b66df862fb..cfe2541cf3 100644 --- a/target/linux/ramips/dts/CF-WR800N.dts +++ b/target/linux/ramips/dts/CF-WR800N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/CS-QR10.dts b/target/linux/ramips/dts/CS-QR10.dts index 6b70a31678..c629068328 100644 --- a/target/linux/ramips/dts/CS-QR10.dts +++ b/target/linux/ramips/dts/CS-QR10.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/CY-SWR1100.dts b/target/linux/ramips/dts/CY-SWR1100.dts index b5b594bf59..8db5f31471 100644 --- a/target/linux/ramips/dts/CY-SWR1100.dts +++ b/target/linux/ramips/dts/CY-SWR1100.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/D105.dts b/target/linux/ramips/dts/D105.dts index a7d7d3777d..4f4b69e462 100644 --- a/target/linux/ramips/dts/D105.dts +++ b/target/linux/ramips/dts/D105.dts @@ -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>; @@ -44,12 +48,12 @@ 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>; }; diff --git a/target/linux/ramips/dts/D240.dts b/target/linux/ramips/dts/D240.dts index 392e92d466..2432175672 100644 --- a/target/linux/ramips/dts/D240.dts +++ b/target/linux/ramips/dts/D240.dts @@ -42,6 +42,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/DAP-1350.dts b/target/linux/ramips/dts/DAP-1350.dts index 107acdb2c3..4a93509311 100644 --- a/target/linux/ramips/dts/DAP-1350.dts +++ b/target/linux/ramips/dts/DAP-1350.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DAP-1522-A1.dts b/target/linux/ramips/dts/DAP-1522-A1.dts index 8f8d098bd5..a5ac6cae0a 100644 --- a/target/linux/ramips/dts/DAP-1522-A1.dts +++ b/target/linux/ramips/dts/DAP-1522-A1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DB-WRT01.dts b/target/linux/ramips/dts/DB-WRT01.dts index 09efff6f50..8c160f80f3 100644 --- a/target/linux/ramips/dts/DB-WRT01.dts +++ b/target/linux/ramips/dts/DB-WRT01.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DCH-M225.dts b/target/linux/ramips/dts/DCH-M225.dts index 1aea90805c..41876093fa 100644 --- a/target/linux/ramips/dts/DCH-M225.dts +++ b/target/linux/ramips/dts/DCH-M225.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DCS-930.dts b/target/linux/ramips/dts/DCS-930.dts index 348cdb4382..1665e54171 100644 --- a/target/linux/ramips/dts/DCS-930.dts +++ b/target/linux/ramips/dts/DCS-930.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DCS-930L-B1.dts b/target/linux/ramips/dts/DCS-930L-B1.dts index 5d2899ea27..abd6cbc666 100644 --- a/target/linux/ramips/dts/DCS-930L-B1.dts +++ b/target/linux/ramips/dts/DCS-930L-B1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-300-B1.dts b/target/linux/ramips/dts/DIR-300-B1.dts index b8d8f16458..16b491a869 100644 --- a/target/linux/ramips/dts/DIR-300-B1.dts +++ b/target/linux/ramips/dts/DIR-300-B1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-300-B7.dts b/target/linux/ramips/dts/DIR-300-B7.dts index 12ccd1620d..52104d2451 100644 --- a/target/linux/ramips/dts/DIR-300-B7.dts +++ b/target/linux/ramips/dts/DIR-300-B7.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-320-B1.dts b/target/linux/ramips/dts/DIR-320-B1.dts index 9e05b63e98..f65c5ca98f 100644 --- a/target/linux/ramips/dts/DIR-320-B1.dts +++ b/target/linux/ramips/dts/DIR-320-B1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-600-B1.dts b/target/linux/ramips/dts/DIR-600-B1.dts index 0e8239d0b3..b01232267e 100644 --- a/target/linux/ramips/dts/DIR-600-B1.dts +++ b/target/linux/ramips/dts/DIR-600-B1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-610-A1.dts b/target/linux/ramips/dts/DIR-610-A1.dts index eda0bc8c2f..1c10800f5b 100644 --- a/target/linux/ramips/dts/DIR-610-A1.dts +++ b/target/linux/ramips/dts/DIR-610-A1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-615-D.dts b/target/linux/ramips/dts/DIR-615-D.dts index 507f08774a..0808b8565a 100644 --- a/target/linux/ramips/dts/DIR-615-D.dts +++ b/target/linux/ramips/dts/DIR-615-D.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-615-H1.dts b/target/linux/ramips/dts/DIR-615-H1.dts index 7d410f1ddc..6b04cc550b 100644 --- a/target/linux/ramips/dts/DIR-615-H1.dts +++ b/target/linux/ramips/dts/DIR-615-H1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-620-A1.dts b/target/linux/ramips/dts/DIR-620-A1.dts index 23f5a5daef..e0c84ff43d 100644 --- a/target/linux/ramips/dts/DIR-620-A1.dts +++ b/target/linux/ramips/dts/DIR-620-A1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-620-D1.dts b/target/linux/ramips/dts/DIR-620-D1.dts index 2def8aae4a..a5fe357730 100644 --- a/target/linux/ramips/dts/DIR-620-D1.dts +++ b/target/linux/ramips/dts/DIR-620-D1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-645.dts b/target/linux/ramips/dts/DIR-645.dts index 0afa87a077..1cb40eb694 100644 --- a/target/linux/ramips/dts/DIR-645.dts +++ b/target/linux/ramips/dts/DIR-645.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-810L.dts b/target/linux/ramips/dts/DIR-810L.dts index 7a1736d563..22487a8e5d 100644 --- a/target/linux/ramips/dts/DIR-810L.dts +++ b/target/linux/ramips/dts/DIR-810L.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DIR-860L-B1.dts b/target/linux/ramips/dts/DIR-860L-B1.dts index 5dfc1eeaef..b8e675eb2f 100644 --- a/target/linux/ramips/dts/DIR-860L-B1.dts +++ b/target/linux/ramips/dts/DIR-860L-B1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DWR-116-A1.dts b/target/linux/ramips/dts/DWR-116-A1.dts index 928e34ea4d..313e9cbd1b 100644 --- a/target/linux/ramips/dts/DWR-116-A1.dts +++ b/target/linux/ramips/dts/DWR-116-A1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DWR-512-B.dts b/target/linux/ramips/dts/DWR-512-B.dts index 74a33e10e4..8b06ed708c 100644 --- a/target/linux/ramips/dts/DWR-512-B.dts +++ b/target/linux/ramips/dts/DWR-512-B.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/DWR-921-C1.dts b/target/linux/ramips/dts/DWR-921-C1.dts index dbcbc17d84..5a32c55f38 100644 --- a/target/linux/ramips/dts/DWR-921-C1.dts +++ b/target/linux/ramips/dts/DWR-921-C1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/E1700.dts b/target/linux/ramips/dts/E1700.dts index f65f144921..f739964a04 100644 --- a/target/linux/ramips/dts/E1700.dts +++ b/target/linux/ramips/dts/E1700.dts @@ -19,6 +19,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/ESR-9753.dts b/target/linux/ramips/dts/ESR-9753.dts index 444bea1af7..9947a77d0c 100644 --- a/target/linux/ramips/dts/ESR-9753.dts +++ b/target/linux/ramips/dts/ESR-9753.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/EW1200.dts b/target/linux/ramips/dts/EW1200.dts index 84c4f72cb6..5d0c70a592 100644 --- a/target/linux/ramips/dts/EW1200.dts +++ b/target/linux/ramips/dts/EW1200.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/EX2700.dts b/target/linux/ramips/dts/EX2700.dts index 380db801d5..b109fcd880 100644 --- a/target/linux/ramips/dts/EX2700.dts +++ b/target/linux/ramips/dts/EX2700.dts @@ -19,6 +19,10 @@ 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"; diff --git a/target/linux/ramips/dts/EX3700.dts b/target/linux/ramips/dts/EX3700.dts index 18079ea79c..5dd6929b8c 100644 --- a/target/linux/ramips/dts/EX3700.dts +++ b/target/linux/ramips/dts/EX3700.dts @@ -11,6 +11,10 @@ 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"; diff --git a/target/linux/ramips/dts/F5D8235_V1.dts b/target/linux/ramips/dts/F5D8235_V1.dts index 79920922d4..32850b4a07 100644 --- a/target/linux/ramips/dts/F5D8235_V1.dts +++ b/target/linux/ramips/dts/F5D8235_V1.dts @@ -11,6 +11,10 @@ compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc"; model = "Belkin F5D8235 v1"; + aliases { + led-status = &led_wired_blue; + }; + pci@440000 { status = "ok"; }; @@ -161,7 +165,7 @@ gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; - wired { + led_wired_blue: wired { label = "f5d8235-v1:blue:wired"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; }; diff --git a/target/linux/ramips/dts/F5D8235_V2.dts b/target/linux/ramips/dts/F5D8235_V2.dts index 5e32d7ff7c..6d4ed1d8cf 100644 --- a/target/linux/ramips/dts/F5D8235_V2.dts +++ b/target/linux/ramips/dts/F5D8235_V2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/F7C027.dts b/target/linux/ramips/dts/F7C027.dts index 532c6243b8..01211b215d 100644 --- a/target/linux/ramips/dts/F7C027.dts +++ b/target/linux/ramips/dts/F7C027.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/FIREWRT.dts b/target/linux/ramips/dts/FIREWRT.dts index 262dbb5f57..5a65ec1d81 100644 --- a/target/linux/ramips/dts/FIREWRT.dts +++ b/target/linux/ramips/dts/FIREWRT.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/FONERA20N.dts b/target/linux/ramips/dts/FONERA20N.dts index bc7474ccfb..be66cfa72c 100644 --- a/target/linux/ramips/dts/FONERA20N.dts +++ b/target/linux/ramips/dts/FONERA20N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/GB-PC1.dts b/target/linux/ramips/dts/GB-PC1.dts index 609e058967..814d6d1226 100644 --- a/target/linux/ramips/dts/GB-PC1.dts +++ b/target/linux/ramips/dts/GB-PC1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/GB-PC2.dts b/target/linux/ramips/dts/GB-PC2.dts index f8f4361e2f..0576aa0a8b 100644 --- a/target/linux/ramips/dts/GB-PC2.dts +++ b/target/linux/ramips/dts/GB-PC2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts index ada618f17b..87b1f0bb9a 100644 --- a/target/linux/ramips/dts/GL-MT300N-V2.dts +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts @@ -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>; diff --git a/target/linux/ramips/dts/HC5661.dts b/target/linux/ramips/dts/HC5661.dts index 5227ee06c5..c7d6039a05 100644 --- a/target/linux/ramips/dts/HC5661.dts +++ b/target/linux/ramips/dts/HC5661.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HC5661A.dts b/target/linux/ramips/dts/HC5661A.dts index 9ca734f0a6..57b86cf069 100644 --- a/target/linux/ramips/dts/HC5661A.dts +++ b/target/linux/ramips/dts/HC5661A.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HC5761.dts b/target/linux/ramips/dts/HC5761.dts index 6cc7c6ba76..64b6d27af9 100644 --- a/target/linux/ramips/dts/HC5761.dts +++ b/target/linux/ramips/dts/HC5761.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HC5861.dts b/target/linux/ramips/dts/HC5861.dts index 8773588e3e..d6049fd8ec 100644 --- a/target/linux/ramips/dts/HC5861.dts +++ b/target/linux/ramips/dts/HC5861.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HC5962.dts b/target/linux/ramips/dts/HC5962.dts index c6fc7cb154..e73be9071f 100644 --- a/target/linux/ramips/dts/HC5962.dts +++ b/target/linux/ramips/dts/HC5962.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts index bed5977ac1..8b1be61645 100644 --- a/target/linux/ramips/dts/HG255D.dts +++ b/target/linux/ramips/dts/HG255D.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HPM.dts b/target/linux/ramips/dts/HPM.dts index 904c8df9fe..eea7252458 100644 --- a/target/linux/ramips/dts/HPM.dts +++ b/target/linux/ramips/dts/HPM.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HT-TM02.dts b/target/linux/ramips/dts/HT-TM02.dts index a287472501..fa93836d43 100644 --- a/target/linux/ramips/dts/HT-TM02.dts +++ b/target/linux/ramips/dts/HT-TM02.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/HW550-3G.dts b/target/linux/ramips/dts/HW550-3G.dts index f6a05fcd5f..863de7b941 100644 --- a/target/linux/ramips/dts/HW550-3G.dts +++ b/target/linux/ramips/dts/HW550-3G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/IP2202.dts b/target/linux/ramips/dts/IP2202.dts index 260846e164..5d2149c46e 100644 --- a/target/linux/ramips/dts/IP2202.dts +++ b/target/linux/ramips/dts/IP2202.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/JHR-N805R.dts b/target/linux/ramips/dts/JHR-N805R.dts index d043e0f05d..1497c9e0d6 100644 --- a/target/linux/ramips/dts/JHR-N805R.dts +++ b/target/linux/ramips/dts/JHR-N805R.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/JHR-N825R.dts b/target/linux/ramips/dts/JHR-N825R.dts index 5e64b2cc09..f6fd82e3e6 100644 --- a/target/linux/ramips/dts/JHR-N825R.dts +++ b/target/linux/ramips/dts/JHR-N825R.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/JHR-N926R.dts b/target/linux/ramips/dts/JHR-N926R.dts index d1d2627f26..fa16b6806a 100644 --- a/target/linux/ramips/dts/JHR-N926R.dts +++ b/target/linux/ramips/dts/JHR-N926R.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/K2G.dts b/target/linux/ramips/dts/K2G.dts index 7aed533c33..09689f7bea 100644 --- a/target/linux/ramips/dts/K2G.dts +++ b/target/linux/ramips/dts/K2G.dts @@ -10,6 +10,7 @@ model = "Phicomm K2G"; aliases { + led-status = &led_blue; serial0 = &uartlite; }; diff --git a/target/linux/ramips/dts/K2P.dts b/target/linux/ramips/dts/K2P.dts index db4dc29878..60948782b3 100644 --- a/target/linux/ramips/dts/K2P.dts +++ b/target/linux/ramips/dts/K2P.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/LINKIT7688.dts b/target/linux/ramips/dts/LINKIT7688.dts index a81a2d5a4c..8b83c3304b 100644 --- a/target/linux/ramips/dts/LINKIT7688.dts +++ b/target/linux/ramips/dts/LINKIT7688.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/M2M.dts b/target/linux/ramips/dts/M2M.dts index d828f5a747..6c038e005b 100644 --- a/target/linux/ramips/dts/M2M.dts +++ b/target/linux/ramips/dts/M2M.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/M3.dts b/target/linux/ramips/dts/M3.dts index 5f52e6064f..8d9241a8b4 100644 --- a/target/linux/ramips/dts/M3.dts +++ b/target/linux/ramips/dts/M3.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/M4.dtsi b/target/linux/ramips/dts/M4.dtsi index f657325b53..57a760c4fe 100644 --- a/target/linux/ramips/dts/M4.dtsi +++ b/target/linux/ramips/dts/M4.dtsi @@ -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>; }; diff --git a/target/linux/ramips/dts/MAC1200RV2.dts b/target/linux/ramips/dts/MAC1200RV2.dts index bcbe55f3f8..8c07105a50 100644 --- a/target/linux/ramips/dts/MAC1200RV2.dts +++ b/target/linux/ramips/dts/MAC1200RV2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MINIEMBWIFI.dts b/target/linux/ramips/dts/MINIEMBWIFI.dts index d455189636..beb8ac82e4 100644 --- a/target/linux/ramips/dts/MINIEMBWIFI.dts +++ b/target/linux/ramips/dts/MINIEMBWIFI.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MIR3G.dts b/target/linux/ramips/dts/MIR3G.dts index 44dfc1796c..faba70f181 100644 --- a/target/linux/ramips/dts/MIR3G.dts +++ b/target/linux/ramips/dts/MIR3G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MIWIFI-MINI.dts b/target/linux/ramips/dts/MIWIFI-MINI.dts index 3da39c529e..3223ab87df 100644 --- a/target/linux/ramips/dts/MIWIFI-MINI.dts +++ b/target/linux/ramips/dts/MIWIFI-MINI.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MIWIFI-NANO.dts b/target/linux/ramips/dts/MIWIFI-NANO.dts index b8a325d4f4..b08715678c 100644 --- a/target/linux/ramips/dts/MIWIFI-NANO.dts +++ b/target/linux/ramips/dts/MIWIFI-NANO.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MLW221.dts b/target/linux/ramips/dts/MLW221.dts index f4a7152479..20087555f7 100644 --- a/target/linux/ramips/dts/MLW221.dts +++ b/target/linux/ramips/dts/MLW221.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MLWG2.dts b/target/linux/ramips/dts/MLWG2.dts index 58fce43b4f..4566de38b1 100644 --- a/target/linux/ramips/dts/MLWG2.dts +++ b/target/linux/ramips/dts/MLWG2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MOFI3500-3GN.dts b/target/linux/ramips/dts/MOFI3500-3GN.dts index f60919d5a1..83847a5831 100644 --- a/target/linux/ramips/dts/MOFI3500-3GN.dts +++ b/target/linux/ramips/dts/MOFI3500-3GN.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MPRA1.dts b/target/linux/ramips/dts/MPRA1.dts index 59dfe4ebd2..66ced42d96 100644 --- a/target/linux/ramips/dts/MPRA1.dts +++ b/target/linux/ramips/dts/MPRA1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MPRA2.dts b/target/linux/ramips/dts/MPRA2.dts index 4bf9b57549..2de12fc86c 100644 --- a/target/linux/ramips/dts/MPRA2.dts +++ b/target/linux/ramips/dts/MPRA2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MR-102N.dts b/target/linux/ramips/dts/MR-102N.dts index 44569eb62d..b092358ba3 100644 --- a/target/linux/ramips/dts/MR-102N.dts +++ b/target/linux/ramips/dts/MR-102N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MZK-750DHP.dts b/target/linux/ramips/dts/MZK-750DHP.dts index f9f02550ca..3f4db949e4 100644 --- a/target/linux/ramips/dts/MZK-750DHP.dts +++ b/target/linux/ramips/dts/MZK-750DHP.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MZK-DP150N.dts b/target/linux/ramips/dts/MZK-DP150N.dts index 6e5d9c1804..3a8243420b 100644 --- a/target/linux/ramips/dts/MZK-DP150N.dts +++ b/target/linux/ramips/dts/MZK-DP150N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MZK-EX300NP.dts b/target/linux/ramips/dts/MZK-EX300NP.dts index 3463201f89..cec39b06f6 100644 --- a/target/linux/ramips/dts/MZK-EX300NP.dts +++ b/target/linux/ramips/dts/MZK-EX300NP.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MZK-EX750NP.dts b/target/linux/ramips/dts/MZK-EX750NP.dts index 21d47ddfa8..27e4ac7ac5 100644 --- a/target/linux/ramips/dts/MZK-EX750NP.dts +++ b/target/linux/ramips/dts/MZK-EX750NP.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/MZK-W300NH2.dts b/target/linux/ramips/dts/MZK-W300NH2.dts index d96ea60940..558450c07d 100644 --- a/target/linux/ramips/dts/MZK-W300NH2.dts +++ b/target/linux/ramips/dts/MZK-W300NH2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/NA930.dts b/target/linux/ramips/dts/NA930.dts index be909cf334..1d117bd539 100644 --- a/target/linux/ramips/dts/NA930.dts +++ b/target/linux/ramips/dts/NA930.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/NBG-419N.dts b/target/linux/ramips/dts/NBG-419N.dts index 55590de1be..f76620f2f7 100644 --- a/target/linux/ramips/dts/NBG-419N.dts +++ b/target/linux/ramips/dts/NBG-419N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/NBG-419N2.dts b/target/linux/ramips/dts/NBG-419N2.dts index a6e4803964..64164e1433 100644 --- a/target/linux/ramips/dts/NBG-419N2.dts +++ b/target/linux/ramips/dts/NBG-419N2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/NW718.dts b/target/linux/ramips/dts/NW718.dts index 9047397536..64064acfcf 100644 --- a/target/linux/ramips/dts/NW718.dts +++ b/target/linux/ramips/dts/NW718.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index 5368b19ea1..8fb451178d 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/Newifi-D2.dts b/target/linux/ramips/dts/Newifi-D2.dts index e919338e4e..10151344c9 100644 --- a/target/linux/ramips/dts/Newifi-D2.dts +++ b/target/linux/ramips/dts/Newifi-D2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/OMEGA2.dtsi b/target/linux/ramips/dts/OMEGA2.dtsi index 73a6908792..e79eb6a92b 100644 --- a/target/linux/ramips/dts/OMEGA2.dtsi +++ b/target/linux/ramips/dts/OMEGA2.dtsi @@ -6,6 +6,10 @@ / { compatible = "onion,omega2", "mediatek,mt7628an-soc"; + aliases { + led-status = &system_led; + }; + chosen { bootargs = "console=ttyS0,115200"; }; diff --git a/target/linux/ramips/dts/OY-0001.dts b/target/linux/ramips/dts/OY-0001.dts index 0fe372dd3a..a982477244 100644 --- a/target/linux/ramips/dts/OY-0001.dts +++ b/target/linux/ramips/dts/OY-0001.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PBR-D1.dts b/target/linux/ramips/dts/PBR-D1.dts index 78a36577c0..e9a71f90ee 100644 --- a/target/linux/ramips/dts/PBR-D1.dts +++ b/target/linux/ramips/dts/PBR-D1.dts @@ -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"; diff --git a/target/linux/ramips/dts/PBR-M1.dts b/target/linux/ramips/dts/PBR-M1.dts index 66a71a91ad..c6b09effec 100644 --- a/target/linux/ramips/dts/PBR-M1.dts +++ b/target/linux/ramips/dts/PBR-M1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PSG1208.dts b/target/linux/ramips/dts/PSG1208.dts index f008ec7ab7..3047679a13 100644 --- a/target/linux/ramips/dts/PSG1208.dts +++ b/target/linux/ramips/dts/PSG1208.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PSG1218A.dts b/target/linux/ramips/dts/PSG1218A.dts index d76abc39fc..f48ac1deb6 100644 --- a/target/linux/ramips/dts/PSG1218A.dts +++ b/target/linux/ramips/dts/PSG1218A.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PSG1218B.dts b/target/linux/ramips/dts/PSG1218B.dts index 2dfa7635d1..86b1194b7a 100644 --- a/target/linux/ramips/dts/PSG1218B.dts +++ b/target/linux/ramips/dts/PSG1218B.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PSR-680W.dts b/target/linux/ramips/dts/PSR-680W.dts index 2297c1126c..f57c0a860a 100644 --- a/target/linux/ramips/dts/PSR-680W.dts +++ b/target/linux/ramips/dts/PSR-680W.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PWH2004.dts b/target/linux/ramips/dts/PWH2004.dts index c086894fd2..332e82265f 100644 --- a/target/linux/ramips/dts/PWH2004.dts +++ b/target/linux/ramips/dts/PWH2004.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/PX-4885.dtsi b/target/linux/ramips/dts/PX-4885.dtsi index ac47ed8457..1d40e9565d 100644 --- a/target/linux/ramips/dts/PX-4885.dtsi +++ b/target/linux/ramips/dts/PX-4885.dtsi @@ -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>; @@ -22,12 +26,12 @@ 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>; }; diff --git a/target/linux/ramips/dts/R6220.dts b/target/linux/ramips/dts/R6220.dts index 7d886725e1..320ca801ac 100644 --- a/target/linux/ramips/dts/R6220.dts +++ b/target/linux/ramips/dts/R6220.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RB750Gr3.dts b/target/linux/ramips/dts/RB750Gr3.dts index dc359b10bb..563a537268 100644 --- a/target/linux/ramips/dts/RB750Gr3.dts +++ b/target/linux/ramips/dts/RB750Gr3.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RBM11G.dts b/target/linux/ramips/dts/RBM11G.dts index 9288e965bd..f312093a22 100644 --- a/target/linux/ramips/dts/RBM11G.dts +++ b/target/linux/ramips/dts/RBM11G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RBM33G.dts b/target/linux/ramips/dts/RBM33G.dts index ed2cb841dd..cc6da267a2 100644 --- a/target/linux/ramips/dts/RBM33G.dts +++ b/target/linux/ramips/dts/RBM33G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RE350.dts b/target/linux/ramips/dts/RE350.dts index 2f3bb1245c..8cf0b35110 100644 --- a/target/linux/ramips/dts/RE350.dts +++ b/target/linux/ramips/dts/RE350.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RE6500.dts b/target/linux/ramips/dts/RE6500.dts index b2b5a29238..8b6634c3bb 100644 --- a/target/linux/ramips/dts/RE6500.dts +++ b/target/linux/ramips/dts/RE6500.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RT-AC51U.dts b/target/linux/ramips/dts/RT-AC51U.dts index ec313cc5ae..244d78f975 100644 --- a/target/linux/ramips/dts/RT-AC51U.dts +++ b/target/linux/ramips/dts/RT-AC51U.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RT-N10-PLUS.dts b/target/linux/ramips/dts/RT-N10-PLUS.dts index a55d06f1b3..aeeada8e96 100644 --- a/target/linux/ramips/dts/RT-N10-PLUS.dts +++ b/target/linux/ramips/dts/RT-N10-PLUS.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RT-N12-PLUS.dts b/target/linux/ramips/dts/RT-N12-PLUS.dts index f3e0284aed..8a22e14428 100644 --- a/target/linux/ramips/dts/RT-N12-PLUS.dts +++ b/target/linux/ramips/dts/RT-N12-PLUS.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RT-N13U.dts b/target/linux/ramips/dts/RT-N13U.dts index 35a6c0aa2c..7effe5b320 100644 --- a/target/linux/ramips/dts/RT-N13U.dts +++ b/target/linux/ramips/dts/RT-N13U.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RT-N14U.dts b/target/linux/ramips/dts/RT-N14U.dts index 8ae4580b9b..781ce3f714 100644 --- a/target/linux/ramips/dts/RT-N14U.dts +++ b/target/linux/ramips/dts/RT-N14U.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RT-N15.dts b/target/linux/ramips/dts/RT-N15.dts index ee1c34024e..4d6d62f939 100644 --- a/target/linux/ramips/dts/RT-N15.dts +++ b/target/linux/ramips/dts/RT-N15.dts @@ -11,6 +11,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/RT-N56U.dts b/target/linux/ramips/dts/RT-N56U.dts index 417411db77..01d0015869 100644 --- a/target/linux/ramips/dts/RT-N56U.dts +++ b/target/linux/ramips/dts/RT-N56U.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/RUT5XX.dts b/target/linux/ramips/dts/RUT5XX.dts index e80b64d4ec..3652cc8089 100644 --- a/target/linux/ramips/dts/RUT5XX.dts +++ b/target/linux/ramips/dts/RUT5XX.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/SAP-G3200U3.dts b/target/linux/ramips/dts/SAP-G3200U3.dts index 7264e30b58..7ce7072aff 100644 --- a/target/linux/ramips/dts/SAP-G3200U3.dts +++ b/target/linux/ramips/dts/SAP-G3200U3.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/SK-WB8.dts b/target/linux/ramips/dts/SK-WB8.dts index 0ded039d8e..544595e098 100644 --- a/target/linux/ramips/dts/SK-WB8.dts +++ b/target/linux/ramips/dts/SK-WB8.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/SL-R7205.dts b/target/linux/ramips/dts/SL-R7205.dts index f6f20a8174..c0a0eed290 100644 --- a/target/linux/ramips/dts/SL-R7205.dts +++ b/target/linux/ramips/dts/SL-R7205.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TEW-638APB-V2.dts b/target/linux/ramips/dts/TEW-638APB-V2.dts index 3c9b12968f..c0e09fea51 100644 --- a/target/linux/ramips/dts/TEW-638APB-V2.dts +++ b/target/linux/ramips/dts/TEW-638APB-V2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TEW-691GR.dts b/target/linux/ramips/dts/TEW-691GR.dts index 0ee5e4ab2c..3ac6074b87 100644 --- a/target/linux/ramips/dts/TEW-691GR.dts +++ b/target/linux/ramips/dts/TEW-691GR.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TEW-692GR.dts b/target/linux/ramips/dts/TEW-692GR.dts index a2e853a0ae..db8fef1699 100644 --- a/target/linux/ramips/dts/TEW-692GR.dts +++ b/target/linux/ramips/dts/TEW-692GR.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-MR3420V5.dts b/target/linux/ramips/dts/TL-MR3420V5.dts index 397b2e1699..2968d55c31 100644 --- a/target/linux/ramips/dts/TL-MR3420V5.dts +++ b/target/linux/ramips/dts/TL-MR3420V5.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-WA801NDV5.dts b/target/linux/ramips/dts/TL-WA801NDV5.dts index 0d4f8467b9..8dd5f9cbee 100644 --- a/target/linux/ramips/dts/TL-WA801NDV5.dts +++ b/target/linux/ramips/dts/TL-WA801NDV5.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-WR840NV4.dts b/target/linux/ramips/dts/TL-WR840NV4.dts index 09952e7a7a..e87f7b78e1 100644 --- a/target/linux/ramips/dts/TL-WR840NV4.dts +++ b/target/linux/ramips/dts/TL-WR840NV4.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-WR840NV5.dts b/target/linux/ramips/dts/TL-WR840NV5.dts index ecc0fedd59..abacfdf4bb 100644 --- a/target/linux/ramips/dts/TL-WR840NV5.dts +++ b/target/linux/ramips/dts/TL-WR840NV5.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-WR841NV13.dts b/target/linux/ramips/dts/TL-WR841NV13.dts index e552b47034..384f403645 100644 --- a/target/linux/ramips/dts/TL-WR841NV13.dts +++ b/target/linux/ramips/dts/TL-WR841NV13.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-WR842NV5.dts b/target/linux/ramips/dts/TL-WR842NV5.dts index 397c106374..cfff82af6e 100644 --- a/target/linux/ramips/dts/TL-WR842NV5.dts +++ b/target/linux/ramips/dts/TL-WR842NV5.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/TL-WR902ACV3.dts b/target/linux/ramips/dts/TL-WR902ACV3.dts index bfdc03b1b3..5716f685b8 100644 --- a/target/linux/ramips/dts/TL-WR902ACV3.dts +++ b/target/linux/ramips/dts/TL-WR902ACV3.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/Timecloud.dts b/target/linux/ramips/dts/Timecloud.dts index 066d16a8f9..57b1beb864 100644 --- a/target/linux/ramips/dts/Timecloud.dts +++ b/target/linux/ramips/dts/Timecloud.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/U25AWF-H1.dts b/target/linux/ramips/dts/U25AWF-H1.dts index 8021b0f79d..bdc74e0bf6 100644 --- a/target/linux/ramips/dts/U25AWF-H1.dts +++ b/target/linux/ramips/dts/U25AWF-H1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/U35WF.dts b/target/linux/ramips/dts/U35WF.dts index 33d9112c61..bd09bc3498 100644 --- a/target/linux/ramips/dts/U35WF.dts +++ b/target/linux/ramips/dts/U35WF.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/U7621-06.dtsi b/target/linux/ramips/dts/U7621-06.dtsi index 0502904bd0..95c23015fe 100644 --- a/target/linux/ramips/dts/U7621-06.dtsi +++ b/target/linux/ramips/dts/U7621-06.dtsi @@ -40,6 +40,10 @@ / { 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>; }; diff --git a/target/linux/ramips/dts/U7628-01.dtsi b/target/linux/ramips/dts/U7628-01.dtsi index 34226a4a4e..2df1cc974e 100644 --- a/target/linux/ramips/dts/U7628-01.dtsi +++ b/target/linux/ramips/dts/U7628-01.dtsi @@ -40,6 +40,10 @@ / { 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>; }; diff --git a/target/linux/ramips/dts/UR-326N4G.dts b/target/linux/ramips/dts/UR-326N4G.dts index ecb747c766..4a8dbd9716 100644 --- a/target/linux/ramips/dts/UR-326N4G.dts +++ b/target/linux/ramips/dts/UR-326N4G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/UR-336UN.dts b/target/linux/ramips/dts/UR-336UN.dts index 31aa62e72e..d3a6151a7e 100644 --- a/target/linux/ramips/dts/UR-336UN.dts +++ b/target/linux/ramips/dts/UR-336UN.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/V11STFE.dts b/target/linux/ramips/dts/V11STFE.dts index ae306670cf..44657ac073 100644 --- a/target/linux/ramips/dts/V11STFE.dts +++ b/target/linux/ramips/dts/V11STFE.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/V22RW-2X2.dts b/target/linux/ramips/dts/V22RW-2X2.dts index 8b0fba1919..7311445fe9 100644 --- a/target/linux/ramips/dts/V22RW-2X2.dts +++ b/target/linux/ramips/dts/V22RW-2X2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/VAR11N-300.dts b/target/linux/ramips/dts/VAR11N-300.dts index 54bcb3df02..beef4c368d 100644 --- a/target/linux/ramips/dts/VAR11N-300.dts +++ b/target/linux/ramips/dts/VAR11N-300.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/VOCORE.dtsi b/target/linux/ramips/dts/VOCORE.dtsi index 4c4522710e..9b214dde89 100644 --- a/target/linux/ramips/dts/VOCORE.dtsi +++ b/target/linux/ramips/dts/VOCORE.dtsi @@ -5,6 +5,10 @@ / { compatible = "vocore,vocore", "ralink,rt5350-soc"; + aliases { + led-status = &led_status; + }; + gpio-export { compatible = "gpio-export"; #size-cells = <0>; @@ -134,7 +138,7 @@ gpio-leds { compatible = "gpio-leds"; - status { + led_status: status { /* UARTF_RXD */ label = "vocore:green:status"; gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; diff --git a/target/linux/ramips/dts/VOCORE2.dts b/target/linux/ramips/dts/VOCORE2.dts index 43f8475856..659a96d02a 100644 --- a/target/linux/ramips/dts/VOCORE2.dts +++ b/target/linux/ramips/dts/VOCORE2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/VOCORE2LITE.dts b/target/linux/ramips/dts/VOCORE2LITE.dts index 8e87c1d519..e41bc0afea 100644 --- a/target/linux/ramips/dts/VOCORE2LITE.dts +++ b/target/linux/ramips/dts/VOCORE2LITE.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/VR500.dts b/target/linux/ramips/dts/VR500.dts index 776cc2ac5c..832c61f58a 100644 --- a/target/linux/ramips/dts/VR500.dts +++ b/target/linux/ramips/dts/VR500.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/W150M.dts b/target/linux/ramips/dts/W150M.dts index d2f8574083..f733c15b8f 100644 --- a/target/linux/ramips/dts/W150M.dts +++ b/target/linux/ramips/dts/W150M.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/W306R_V20.dts b/target/linux/ramips/dts/W306R_V20.dts index 5aeb91cfb7..5b42b4bfb8 100644 --- a/target/linux/ramips/dts/W306R_V20.dts +++ b/target/linux/ramips/dts/W306R_V20.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/W502U.dts b/target/linux/ramips/dts/W502U.dts index b02c6c1256..a370137790 100644 --- a/target/linux/ramips/dts/W502U.dts +++ b/target/linux/ramips/dts/W502U.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WCR-1166DS.dts b/target/linux/ramips/dts/WCR-1166DS.dts index 34734ceda5..125d987752 100644 --- a/target/linux/ramips/dts/WCR-1166DS.dts +++ b/target/linux/ramips/dts/WCR-1166DS.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WCR150GN.dts b/target/linux/ramips/dts/WCR150GN.dts index 9a4c4fc7d1..7225f4f54f 100644 --- a/target/linux/ramips/dts/WCR150GN.dts +++ b/target/linux/ramips/dts/WCR150GN.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WF-2881.dts b/target/linux/ramips/dts/WF-2881.dts index 33f521cb95..ed25cf607f 100644 --- a/target/linux/ramips/dts/WF-2881.dts +++ b/target/linux/ramips/dts/WF-2881.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WHR-1166D.dts b/target/linux/ramips/dts/WHR-1166D.dts index ab5d2d25ad..652a6aef89 100644 --- a/target/linux/ramips/dts/WHR-1166D.dts +++ b/target/linux/ramips/dts/WHR-1166D.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WHR-300HP2.dts b/target/linux/ramips/dts/WHR-300HP2.dts index d405686d7a..85a3a5dcdd 100644 --- a/target/linux/ramips/dts/WHR-300HP2.dts +++ b/target/linux/ramips/dts/WHR-300HP2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WHR-600D.dts b/target/linux/ramips/dts/WHR-600D.dts index 611a23d9bb..fc90fc6c46 100644 --- a/target/linux/ramips/dts/WHR-600D.dts +++ b/target/linux/ramips/dts/WHR-600D.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WHR-G300N.dts b/target/linux/ramips/dts/WHR-G300N.dts index a7c28341b2..7349a239dd 100644 --- a/target/linux/ramips/dts/WHR-G300N.dts +++ b/target/linux/ramips/dts/WHR-G300N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WIDORA-NEO.dtsi b/target/linux/ramips/dts/WIDORA-NEO.dtsi index 3334c88e22..b5001c9774 100644 --- a/target/linux/ramips/dts/WIDORA-NEO.dtsi +++ b/target/linux/ramips/dts/WIDORA-NEO.dtsi @@ -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"; diff --git a/target/linux/ramips/dts/WIZFI630A.dts b/target/linux/ramips/dts/WIZFI630A.dts index d12753650e..ac9729dc0d 100644 --- a/target/linux/ramips/dts/WIZFI630A.dts +++ b/target/linux/ramips/dts/WIZFI630A.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WL-330N.dts b/target/linux/ramips/dts/WL-330N.dts index 0eb7b7ff78..b3599403ef 100644 --- a/target/linux/ramips/dts/WL-330N.dts +++ b/target/linux/ramips/dts/WL-330N.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WL-330N3G.dts b/target/linux/ramips/dts/WL-330N3G.dts index 3801a9d9ef..7e56da93c2 100644 --- a/target/linux/ramips/dts/WL-330N3G.dts +++ b/target/linux/ramips/dts/WL-330N3G.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WL-351.dts b/target/linux/ramips/dts/WL-351.dts index 0dd596cfe6..59ef573f04 100644 --- a/target/linux/ramips/dts/WL-351.dts +++ b/target/linux/ramips/dts/WL-351.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WLI-TX4-AG300N.dts b/target/linux/ramips/dts/WLI-TX4-AG300N.dts index 3c04d49b66..d90d3c8195 100644 --- a/target/linux/ramips/dts/WLI-TX4-AG300N.dts +++ b/target/linux/ramips/dts/WLI-TX4-AG300N.dts @@ -11,6 +11,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/WLR-6000.dts b/target/linux/ramips/dts/WLR-6000.dts index 4f8ba6fff9..f7e78ced28 100644 --- a/target/linux/ramips/dts/WLR-6000.dts +++ b/target/linux/ramips/dts/WLR-6000.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WMR-300.dts b/target/linux/ramips/dts/WMR-300.dts index 63354dafbe..7f58167a51 100644 --- a/target/linux/ramips/dts/WMR-300.dts +++ b/target/linux/ramips/dts/WMR-300.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WN-AX1167GR.dts b/target/linux/ramips/dts/WN-AX1167GR.dts index cc8ef44163..f4bac41411 100644 --- a/target/linux/ramips/dts/WN-AX1167GR.dts +++ b/target/linux/ramips/dts/WN-AX1167GR.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WN-GX300GR.dts b/target/linux/ramips/dts/WN-GX300GR.dts index aa89f05555..44cdc4f0a4 100644 --- a/target/linux/ramips/dts/WN-GX300GR.dts +++ b/target/linux/ramips/dts/WN-GX300GR.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WN3000RPV3.dts b/target/linux/ramips/dts/WN3000RPV3.dts index 8fb76c0a49..a2f6eb9d94 100644 --- a/target/linux/ramips/dts/WN3000RPV3.dts +++ b/target/linux/ramips/dts/WN3000RPV3.dts @@ -11,6 +11,10 @@ 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"; diff --git a/target/linux/ramips/dts/WNCE2001.dts b/target/linux/ramips/dts/WNCE2001.dts index 0421ee660b..55edbd705a 100644 --- a/target/linux/ramips/dts/WNCE2001.dts +++ b/target/linux/ramips/dts/WNCE2001.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WNDR3700V5.dts b/target/linux/ramips/dts/WNDR3700V5.dts index ce96440369..5d9dfc9de7 100644 --- a/target/linux/ramips/dts/WNDR3700V5.dts +++ b/target/linux/ramips/dts/WNDR3700V5.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WR1200JS.dts b/target/linux/ramips/dts/WR1200JS.dts index 2169e74e23..25eb1742b5 100644 --- a/target/linux/ramips/dts/WR1200JS.dts +++ b/target/linux/ramips/dts/WR1200JS.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WR512-3GN.dtsi b/target/linux/ramips/dts/WR512-3GN.dtsi index 854ab251ba..45b2413aa3 100644 --- a/target/linux/ramips/dts/WR512-3GN.dtsi +++ b/target/linux/ramips/dts/WR512-3GN.dtsi @@ -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>; }; diff --git a/target/linux/ramips/dts/WRC-1167GHBK2-S.dts b/target/linux/ramips/dts/WRC-1167GHBK2-S.dts index 7b1cfd7304..c23497bcaa 100644 --- a/target/linux/ramips/dts/WRC-1167GHBK2-S.dts +++ b/target/linux/ramips/dts/WRC-1167GHBK2-S.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WRH-300CR.dts b/target/linux/ramips/dts/WRH-300CR.dts index 2b40f981f2..8894b3815e 100644 --- a/target/linux/ramips/dts/WRH-300CR.dts +++ b/target/linux/ramips/dts/WRH-300CR.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WRTNODE.dts b/target/linux/ramips/dts/WRTNODE.dts index 888d32ab16..8591cb45a6 100644 --- a/target/linux/ramips/dts/WRTNODE.dts +++ b/target/linux/ramips/dts/WRTNODE.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WRTNODE2P.dts b/target/linux/ramips/dts/WRTNODE2P.dts index 53619138b1..d3f8fe7e32 100644 --- a/target/linux/ramips/dts/WRTNODE2P.dts +++ b/target/linux/ramips/dts/WRTNODE2P.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WRTNODE2R.dts b/target/linux/ramips/dts/WRTNODE2R.dts index abcbc73775..469d65c350 100644 --- a/target/linux/ramips/dts/WRTNODE2R.dts +++ b/target/linux/ramips/dts/WRTNODE2R.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WSR-1166.dts b/target/linux/ramips/dts/WSR-1166.dts index 38edbde745..8207b0214e 100644 --- a/target/linux/ramips/dts/WSR-1166.dts +++ b/target/linux/ramips/dts/WSR-1166.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WSR-600.dts b/target/linux/ramips/dts/WSR-600.dts index 1db2809027..21cb6ba267 100644 --- a/target/linux/ramips/dts/WSR-600.dts +++ b/target/linux/ramips/dts/WSR-600.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/WT3020.dtsi b/target/linux/ramips/dts/WT3020.dtsi index 91720e32c9..b60d6fe3a2 100644 --- a/target/linux/ramips/dts/WT3020.dtsi +++ b/target/linux/ramips/dts/WT3020.dtsi @@ -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>; }; diff --git a/target/linux/ramips/dts/WZR-AGL300NH.dts b/target/linux/ramips/dts/WZR-AGL300NH.dts index ff7a5ecf94..ac87579e0f 100644 --- a/target/linux/ramips/dts/WZR-AGL300NH.dts +++ b/target/linux/ramips/dts/WZR-AGL300NH.dts @@ -11,6 +11,10 @@ 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>; }; diff --git a/target/linux/ramips/dts/X5.dts b/target/linux/ramips/dts/X5.dts index 20c4237eb8..b8bd41c21b 100644 --- a/target/linux/ramips/dts/X5.dts +++ b/target/linux/ramips/dts/X5.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/X8.dts b/target/linux/ramips/dts/X8.dts index 30041e0b07..ea55fcd47d 100644 --- a/target/linux/ramips/dts/X8.dts +++ b/target/linux/ramips/dts/X8.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/XDXRN502J.dts b/target/linux/ramips/dts/XDXRN502J.dts index cba8f08812..cd4b49b062 100644 --- a/target/linux/ramips/dts/XDXRN502J.dts +++ b/target/linux/ramips/dts/XDXRN502J.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/Y1.dts b/target/linux/ramips/dts/Y1.dts index 8aed5c120e..d9d00f082f 100644 --- a/target/linux/ramips/dts/Y1.dts +++ b/target/linux/ramips/dts/Y1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/Y1S.dts b/target/linux/ramips/dts/Y1S.dts index 74f7ca93cd..95e2aea084 100644 --- a/target/linux/ramips/dts/Y1S.dts +++ b/target/linux/ramips/dts/Y1S.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/YOUKU-YK1.dts b/target/linux/ramips/dts/YOUKU-YK1.dts index 8a0e0819ec..05bd7126cb 100644 --- a/target/linux/ramips/dts/YOUKU-YK1.dts +++ b/target/linux/ramips/dts/YOUKU-YK1.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WA05.dts b/target/linux/ramips/dts/ZBT-WA05.dts index b1586ae82f..b74dd57854 100644 --- a/target/linux/ramips/dts/ZBT-WA05.dts +++ b/target/linux/ramips/dts/ZBT-WA05.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WE1226.dts b/target/linux/ramips/dts/ZBT-WE1226.dts index 5ece7567f3..eb74a1e924 100644 --- a/target/linux/ramips/dts/ZBT-WE1226.dts +++ b/target/linux/ramips/dts/ZBT-WE1226.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WE2026.dts b/target/linux/ramips/dts/ZBT-WE2026.dts index 02f3378890..91e39ec526 100644 --- a/target/linux/ramips/dts/ZBT-WE2026.dts +++ b/target/linux/ramips/dts/ZBT-WE2026.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WE826.dtsi b/target/linux/ramips/dts/ZBT-WE826.dtsi index dcfcb8500b..6b7bca608d 100644 --- a/target/linux/ramips/dts/ZBT-WE826.dtsi +++ b/target/linux/ramips/dts/ZBT-WE826.dtsi @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WG2626.dts b/target/linux/ramips/dts/ZBT-WG2626.dts index 79f2859bb7..0ecb24ea5e 100644 --- a/target/linux/ramips/dts/ZBT-WG2626.dts +++ b/target/linux/ramips/dts/ZBT-WG2626.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WG3526.dtsi b/target/linux/ramips/dts/ZBT-WG3526.dtsi index 104a51f8de..99a976d99a 100644 --- a/target/linux/ramips/dts/ZBT-WG3526.dtsi +++ b/target/linux/ramips/dts/ZBT-WG3526.dtsi @@ -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>; }; diff --git a/target/linux/ramips/dts/ZBT-WR8305RT.dts b/target/linux/ramips/dts/ZBT-WR8305RT.dts index 52cac80a72..59970c4dae 100644 --- a/target/linux/ramips/dts/ZBT-WR8305RT.dts +++ b/target/linux/ramips/dts/ZBT-WR8305RT.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZL5900V2.dts b/target/linux/ramips/dts/ZL5900V2.dts index 2d8daf1346..a7e7586def 100644 --- a/target/linux/ramips/dts/ZL5900V2.dts +++ b/target/linux/ramips/dts/ZL5900V2.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ZTE-Q7.dts b/target/linux/ramips/dts/ZTE-Q7.dts index db426eea3d..dcad4587f7 100644 --- a/target/linux/ramips/dts/ZTE-Q7.dts +++ b/target/linux/ramips/dts/ZTE-Q7.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/ki_rb.dts b/target/linux/ramips/dts/ki_rb.dts index 8b27063a46..9f6f84b15e 100644 --- a/target/linux/ramips/dts/ki_rb.dts +++ b/target/linux/ramips/dts/ki_rb.dts @@ -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"; diff --git a/target/linux/ramips/dts/kn.dts b/target/linux/ramips/dts/kn.dts index 77b047c094..e31d38e54e 100644 --- a/target/linux/ramips/dts/kn.dts +++ b/target/linux/ramips/dts/kn.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/kn_rc.dts b/target/linux/ramips/dts/kn_rc.dts index 533142b492..19cbefe96f 100644 --- a/target/linux/ramips/dts/kn_rc.dts +++ b/target/linux/ramips/dts/kn_rc.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/kn_rf.dts b/target/linux/ramips/dts/kn_rf.dts index bccd50035b..ab3ed8c586 100644 --- a/target/linux/ramips/dts/kn_rf.dts +++ b/target/linux/ramips/dts/kn_rf.dts @@ -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>; }; diff --git a/target/linux/ramips/dts/kng_rc.dts b/target/linux/ramips/dts/kng_rc.dts index 2d0582d080..1af2694e04 100644 --- a/target/linux/ramips/dts/kng_rc.dts +++ b/target/linux/ramips/dts/kng_rc.dts @@ -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>; };