diff options
author | Mathias Kresin <dev@kresin.me> | 2016-10-04 20:34:03 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2016-10-05 19:23:23 +0200 |
commit | e07c80dfc881daed67c495d99885cc045f70d89a (patch) | |
tree | 2da8a52c1aa361717b20657c1ed80a4e0ff579ca | |
parent | 8b639410d188a979783cc57f9a4fedbcd362bf10 (diff) | |
download | mtk-20170518-e07c80dfc881daed67c495d99885cc045f70d89a.zip mtk-20170518-e07c80dfc881daed67c495d99885cc045f70d89a.tar.gz mtk-20170518-e07c80dfc881daed67c495d99885cc045f70d89a.tar.bz2 |
lantiq: use aliases device tree node for leds
The chosen node is clearly the wrong place for aliases.
Signed-off-by: Mathias Kresin <dev@kresin.me>
36 files changed, 277 insertions, 285 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh index 456e54b..e4eb4d7 100644 --- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh @@ -32,7 +32,7 @@ lantiq_get_dt_led() { local label local ledpath local basepath="/sys/firmware/devicetree/base" - local nodepath="$basepath/chosen/leds/$1" + local nodepath="$basepath/aliases/led-$1" [ -f "$nodepath" ] && ledpath=$(cat "$nodepath") [ -n "$ledpath" ] && label=$(cat "$basepath$ledpath/label") diff --git a/target/linux/lantiq/dts/ARV4510PW.dts b/target/linux/lantiq/dts/ARV4510PW.dts index bbfec2f..dca7a35 100644 --- a/target/linux/lantiq/dts/ARV4510PW.dts +++ b/target/linux/lantiq/dts/ARV4510PW.dts @@ -7,18 +7,18 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power2; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power2; + led-running = &power; - dsl = &adsl; - internet = &internet; - usb = &usb; - usb2 = &usb2; - wifi = &wifi; - }; + led-dsl = &adsl; + led-internet = &internet; + led-usb = &usb; + led-usb2 = &usb2; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dtsi b/target/linux/lantiq/dts/ARV4518PWR01.dtsi index 2145d07..3b29481 100644 --- a/target/linux/lantiq/dts/ARV4518PWR01.dtsi +++ b/target/linux/lantiq/dts/ARV4518PWR01.dtsi @@ -3,17 +3,17 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power; + led-running = &power; - dsl = &dsl; - internet = &online; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV4519PW.dts b/target/linux/lantiq/dts/ARV4519PW.dts index f1e6176..932bc4a 100644 --- a/target/linux/lantiq/dts/ARV4519PW.dts +++ b/target/linux/lantiq/dts/ARV4519PW.dts @@ -7,17 +7,17 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &internet_green; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &internet_green; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV4520PW.dts b/target/linux/lantiq/dts/ARV4520PW.dts index a7d529b..8edca24 100644 --- a/target/linux/lantiq/dts/ARV4520PW.dts +++ b/target/linux/lantiq/dts/ARV4520PW.dts @@ -7,17 +7,17 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_blue; - failsafe = &power_red; - running = &power_blue; + aliases { + led-boot = &power_blue; + led-failsafe = &power_red; + led-running = &power_blue; - dsl = &dsl; - internet = &internet_blue; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &internet_blue; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV4525PW.dts b/target/linux/lantiq/dts/ARV4525PW.dts index 5d2c327..0f264ff 100644 --- a/target/linux/lantiq/dts/ARV4525PW.dts +++ b/target/linux/lantiq/dts/ARV4525PW.dts @@ -5,16 +5,14 @@ / { model = "ARV4525PW - Speedport W501V Typ A"; - chosen { - leds { - /* we dont have a power led, lets use the online led */ - boot = &online; - failsafe = &online; - - dsl = &dsl; - internet = &online; - wifi = &wifi; - }; + aliases { + /* we dont have a power led, lets use the online led */ + led-boot = &online; + led-failsafe = &online; + + led-dsl = &dsl; + led-internet = &online; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV452CQW.dts b/target/linux/lantiq/dts/ARV452CQW.dts index 152b7af..b891042 100644 --- a/target/linux/lantiq/dts/ARV452CQW.dts +++ b/target/linux/lantiq/dts/ARV452CQW.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_blue; - failsafe = &power_red; - running = &power_blue; + aliases { + led-boot = &power_blue; + led-failsafe = &power_red; + led-running = &power_blue; - internet = &dsl_blue; - usb = &usb; - wifi = &wifi; - }; + led-internet = &dsl_blue; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { @@ -113,7 +113,7 @@ lantiq,pull = <0>; lantiq,output = <1>; }; - leds { + aliases { lantiq,pins = "io3", "io5", "io6", "io7", "io9"; lantiq,output = <1>; }; diff --git a/target/linux/lantiq/dts/ARV7506PW11.dts b/target/linux/lantiq/dts/ARV7506PW11.dts index 1463045..215d442 100644 --- a/target/linux/lantiq/dts/ARV7506PW11.dts +++ b/target/linux/lantiq/dts/ARV7506PW11.dts @@ -5,16 +5,14 @@ / { model = "ARV7506PW11 - Alice/O2 IAD 4421"; - chosen { - leds { - boot = &power; - failsafe = &power_red; - running = &power; - - dsl = &dsl; - internet = &internet; - wifi = &wlan; - }; + aliases { + led-boot = &power; + led-failsafe = &power_red; + led-running = &power; + + led-dsl = &dsl; + led-internet = &internet; + led-wifi = &wlan; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV7510PW22.dts b/target/linux/lantiq/dts/ARV7510PW22.dts index fb03017..ac97409 100644 --- a/target/linux/lantiq/dts/ARV7510PW22.dts +++ b/target/linux/lantiq/dts/ARV7510PW22.dts @@ -7,15 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power; + led-running = &power; - internet = &internet; - wifi = &wlan; - }; + led-internet = &internet; + led-wifi = &wlan; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV7518PW.dts b/target/linux/lantiq/dts/ARV7518PW.dts index 6e2b8ef..7e6a28a 100644 --- a/target/linux/lantiq/dts/ARV7518PW.dts +++ b/target/linux/lantiq/dts/ARV7518PW.dts @@ -7,17 +7,17 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &online_green; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online_green; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { @@ -115,7 +115,7 @@ lantiq,pull = <2>; lantiq,output = <1>; }; - leds { + aliases { lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19"; lantiq,output = <1>; }; diff --git a/target/linux/lantiq/dts/ARV7519PW.dts b/target/linux/lantiq/dts/ARV7519PW.dts index b6e04d6..57c1bde 100644 --- a/target/linux/lantiq/dts/ARV7519PW.dts +++ b/target/linux/lantiq/dts/ARV7519PW.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power2; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power2; + led-running = &power; - dsl = &dsl; - internet = &online; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV7519RW22.dts b/target/linux/lantiq/dts/ARV7519RW22.dts index a15556b..f1d5f63 100644 --- a/target/linux/lantiq/dts/ARV7519RW22.dts +++ b/target/linux/lantiq/dts/ARV7519RW22.dts @@ -7,14 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_green; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_green; + led-running = &power_green; - internet = &internet_green; - }; + led-internet = &internet_green; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV7525PW.dts b/target/linux/lantiq/dts/ARV7525PW.dts index be1bf75..e889362 100644 --- a/target/linux/lantiq/dts/ARV7525PW.dts +++ b/target/linux/lantiq/dts/ARV7525PW.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &power_green; - internet = &online; - wifi = &wifi; - }; + led-dsl = &power_green; + led-internet = &online; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/ARV752DPW.dts b/target/linux/lantiq/dts/ARV752DPW.dts index a54e15c..e37c795 100644 --- a/target/linux/lantiq/dts/ARV752DPW.dts +++ b/target/linux/lantiq/dts/ARV752DPW.dts @@ -7,15 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_red; - failsafe = &power_blue; - running = &power_red; + aliases { + led-boot = &power_red; + led-failsafe = &power_blue; + led-running = &power_red; - internet = &internet_red; - wifi = &wifi; - }; + led-internet = &internet_red; + led-wifi = &wifi; }; memory@0 { @@ -111,7 +111,7 @@ lantiq,pull = <2>; lantiq,output = <1>; }; - leds { + aliases { lantiq,pins = "io3", "io5", "io6", "io8"; lantiq,output = <1>; lantiq,pull = <0>; diff --git a/target/linux/lantiq/dts/ARV752DPW22.dts b/target/linux/lantiq/dts/ARV752DPW22.dts index d7103fb..db4a639 100644 --- a/target/linux/lantiq/dts/ARV752DPW22.dts +++ b/target/linux/lantiq/dts/ARV752DPW22.dts @@ -7,15 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_red; - failsafe = &power_blue; - running = &power_red; + aliases { + led-boot = &power_red; + led-failsafe = &power_blue; + led-running = &power_red; - internet = &internet_red; - wifi = &wifi; - }; + led-internet = &internet_red; + led-wifi = &wifi; }; memory@0 { @@ -111,7 +111,7 @@ lantiq,open-drain = <1>; lantiq,output = <1>; }; - leds { + aliases { lantiq,pins = "io3", "io5", "io6", "io8"; lantiq,open-drain = <1>; lantiq,output = <1>; diff --git a/target/linux/lantiq/dts/ARV8539PW22.dts b/target/linux/lantiq/dts/ARV8539PW22.dts index 8a6a07b..76034fd 100644 --- a/target/linux/lantiq/dts/ARV8539PW22.dts +++ b/target/linux/lantiq/dts/ARV8539PW22.dts @@ -5,16 +5,14 @@ / { model = "ARV8539PW22 - Speedport W 504V Typ A"; - chosen { - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; - - dsl = &dsl_green; - internet = &online_green; - wifi = &wireless_green; - }; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; + + dsl = &dsl_green; + internet = &online_green; + wifi = &wireless_green; }; memory@0 { diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts index 0165156..2287580 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts @@ -7,15 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_orange; - failsafe = &power_red; - running = &power_blue; + aliases { + led-boot = &power_orange; + led-failsafe = &power_red; + led-running = &power_blue; - internet = &broadband_blue; - wifi = &wireless_blue; - }; + led-internet = &broadband_blue; + led-wifi = &wireless_blue; }; memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */ diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts index 1d61d81..7879997 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts @@ -7,15 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_orange; - failsafe = &power_red; - running = &power_blue; + aliases { + led-boot = &power_orange; + led-failsafe = &power_red; + led-running = &power_blue; - internet = &broadband_blue; - wifi = &wireless_blue; - }; + led-internet = &broadband_blue; + led-wifi = &wireless_blue; }; memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */ diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts index fcfd8c7..fa00f70 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts @@ -7,15 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_blue; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_blue; - internet = &broadband_blue; - wifi = &wireless_blue; - }; + led-internet = &broadband_blue; + led-wifi = &wireless_blue; }; memory@0 { diff --git a/target/linux/lantiq/dts/DGN1000B.dts b/target/linux/lantiq/dts/DGN1000B.dts index a011c71..b84eab0 100644 --- a/target/linux/lantiq/dts/DGN1000B.dts +++ b/target/linux/lantiq/dts/DGN1000B.dts @@ -8,13 +8,13 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; - leds { - boot = &power; - failsafe = &power; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power; + led-running = &power; - dsl = &dsl; - internet = &online_green; + led-dsl = &dsl; + led-internet = &online_green; }; }; diff --git a/target/linux/lantiq/dts/DGN3500.dtsi b/target/linux/lantiq/dts/DGN3500.dtsi index bc50e4a..f86ccc5 100644 --- a/target/linux/lantiq/dts/DGN3500.dtsi +++ b/target/linux/lantiq/dts/DGN3500.dtsi @@ -3,17 +3,17 @@ / { chosen { bootargs = "root= console=ttyLTQ0,115200"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &internet; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &internet; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index 47b7a07..57dc457 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -3,15 +3,15 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power; + led-running = &power; - usb = &usb1; - usb2 = &usb2; - }; + led-usb = &usb1; + led-usb2 = &usb2; }; memory@0 { diff --git a/target/linux/lantiq/dts/FRITZ3370.dts b/target/linux/lantiq/dts/FRITZ3370.dts index d802ca7..35880f5 100644 --- a/target/linux/lantiq/dts/FRITZ3370.dts +++ b/target/linux/lantiq/dts/FRITZ3370.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 ubi.mtd=1,512 root=/dev/mtdblock9"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &info_green; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &info_green; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/FRITZ7320.dts b/target/linux/lantiq/dts/FRITZ7320.dts index acb88b6..643546c 100644 --- a/target/linux/lantiq/dts/FRITZ7320.dts +++ b/target/linux/lantiq/dts/FRITZ7320.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power; - running = &power; + aliases { + led-boot = &power; + led-failsafe = &power; + led-running = &power; - internet = &info_green; - dsl = &power; - wifi = &wlan; - }; + led-internet = &info_green; + led-dsl = &power; + led-wifi = &wlan; }; memory@0 { diff --git a/target/linux/lantiq/dts/FRITZ7360SL.dts b/target/linux/lantiq/dts/FRITZ7360SL.dts index e8fdc13..02e9781 100644 --- a/target/linux/lantiq/dts/FRITZ7360SL.dts +++ b/target/linux/lantiq/dts/FRITZ7360SL.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - internet = &info_green; - dsl = &power_green; - wifi = &wifi; - }; + led-internet = &info_green; + led-dsl = &power_green; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/H201L.dts b/target/linux/lantiq/dts/H201L.dts index e6e514f..c4208e3 100644 --- a/target/linux/lantiq/dts/H201L.dts +++ b/target/linux/lantiq/dts/H201L.dts @@ -7,17 +7,17 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_green; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_green; + led-running = &power_green; - dsl = &dsl; - internet = &online; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts index c1b4c61..5ab5ae7 100644 --- a/target/linux/lantiq/dts/P2601HNFX.dts +++ b/target/linux/lantiq/dts/P2601HNFX.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &online; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/P2812HNUF1.dts b/target/linux/lantiq/dts/P2812HNUF1.dts index 10bc4b1..87b2f8a 100644 --- a/target/linux/lantiq/dts/P2812HNUF1.dts +++ b/target/linux/lantiq/dts/P2812HNUF1.dts @@ -5,11 +5,9 @@ / { model = "P2812HNUF1 - ZyXEL P-2812HNU-F1"; - chosen { - leds { - usb = &usb1; - usb2 = &usb2; - }; + aliases { + led-usb = &usb1; + led-usb2 = &usb2; }; fpi@10000000 { diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi index 88f4d75..30eee50 100644 --- a/target/linux/lantiq/dts/P2812HNUFX.dtsi +++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi @@ -3,16 +3,16 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl_green; - internet = &internet_green; - wifi = &wireless_green; - }; + led-dsl = &dsl_green; + led-internet = &internet_green; + led-wifi = &wireless_green; }; cputemp@0 { diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi index b3eaf73..d6a89fe 100644 --- a/target/linux/lantiq/dts/TDW89X0.dtsi +++ b/target/linux/lantiq/dts/TDW89X0.dtsi @@ -3,17 +3,17 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - /* the power led can't be controlled, use the wps led instead */ - boot = &wps; - failsafe = &wps; + aliases { + /* the power led can't be controlled, use the wps led instead */ + led-boot = &wps; + led-failsafe = &wps; - dsl = &dsl; - internet = &internet; - usb = &usb0; - usb2 = &usb2; - }; + led-dsl = &dsl; + led-internet = &internet; + led-usb = &usb0; + led-usb2 = &usb2; }; memory@0 { diff --git a/target/linux/lantiq/dts/VG3503J.dts b/target/linux/lantiq/dts/VG3503J.dts index 1aeb4f1..b8437eb 100644 --- a/target/linux/lantiq/dts/VG3503J.dts +++ b/target/linux/lantiq/dts/VG3503J.dts @@ -7,14 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - internet = &dsl; - }; + led-internet = &dsl; }; memory@0 { diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi index 0284831..4f2ae47 100644 --- a/target/linux/lantiq/dts/VGV7510KW22.dtsi +++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi @@ -5,16 +5,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &internet_green; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &internet_green; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi index b2399af..103a9f5 100644 --- a/target/linux/lantiq/dts/VGV7519.dtsi +++ b/target/linux/lantiq/dts/VGV7519.dtsi @@ -6,16 +6,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &broadband_green; - internet = &internet_green; - wifi = &wireless_green; - }; + led-dsl = &broadband_green; + led-internet = &internet_green; + led-wifi = &wireless_green; }; memory@0 { diff --git a/target/linux/lantiq/dts/VR200v.dts b/target/linux/lantiq/dts/VR200v.dts index e281042..8715b89 100644 --- a/target/linux/lantiq/dts/VR200v.dts +++ b/target/linux/lantiq/dts/VR200v.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power; - failsafe = &power; + aliases { + led-boot = &power; + led-failsafe = &power; - dsl = &dsl; - internet = &internet; - usb = &usb; - usb2 = &usb; - }; + led-dsl = &dsl; + led-internet = &internet; + led-usb = &usb; + led-usb2 = &usb; }; memory@0 { diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts index ba48dd1..067ca87 100644 --- a/target/linux/lantiq/dts/WBMR.dts +++ b/target/linux/lantiq/dts/WBMR.dts @@ -7,17 +7,17 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_green; - failsafe = &power_red; - running = &power_green; + aliases { + led-boot = &power_green; + led-failsafe = &power_red; + led-running = &power_green; - dsl = &dsl; - internet = &online_green; - usb = &usb; - wifi = &wifi; - }; + led-dsl = &dsl; + led-internet = &online_green; + led-usb = &usb; + led-wifi = &wifi; }; memory@0 { diff --git a/target/linux/lantiq/dts/WBMR300.dts b/target/linux/lantiq/dts/WBMR300.dts index 824efb7..02ec172 100644 --- a/target/linux/lantiq/dts/WBMR300.dts +++ b/target/linux/lantiq/dts/WBMR300.dts @@ -7,16 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + }; - leds { - boot = &power_g; - failsafe = &diag_r; - running = &power_g; + aliases { + led-boot = &power_g; + led-failsafe = &diag_r; + led-running = &power_g; - dsl = &dsl; - internet = &router_g; - wifi = &wifi_g; - }; + led-dsl = &dsl; + led-internet = &router_g; + led-wifi = &wifi_g; }; memory@0 { |