From a3042500ab1114bae29ae55071aa3f26fd19c0a4 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 1 Jan 2016 21:18:08 +0000 Subject: [PATCH] lantiq: define default leds in dts files - ARV7525PW: use the power led as dsl led as done by the stock firmware - FRITZ3370: use the info led as internet led - FRITZ7320: use the power led as dsl led as done by the stock firmware Signed-off-by: Mathias Kresin SVN-Revision: 48037 --- target/linux/lantiq/dts/ARV4510PW.dts | 24 ++++++++++++++++------- target/linux/lantiq/dts/ARV4518PWR01.dtsi | 18 ++++++++++++----- target/linux/lantiq/dts/ARV4519PW.dts | 21 ++++++++++++++------ target/linux/lantiq/dts/ARV4520PW.dts | 21 ++++++++++++++------ target/linux/lantiq/dts/ARV4525PW.dts | 16 ++++++++++++--- target/linux/lantiq/dts/ARV452CQW.dts | 15 ++++++++++---- target/linux/lantiq/dts/ARV7510PW22.dts | 12 +++++++++--- target/linux/lantiq/dts/ARV7518PW.dts | 21 ++++++++++++++------ target/linux/lantiq/dts/ARV7519PW.dts | 18 ++++++++++++----- target/linux/lantiq/dts/ARV7519RW22.dts | 9 +++++++-- target/linux/lantiq/dts/ARV7525PW.dts | 16 +++++++++++---- target/linux/lantiq/dts/ARV752DPW.dts | 15 ++++++++++---- target/linux/lantiq/dts/ARV752DPW22.dts | 15 ++++++++++---- target/linux/lantiq/dts/ARV8539PW22.dts | 17 ++++++++++++---- target/linux/lantiq/dts/BTHOMEHUBV2B.dts | 9 +++++++-- target/linux/lantiq/dts/BTHOMEHUBV3A.dts | 11 ++++++++--- target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 9 +++++++-- target/linux/lantiq/dts/DGN1000B.dts | 12 +++++++++--- target/linux/lantiq/dts/DGN3500.dtsi | 21 ++++++++++++++------ target/linux/lantiq/dts/EASY80920.dtsi | 12 +++++++++--- target/linux/lantiq/dts/FRITZ3370.dts | 18 ++++++++++++----- target/linux/lantiq/dts/FRITZ7320.dts | 13 +++++++++--- target/linux/lantiq/dts/GR7000.dts | 15 ++++++++++---- target/linux/lantiq/dts/H201L.dts | 18 ++++++++++++----- target/linux/lantiq/dts/P2601HNFX.dts | 18 ++++++++++++----- target/linux/lantiq/dts/P2812HNUFX.dtsi | 24 ++++++++++++++++------- target/linux/lantiq/dts/TDW89X0.dtsi | 19 +++++++++++++----- target/linux/lantiq/dts/VG3503J.dtsi | 12 +++++++++--- target/linux/lantiq/dts/VGV7510KW22.dtsi | 18 ++++++++++++----- target/linux/lantiq/dts/VGV7519.dtsi | 18 ++++++++++++----- target/linux/lantiq/dts/WBMR.dts | 21 ++++++++++++++------ 31 files changed, 371 insertions(+), 135 deletions(-) diff --git a/target/linux/lantiq/dts/ARV4510PW.dts b/target/linux/lantiq/dts/ARV4510PW.dts index 47724959a1..427cd54ab9 100644 --- a/target/linux/lantiq/dts/ARV4510PW.dts +++ b/target/linux/lantiq/dts/ARV4510PW.dts @@ -7,6 +7,16 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &adsl; + internet = &internet; + power = &power; + power2 = &power2; + usb = &usb; + usb2 = &usb2; + wifi = &wifi; + }; }; memory@0 { @@ -139,11 +149,11 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpios 21 0>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpios 20 0>; }; @@ -163,15 +173,15 @@ label = "lan4"; gpios = <&gpios 16 0>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpios 15 0>; }; - adsl { + adsl: adsl { label = "adsl"; gpios = <&gpios 14 0>; }; - internet { + internet: internet { label = "internet"; gpios = <&gpios 13 0>; }; @@ -191,11 +201,11 @@ label = "phone2"; gpios = <&gpios 9 0>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpios 8 0>; }; - usb2 { + usb2: usb2 { label = "usb2"; gpios = <&gpios 7 0>; }; diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dtsi b/target/linux/lantiq/dts/ARV4518PWR01.dtsi index 0699707827..41d17de419 100644 --- a/target/linux/lantiq/dts/ARV4518PWR01.dtsi +++ b/target/linux/lantiq/dts/ARV4518PWR01.dtsi @@ -3,6 +3,14 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -136,19 +144,19 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 3 0>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 5 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 6 1>; }; @@ -160,7 +168,7 @@ label = "dsl2"; gpios = <&gpio 8 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpio 19 1>; }; diff --git a/target/linux/lantiq/dts/ARV4519PW.dts b/target/linux/lantiq/dts/ARV4519PW.dts index a0a080378e..03711a0ff5 100644 --- a/target/linux/lantiq/dts/ARV4519PW.dts +++ b/target/linux/lantiq/dts/ARV4519PW.dts @@ -7,6 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + power2 = &power2; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -118,23 +127,23 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 2 1>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 7 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 6 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 5 1>; }; @@ -142,7 +151,7 @@ label = "online2"; gpios = <&gpio 8 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpio 19 1>; }; diff --git a/target/linux/lantiq/dts/ARV4520PW.dts b/target/linux/lantiq/dts/ARV4520PW.dts index 8a5b7977c4..642bde22fe 100644 --- a/target/linux/lantiq/dts/ARV4520PW.dts +++ b/target/linux/lantiq/dts/ARV4520PW.dts @@ -7,6 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &adsl; + internet = &internet; + power = &power; + power2 = &power2; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -140,19 +149,19 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 3 1>; }; - adsl { + adsl: adsl { label = "adsl"; gpios = <&gpio 4 1>; }; - internet { + internet: internet { label = "internet"; gpios = <&gpio 5 1>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 6 1>; }; @@ -184,11 +193,11 @@ label = "voice"; gpios = <&gpiomm 4 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpiomm 5 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpiomm 6 1>; }; diff --git a/target/linux/lantiq/dts/ARV4525PW.dts b/target/linux/lantiq/dts/ARV4525PW.dts index 3c420e7cf2..b1a92a7154 100644 --- a/target/linux/lantiq/dts/ARV4525PW.dts +++ b/target/linux/lantiq/dts/ARV4525PW.dts @@ -5,6 +5,16 @@ / { model = "ARV4525PW - Speedport W501V Typ A"; + chosen { + leds { + dsl = &dsl; + internet = &online; + /* we dont have a power led, lets use the online led */ + power = &online; + wifi = &wifi; + }; + }; + memory@0 { reg = <0x0 0x2000000>; }; @@ -136,15 +146,15 @@ label = "fxs"; gpios = <&gpio 5 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 6 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 8 1>; }; - online { + online: online { /*label = "online"; - we dont have a power led, lets use this one */ label = "power"; gpios = <&gpio 9 1>; diff --git a/target/linux/lantiq/dts/ARV452CQW.dts b/target/linux/lantiq/dts/ARV452CQW.dts index fd7759ec07..320e5f59fa 100644 --- a/target/linux/lantiq/dts/ARV452CQW.dts +++ b/target/linux/lantiq/dts/ARV452CQW.dts @@ -7,6 +7,13 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + power1 = &power1; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -159,7 +166,7 @@ label = "power0"; gpios = <&gpio 3 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; @@ -167,7 +174,7 @@ label = "isdn"; gpios = <&gpio 5 1>; }; - power1 { + power1: power1 { label = "power1"; gpios = <&gpio 6 1>; }; @@ -199,11 +206,11 @@ label = "voice"; gpios = <&gpiomm 4 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpiomm 5 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpiomm 6 1>; }; diff --git a/target/linux/lantiq/dts/ARV7510PW22.dts b/target/linux/lantiq/dts/ARV7510PW22.dts index 24c396d8bb..6c534a920b 100644 --- a/target/linux/lantiq/dts/ARV7510PW22.dts +++ b/target/linux/lantiq/dts/ARV7510PW22.dts @@ -7,6 +7,12 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &internet; + power = &power; + wifi = &wlan; + }; }; memory@0 { @@ -155,15 +161,15 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 2 1>; }; - internet { + internet: internet { label = "internet"; gpios = <&gpio 4 1>; }; - wlan { + wlan: wlan { label = "wlan"; gpios = <&gpio 10 1>; }; diff --git a/target/linux/lantiq/dts/ARV7518PW.dts b/target/linux/lantiq/dts/ARV7518PW.dts index c6f4759ed4..7693bc2662 100644 --- a/target/linux/lantiq/dts/ARV7518PW.dts +++ b/target/linux/lantiq/dts/ARV7518PW.dts @@ -7,6 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + power2 = &power2; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -158,23 +167,23 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 2 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 5 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 6 1>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 7 1>; }; @@ -182,7 +191,7 @@ label = "online2"; gpios = <&gpio 8 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpio 19 1>; }; diff --git a/target/linux/lantiq/dts/ARV7519PW.dts b/target/linux/lantiq/dts/ARV7519PW.dts index 1478192663..ed1c2e7311 100644 --- a/target/linux/lantiq/dts/ARV7519PW.dts +++ b/target/linux/lantiq/dts/ARV7519PW.dts @@ -7,6 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + power2 = &power2; + wifi = &wifi; + }; }; memory@0 { @@ -136,16 +144,16 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 2 1>; default-state = "off"; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 14 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 3 1>; }; @@ -153,7 +161,7 @@ label = "online2"; gpios = <&gpio 30 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 12 1>; }; @@ -181,7 +189,7 @@ label = "wps3"; gpios = <&gpio 23 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; diff --git a/target/linux/lantiq/dts/ARV7519RW22.dts b/target/linux/lantiq/dts/ARV7519RW22.dts index d33e9d8df3..8c7c3e6ed2 100644 --- a/target/linux/lantiq/dts/ARV7519RW22.dts +++ b/target/linux/lantiq/dts/ARV7519RW22.dts @@ -7,6 +7,11 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &internet_green; + power = &power_green; + }; }; memory@0 { @@ -205,7 +210,7 @@ label = "internet_red"; gpios = <&gpio 10 1>; }; - power_green { + power_green: power_green { label = "power"; gpios = <&gpio 14 1>; default-state = "on"; @@ -218,7 +223,7 @@ label = "internet_orange"; gpios = <&gpio 19 1>; }; - internet_green { + internet_green: internet_green { label = "internet_green"; gpios = <&gpio 28 1>; }; diff --git a/target/linux/lantiq/dts/ARV7525PW.dts b/target/linux/lantiq/dts/ARV7525PW.dts index 57aa59cd16..d434556244 100644 --- a/target/linux/lantiq/dts/ARV7525PW.dts +++ b/target/linux/lantiq/dts/ARV7525PW.dts @@ -7,6 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &power; + internet = &online; + power = &power; + power1 = &power1; + wifi = &wifi; + }; }; memory@0 { @@ -114,15 +122,15 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 3 1>; }; - power1 { + power1: power1 { label = "power1"; gpios = <&gpio 4 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 5 1>; }; @@ -134,7 +142,7 @@ label = "voice2"; gpios = <&gpio 8 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 9 1>; }; diff --git a/target/linux/lantiq/dts/ARV752DPW.dts b/target/linux/lantiq/dts/ARV752DPW.dts index 8848c71cf7..a26779a2a2 100644 --- a/target/linux/lantiq/dts/ARV752DPW.dts +++ b/target/linux/lantiq/dts/ARV752DPW.dts @@ -7,6 +7,13 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &internet; + power = &power; + power1 = &power1; + wifi = &wifi; + }; }; memory@0 { @@ -170,11 +177,11 @@ gpio-leds { compatible = "gpio-leds"; - power1 { + power1: power1 { label = "power1"; gpios = <&gpio 3 1>; }; - internet { + internet: internet { label = "internet"; gpios = <&gpio 4 1>; }; @@ -182,7 +189,7 @@ label = "message"; gpios = <&gpio 5 1>; }; - power { + power: power { label = "power"; gpios = <&gpio 6 1>; default-state = "keep"; @@ -195,7 +202,7 @@ label = "umts"; gpios = <&gpiomm 3 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpiomm 4 1>; }; diff --git a/target/linux/lantiq/dts/ARV752DPW22.dts b/target/linux/lantiq/dts/ARV752DPW22.dts index 168dc6619b..21c7a8f2cf 100644 --- a/target/linux/lantiq/dts/ARV752DPW22.dts +++ b/target/linux/lantiq/dts/ARV752DPW22.dts @@ -7,6 +7,13 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &internet; + power = &power; + power1 = &power1; + wifi = &wifi; + }; }; memory@0 { @@ -174,11 +181,11 @@ gpio-leds { compatible = "gpio-leds"; - power1 { + power1: power1 { label = "power1"; gpios = <&gpio 3 1>; }; - internet { + internet: internet { label = "internet"; gpios = <&gpio 4 1>; }; @@ -186,7 +193,7 @@ label = "message"; gpios = <&gpio 5 1>; }; - power { + power: power { label = "power"; gpios = <&gpio 6 1>; default-state = "keep"; @@ -199,7 +206,7 @@ label = "umts"; gpios = <&gpiomm 3 1>; }; - wifi { + wifi: wifi { label = "wifi_rt"; gpios = <&gpiomm 4 1>; }; diff --git a/target/linux/lantiq/dts/ARV8539PW22.dts b/target/linux/lantiq/dts/ARV8539PW22.dts index acca47f9dd..b1f1b33417 100644 --- a/target/linux/lantiq/dts/ARV8539PW22.dts +++ b/target/linux/lantiq/dts/ARV8539PW22.dts @@ -5,6 +5,15 @@ / { model = "ARV8539PW22 - Speedport W 504V Typ A"; + chosen { + leds { + dsl = &dsl_green; + internet = &online_green; + power = &power_green; + wifi = &wireless_green; + }; + }; + memory@0 { reg = <0x0 0x4000000>; }; @@ -134,7 +143,7 @@ gpio-leds { compatible = "gpio-leds"; - power-green { + power_green: power-green { label = "power"; gpios = <&gpio 24 1>; }; @@ -143,17 +152,17 @@ gpios = <&gpio 4 1>; }; - dsl-green { + dsl_green: dsl-green { label = "soc:green:dsl"; gpios = <&gpio 5 1>; }; - online-green { + online_green: online-green { label = "soc:green:online"; gpios = <&gpio 6 1>; }; - wireless-green { + wireless_green: wireless-green { label = "soc:green:wireless"; gpios = <&gpio 8 1>; }; diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts index 9b3180c39a..f4c2403d60 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts @@ -7,6 +7,11 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &broadband_blue; + wifi = &wireless_blue; + }; }; memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */ @@ -244,7 +249,7 @@ label = "soc:orange:wireless"; gpios = <&stp0 8 0>; }; - wireless-blue { + wireless_blue: wireless-blue { label = "soc:blue:wireless"; gpios = <&stp0 9 0>; }; @@ -257,7 +262,7 @@ label = "soc:orange:broadband"; gpios = <&stp0 11 0>; }; - broadband-blue { + broadband_blue: broadband-blue { label = "soc:blue:broadband"; gpios = <&stp0 12 0>; }; diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts index 1ae9840fcb..229a85f3ed 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts @@ -7,6 +7,11 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &broadband_blue; + wifi = &wireless_blue; + }; }; memory@0 { /* RAM: Samsung K4H511638F-LC 64MB */ @@ -174,7 +179,7 @@ label = "soc:orange:wireless"; gpios = <&gpio 6 1>; }; - wireless-blue { + wireless_blue: wireless-blue { label = "soc:blue:wireless"; gpios = <&gpio 9 1>; }; @@ -187,7 +192,7 @@ label = "soc:orange:broadband"; gpios = <&gpio 0 1>; }; - broadband-blue { + broadband_blue: broadband-blue { label = "soc:blue:broadband"; gpios = <&gpio 12 1>; }; @@ -200,7 +205,7 @@ label = "soc:orange:power"; gpios = <&gpio 5 1>; }; - power-blue { + ppower-blue { label = "soc:blue:power"; gpios = <&gpio 1 1>; }; diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts index e8cdbbfe39..414157331f 100644 --- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts +++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts @@ -7,6 +7,11 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &broadband_blue; + wifi = &wireless_blue; + }; }; memory@0 { @@ -248,7 +253,7 @@ label = "soc:green:broadband"; gpios = <&gpio 3 1>; }; - broadband-blue { + broadband_blue: broadband-blue { label = "soc:blue:broadband"; gpios = <&gpio 8 1>; }; @@ -261,7 +266,7 @@ label = "soc:green:wireless"; gpios = <&gpio 10 1>; }; - wireless-blue { + wireless_blue: wireless-blue { label = "soc:blue:wireless"; gpios = <&gpio 11 1>; }; diff --git a/target/linux/lantiq/dts/DGN1000B.dts b/target/linux/lantiq/dts/DGN1000B.dts index 199d3a9ec6..d5d7b98d63 100644 --- a/target/linux/lantiq/dts/DGN1000B.dts +++ b/target/linux/lantiq/dts/DGN1000B.dts @@ -7,6 +7,12 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + }; }; memory@0 { @@ -108,12 +114,12 @@ gpio-leds { compatible = "gpio-leds"; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 1 1>; default-state = "on"; }; - online { + online: online { label = "online"; gpios = <&gpio 2 1>; default-state = "on"; @@ -128,7 +134,7 @@ gpios = <&gpio 4 1>; default-state = "on"; }; - power { + power: power { label = "power"; gpios = <&gpio 13 1>; default-state = "on"; diff --git a/target/linux/lantiq/dts/DGN3500.dtsi b/target/linux/lantiq/dts/DGN3500.dtsi index bcb995e3a2..d8ae431cfb 100644 --- a/target/linux/lantiq/dts/DGN3500.dtsi +++ b/target/linux/lantiq/dts/DGN3500.dtsi @@ -3,6 +3,15 @@ / { chosen { bootargs-append = "root= console=ttyLTQ0,115200"; + + leds { + dsl = &dsl; + internet = &internet; + power = &power; + power2 = &power2; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -150,27 +159,27 @@ gpio-leds { compatible = "gpio-leds"; - internet { + internet: internet { label = "internet"; gpios = <&gpio 2 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpio 22 1>; }; - power { + power: power { label = "power"; gpios = <&gpio 34 1>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 39 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 51 1>; }; diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi index a9293af377..bdd759687a 100644 --- a/target/linux/lantiq/dts/EASY80920.dtsi +++ b/target/linux/lantiq/dts/EASY80920.dtsi @@ -3,6 +3,12 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + power = &power; + usb = &usb1; + usb2 = &usb2; + }; }; memory@0 { @@ -293,7 +299,7 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&stp 9 0>; default-state = "on"; @@ -314,11 +320,11 @@ label = "fxo"; gpios = <&stp 19 0>; }; - usb1 { + usb1: usb1 { label = "usb1"; gpios = <&stp 18 0>; }; - usb2 { + usb2: usb2 { label = "usb2"; gpios = <&stp 15 0>; }; diff --git a/target/linux/lantiq/dts/FRITZ3370.dts b/target/linux/lantiq/dts/FRITZ3370.dts index 91eb7b60b7..a652b9b1bb 100644 --- a/target/linux/lantiq/dts/FRITZ3370.dts +++ b/target/linux/lantiq/dts/FRITZ3370.dts @@ -7,6 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 ubi.mtd=1,512 root=/dev/mtdblock9"; + + leds { + dsl = &dsl; + internet = &info_green; + power = &power; + power2 = &power2; + wifi = &wifi; + }; }; memory@0 { @@ -235,11 +243,11 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 32 1>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 33 1>; }; @@ -247,11 +255,11 @@ label = "info_red"; gpios = <&gpio 34 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 35 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 36 1>; }; @@ -259,7 +267,7 @@ label = "lan"; gpios = <&gpio 38 1>; }; - info_green { + info_green: info_green { label = "info_green"; gpios = <&gpio 47 1>; }; diff --git a/target/linux/lantiq/dts/FRITZ7320.dts b/target/linux/lantiq/dts/FRITZ7320.dts index 13845751e7..b5aa5e86bd 100644 --- a/target/linux/lantiq/dts/FRITZ7320.dts +++ b/target/linux/lantiq/dts/FRITZ7320.dts @@ -7,6 +7,13 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &power; + internet = &online; + power = &power; + wifi = &wlan; + }; }; memory@0 { @@ -110,7 +117,7 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 44 1>; }; @@ -122,11 +129,11 @@ label = "dect"; gpios = <&gpio 38 1>; }; - wlan { + wlan: wlan { label = "wlan"; gpios = <&gpio 37 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 35 1>; }; diff --git a/target/linux/lantiq/dts/GR7000.dts b/target/linux/lantiq/dts/GR7000.dts index fcc27ebacf..9f3ba65f1b 100644 --- a/target/linux/lantiq/dts/GR7000.dts +++ b/target/linux/lantiq/dts/GR7000.dts @@ -7,6 +7,13 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + internet = &internet; + power2 = &power2; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -110,11 +117,11 @@ gpio-leds { compatible = "gpio-leds"; - power2 { + power2: power2 { label = "power2"; gpios = <&stp 4 0>; }; - internet { + internet: internet { label = "internet"; gpios = <&stp 2 1>; default-state = "off"; @@ -123,11 +130,11 @@ label = "internet2"; gpios = <&stp 3 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&stp 10 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&stp 15 1>; }; diff --git a/target/linux/lantiq/dts/H201L.dts b/target/linux/lantiq/dts/H201L.dts index 5cb5612a37..1f1de0187a 100644 --- a/target/linux/lantiq/dts/H201L.dts +++ b/target/linux/lantiq/dts/H201L.dts @@ -7,6 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -85,16 +93,16 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 19 1>; default-state = "on"; }; - online { + online: online { label = "online"; gpios = <&gpio 37 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 1>; }; @@ -106,11 +114,11 @@ label = "wps"; gpios = <&gpio 22 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 6 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpio 14 1>; }; diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts index bb9193eb1f..3193c3954c 100644 --- a/target/linux/lantiq/dts/P2601HNFX.dts +++ b/target/linux/lantiq/dts/P2601HNFX.dts @@ -7,6 +7,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + power2 = &power2; + wifi = &wifi; + }; }; memory@0 { @@ -135,16 +143,16 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&stp 11 1>; default-state = "on"; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 29 1>; }; - online { + online: online { label = "online"; gpios = <&stp 13 1>; }; @@ -152,7 +160,7 @@ label = "online2"; gpios = <&stp 12 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&stp 14 1>; }; @@ -164,7 +172,7 @@ label = "phone2"; gpios = <&stp 8 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&stp 15 1>; }; diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi index 8c10acc994..a03129f59e 100644 --- a/target/linux/lantiq/dts/P2812HNUFX.dtsi +++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi @@ -3,6 +3,16 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &internet_green; + power = &power; + power2 = &power2; + usb = &usb1; + usb2 = &usb2; + wifi = &wireless_green; + }; }; memory@0 { @@ -267,11 +277,11 @@ label = "internet_red"; gpios = <&stp 16 1>; }; - internet_green { + internet_green: internet_green { label = "internet_green"; /* green */ gpios = <&stp 17 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&stp 18 1>; }; @@ -283,23 +293,23 @@ label = "wireless_red"; gpios = <&stp 20 1>; }; - wireless_green { /* green */ + wireless_green: wireless_green { /* green */ label = "wireless_green"; gpios = <&stp 21 1>; }; - power { /* red */ + power: power { /* red */ label = "power"; gpios = <&stp 22 1>; }; - power2 { /* green */ + power2: power2 { /* green */ label = "power2"; gpios = <&stp 23 1>; }; - usb1 { /* green */ + usb1: usb1 { /* green */ label = "usb1"; gpios = <&gpio 38 1>; }; - usb2 { /* green */ + usb2: usb2 { /* green */ label = "usb2"; gpios = <&gpio 44 1>; }; diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi index 46ff11f547..3d9e59e2ef 100644 --- a/target/linux/lantiq/dts/TDW89X0.dtsi +++ b/target/linux/lantiq/dts/TDW89X0.dtsi @@ -3,6 +3,15 @@ / { chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &internet; + /* the power led can't be controlled, use the wps led instead */ + power = &wps; + usb = &usb0; + usb2 = &usb2; + }; }; memory@0 { @@ -214,23 +223,23 @@ gpio-leds { compatible = "gpio-leds"; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 4 0>; }; - internet { + internet: internet { label = "internet"; gpios = <&gpio 5 0>; }; - usb0 { + usb0: usb0 { label = "usb"; gpios = <&gpio 19 0>; }; - usb2 { + usb2: usb2 { label = "usb2"; gpios = <&gpio 20 0>; }; - wps { + wps: wps { label = "wps"; gpios = <&gpio 37 0>; }; diff --git a/target/linux/lantiq/dts/VG3503J.dtsi b/target/linux/lantiq/dts/VG3503J.dtsi index e9a3c70b29..50ab0b64af 100644 --- a/target/linux/lantiq/dts/VG3503J.dtsi +++ b/target/linux/lantiq/dts/VG3503J.dtsi @@ -5,6 +5,12 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + power = &power; + power2 = &power2; + }; }; memory@0 { @@ -148,15 +154,15 @@ gpio-leds { compatible = "gpio-leds"; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 14 1>; }; - dsl { + dsl: dsl { label = "bt:green:dsl"; gpios = <&gpio 19 1>; }; - power { + power: power { label = "power"; gpios = <&gpio 28 1>; }; diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi index 077ed2372a..3cc2e1d62e 100644 --- a/target/linux/lantiq/dts/VGV7510KW22.dtsi +++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi @@ -5,6 +5,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &internet_green; + power = &power; + power2 = &power2; + wifi = &wifi; + }; }; memory@0 { @@ -208,7 +216,7 @@ gpio-leds { compatible = "gpio-leds"; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 2 1>; }; @@ -223,7 +231,7 @@ gpios = <&gpio 12 1>; }; - power { + power: power { label = "power"; /* green */ gpios = <&gpio 14 1>; }; @@ -233,17 +241,17 @@ gpios = <&gpio 15 1>; }; - internet_green { + internet_green: internet_green { label = "internet_green"; gpios = <&gpio 19 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 20 1>; }; - power2 { + power2: power2 { label = "power2"; /* red */ gpios = <&gpio 28 1>; }; diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi index 7a7fddb8ed..3ba3ac54cd 100644 --- a/target/linux/lantiq/dts/VGV7519.dtsi +++ b/target/linux/lantiq/dts/VGV7519.dtsi @@ -6,6 +6,14 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &broadband_yellow; + internet = &internet_yellow; + power = &power; + power2 = &power2; + wifi = &wireless_yellow; + }; }; memory@0 { @@ -279,7 +287,7 @@ label = "tv"; gpios = <&stp 6 1>; }; - internet_yellow { /* yellow */ + internet_yellow: internet_yellow { /* yellow */ label = "internet_yellow"; gpios = <&stp 7 1>; }; @@ -291,7 +299,7 @@ label = "broadband_red"; gpios = <&stp 9 1>; }; - broadband_yellow { /* yellow */ + broadband_yellow: broadband_yellow { /* yellow */ label = "broadband_yellow"; gpios = <&stp 10 1>; }; @@ -303,15 +311,15 @@ label = "wireless_red"; gpios = <&stp 12 1>; }; - wireless_yellow { /* yellow */ + wireless_yellow: wireless_yellow { /* yellow */ label = "wireless_yellow"; gpios = <&stp 13 1>; }; - power2 { /* yellow */ + power2: power2 { /* yellow */ label = "power2"; gpios = <&stp 14 1>; }; - power { /* red */ + power: power { /* red */ label = "power"; gpios = <&stp 15 1>; default-state = "on"; diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts index 60a7508917..dc23032ff2 100644 --- a/target/linux/lantiq/dts/WBMR.dts +++ b/target/linux/lantiq/dts/WBMR.dts @@ -7,6 +7,15 @@ chosen { bootargs = "console=ttyLTQ0,115200 init=/etc/preinit"; + + leds { + dsl = &dsl; + internet = &online; + power = &power; + power2 = &power2; + usb = &usb; + wifi = &wifi; + }; }; memory@0 { @@ -127,11 +136,11 @@ gpio-leds { compatible = "gpio-leds"; - power { + power: power { label = "power"; gpios = <&gpio 1 1>; }; - power2 { + power2: power2 { label = "power2"; gpios = <&gpio 5 1>; }; @@ -139,15 +148,15 @@ label = "security"; gpios = <&gpio 14 1>; }; - wifi { + wifi: wifi { label = "wifi"; gpios = <&gpio 15 1>; }; - dsl { + dsl: dsl { label = "dsl"; gpios = <&gpio 16 1>; }; - online { + online: online { label = "online"; gpios = <&gpio 17 1>; }; @@ -159,7 +168,7 @@ label = "movie"; gpios = <&gpio 20 1>; }; - usb { + usb: usb { label = "usb"; gpios = <&gpio 28 1>; default-state = "on"; -- 2.25.1