[OpenWrt-Devel] [PATCH 12/12] lantiq: use soc:colour:function led naming scheme
Mathias Kresin
openwrt at kresin.me
Wed Dec 23 11:29:19 EST 2015
The leds of the following boards are not renamed due to lack of
manuals/informations:
- ARV7519PW
- ARV7510PW22
- ARV4510PW
The leds of the ARV4518PWR01* boards are unchanged, since the leds doesn't
match the leds from the manual or pictures (e.g. there shouldn't be a wps led).
Signed-off-by: Mathias Kresin <openwrt at kresin.me>
---
target/linux/lantiq/base-files/etc/board.d/01_leds | 6 +-
target/linux/lantiq/dts/ARV4519PW.dts | 50 ++++++++--------
target/linux/lantiq/dts/ARV4520PW.dts | 40 +++++++------
target/linux/lantiq/dts/ARV4525PW.dts | 10 ++--
target/linux/lantiq/dts/ARV452CQW.dts | 48 ++++++++-------
target/linux/lantiq/dts/ARV7518PW.dts | 44 +++++++-------
target/linux/lantiq/dts/ARV7519PW.dts | 2 +-
target/linux/lantiq/dts/ARV7519RW22.dts | 14 ++---
target/linux/lantiq/dts/ARV7525PW.dts | 24 ++++----
target/linux/lantiq/dts/ARV752DPW.dts | 38 ++++++------
target/linux/lantiq/dts/ARV752DPW22.dts | 46 +++++++-------
target/linux/lantiq/dts/ARV8539PW22.dts | 7 ++-
target/linux/lantiq/dts/DGN1000B.dts | 17 +++---
target/linux/lantiq/dts/DGN3500.dtsi | 20 ++++---
target/linux/lantiq/dts/EASY80920.dtsi | 18 +++---
target/linux/lantiq/dts/FRITZ3370.dts | 14 ++---
target/linux/lantiq/dts/FRITZ7320.dts | 18 +++---
target/linux/lantiq/dts/GR7000.dts | 14 ++---
target/linux/lantiq/dts/H201L.dts | 14 ++---
target/linux/lantiq/dts/P2601HNFX.dts | 28 ++++-----
target/linux/lantiq/dts/P2812HNUFX.dtsi | 64 ++++++++++----------
target/linux/lantiq/dts/TDW8980.dts | 2 +-
target/linux/lantiq/dts/TDW89X0.dtsi | 14 +++--
target/linux/lantiq/dts/VG3503J.dtsi | 16 ++---
target/linux/lantiq/dts/VGV7510KW22.dtsi | 30 +++++-----
target/linux/lantiq/dts/VGV7519.dtsi | 70 +++++++++++-----------
target/linux/lantiq/dts/WBMR.dts | 32 +++++-----
27 files changed, 362 insertions(+), 338 deletions(-)
diff --git a/target/linux/lantiq/base-files/etc/board.d/01_leds b/target/linux/lantiq/base-files/etc/board.d/01_leds
index ac9e14e..08200e3 100755
--- a/target/linux/lantiq/base-files/etc/board.d/01_leds
+++ b/target/linux/lantiq/base-files/etc/board.d/01_leds
@@ -31,13 +31,13 @@ BTHOMEHUBV5A)
ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0"
;;
VGV7510KW22)
- ucidef_set_led_wlan "wifi" "wifi" "wifi" "phy0radio"
+ ucidef_set_led_wlan "wifi" "wifi" "soc:green:wlan" "phy0radio"
;;
VGV7519)
- ucidef_set_led_wlan "wifi" "wifi" "wireless_yellow" "phy0radio"
+ ucidef_set_led_wlan "wifi" "wifi" "soc:green:wireless" "phy0radio"
;;
P2812HNUF*)
- ucidef_set_led_wlan "wifi" "wifi" "wireless_green" "phy0radio"
+ ucidef_set_led_wlan "wifi" "wifi" "soc:green:wlan" "phy0radio"
;;
ARV7519RW22)
ucidef_set_led_netdev "lan" "lan" "lan" "eth0.1"
diff --git a/target/linux/lantiq/dts/ARV4519PW.dts b/target/linux/lantiq/dts/ARV4519PW.dts
index be65337..07768a4 100644
--- a/target/linux/lantiq/dts/ARV4519PW.dts
+++ b/target/linux/lantiq/dts/ARV4519PW.dts
@@ -3,18 +3,18 @@
/include/ "danube.dtsi"
/ {
- model = "ARV4519PW - Vodafone, Pirelli";
+ model = "ARV4519PW - Vodafone Netfaster IAD 2, Pirelli P.RG A4201G";
chosen {
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power2;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
dsl = &dsl;
- internet = &online;
+ internet = &internet_green;
usb = &usb;
wifi = &wifi;
};
@@ -129,61 +129,61 @@
gpio-leds {
compatible = "gpio-leds";
- power: power {
- label = "power";
+ power_green: power {
+ label = "soc:green:power";
gpios = <&gpio 2 1>;
default-state = "keep";
};
- power2: power2 {
- label = "power2";
+ power_red: power2 {
+ label = "soc:red:power";
gpios = <&gpio 7 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 6 1>;
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 4 1>;
};
- online: online {
- label = "online";
+ internet_green: online {
+ label = "soc:green:internet";
gpios = <&gpio 5 1>;
};
online2 {
- label = "online2";
+ label = "soc:red:internet";
gpios = <&gpio 8 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&gpio 19 1>;
};
voip {
- label = "voip";
+ label = "soc:green:voip";
gpios = <&gpiomm 0 1>;
};
fxs1 {
- label = "fxs1";
+ label = "soc:green:phone1";
gpios = <&gpiomm 1 1>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:green:phone2";
gpios = <&gpiomm 2 1>;
};
fxo {
- label = "fxo";
+ label = "soc:green:line";
gpios = <&gpiomm 3 1>;
};
- wps {
- label = "wps";
- gpios = <&gpiomm 5 1>;
- };
wps2 {
- label = "wps2";
+ label = "soc:green:wps";
gpios = <&gpiomm 4 1>;
};
+ wps {
+ label = "soc:orange:wps";
+ gpios = <&gpiomm 5 1>;
+ };
wps3 {
- label = "wps3";
+ label = "soc:red:wps";
gpios = <&gpiomm 6 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV4520PW.dts b/target/linux/lantiq/dts/ARV4520PW.dts
index d97009c..c876403 100644
--- a/target/linux/lantiq/dts/ARV4520PW.dts
+++ b/target/linux/lantiq/dts/ARV4520PW.dts
@@ -13,8 +13,8 @@
failsafe = &power_red;
running = &power_blue;
- dsl = &adsl;
- internet = &internet;
+ dsl = &dsl;
+ internet = &internet_blue;
usb = &usb;
wifi = &wifi;
};
@@ -152,36 +152,39 @@
compatible = "gpio-leds";
power_blue: power {
- label = "power";
+ label = "soc:blue:power";
gpios = <&gpio 3 1>;
default-state = "keep";
};
- adsl: adsl {
- label = "adsl";
+ dsl: dsl {
+ label = "soc:blue:dsl";
gpios = <&gpio 4 1>;
};
- internet: internet {
- label = "internet";
+ internet_blue: internet {
+ label = "soc:blue:internet";
gpios = <&gpio 5 1>;
};
power_red: power2 {
- label = "power2";
+ label = "soc:red:power";
gpios = <&gpio 6 1>;
};
wps {
- label = "wps";
+ label = "soc:yellow:wps";
gpios = <&gpio 7 1>;
};
wps2 {
- label = "wps2";
+ label = "soc:red:wps";
gpios = <&gpio 9 1>;
};
+ /*
+ wps green is missing
+ */
fxs1 {
- label = "fxs1";
+ label = "soc:blue:telefon1";
gpios = <&gpiomm 0 1>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:blue:telefon2";
gpios = <&gpiomm 1 1>;
};
isdn {
@@ -189,24 +192,27 @@
gpios = <&gpiomm 2 1>;
};
fxo {
- label = "fxo";
+ label = "soc:blue:line";
gpios = <&gpiomm 3 1>;
};
voice {
- label = "voice";
+ label = "soc:blue:sprache";
gpios = <&gpiomm 4 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:blue:usb";
gpios = <&gpiomm 5 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:blue:wifi";
gpios = <&gpiomm 6 1>;
};
internet2 {
- label = "internet2";
+ label = "soc:red:internet";
gpios = <&gpiomm 9 1>;
};
+ /*
+ info is missing
+ */
};
};
diff --git a/target/linux/lantiq/dts/ARV4525PW.dts b/target/linux/lantiq/dts/ARV4525PW.dts
index 2fe3425..f14512e 100644
--- a/target/linux/lantiq/dts/ARV4525PW.dts
+++ b/target/linux/lantiq/dts/ARV4525PW.dts
@@ -141,23 +141,23 @@
gpio-leds {
compatible = "gpio-leds";
fxo {
- label = "fxo";
+ label = "soc:green:festnetz";
gpios = <&gpio 4 1>;
};
fxs {
- label = "fxs";
+ label = "soc:green:internet";
gpios = <&gpio 5 1>;
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:t-dsl";
gpios = <&gpio 6 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 8 1>;
};
online: online {
- label = "online";
+ label = "soc:green:online";
gpios = <&gpio 9 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV452CQW.dts b/target/linux/lantiq/dts/ARV452CQW.dts
index 1905a08..1e6221e 100644
--- a/target/linux/lantiq/dts/ARV452CQW.dts
+++ b/target/linux/lantiq/dts/ARV452CQW.dts
@@ -9,11 +9,11 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power0;
- failsafe = &power1;
- running = &power0;
+ boot = &power_blue;
+ failsafe = &power_red;
+ running = &power_blue;
- internet = &dsl;
+ internet = &dsl_blue;
usb = &usb;
wifi = &wifi;
};
@@ -165,65 +165,69 @@
gpio-leds {
compatible = "gpio-leds";
- power0: power0 {
- label = "power0";
+ power_blue: power0 {
+ label = "soc:blue:power";
gpios = <&gpio 3 1>;
default-state = "keep";
};
- dsl: dsl {
- label = "dsl";
+ dsl_blue: dsl {
+ label = "soc:blue:dsl";
gpios = <&gpio 4 1>;
};
isdn {
- label = "isdn";
+ label = "soc:blue:isdn";
gpios = <&gpio 5 1>;
};
- power1: power1 {
- label = "power1";
+ power_red: power1 {
+ label = "soc:red:power";
gpios = <&gpio 6 1>;
};
wps {
- label = "wps";
+ label = "soc:blue:wps";
gpios = <&gpio 7 1>;
};
wps1 {
- label = "wps1";
+ label = "soc:yellow:wps";
gpios = <&gpio 9 1>;
};
fxs1 {
- label = "fxs1";
+ label = "soc:blue:telefon1";
gpios = <&gpiomm 0 1>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:blue:telefon2";
gpios = <&gpiomm 1 1>;
};
wps2 {
- label = "wps2";
+ label = "soc:red:wps";
gpios = <&gpiomm 2 1>;
};
fxo {
- label = "fxo";
+ label = "soc:blue:line";
gpios = <&gpiomm 3 1>;
};
voice {
- label = "voice";
+ label = "soc:blue:sprache";
gpios = <&gpiomm 4 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:blue:usb";
gpios = <&gpiomm 5 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:blue:wlan";
gpios = <&gpiomm 6 1>;
};
+ /*
+ internet blue and internet red are missing
+ dsl2 and dsl3 are not referenced in manual
+ */
dsl2 {
- label = "dsl2";
+ label = "soc:yellow:dsl";
gpios = <&gpiomm 8 1>;
};
dsl3 {
- label = "dsl3";
+ label = "soc:red:dsl";
gpios = <&gpiomm 9 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV7518PW.dts b/target/linux/lantiq/dts/ARV7518PW.dts
index 31cc259..0250b7b 100644
--- a/target/linux/lantiq/dts/ARV7518PW.dts
+++ b/target/linux/lantiq/dts/ARV7518PW.dts
@@ -9,12 +9,12 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power2;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
dsl = &dsl;
- internet = &online;
+ internet = &online_green;
usb = &usb;
wifi = &wifi;
};
@@ -169,61 +169,61 @@
gpio-leds {
compatible = "gpio-leds";
- power: power {
- label = "power";
+ power_green: power {
+ label = "soc:green:power";
gpios = <&gpio 2 1>;
default-state = "keep";
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 4 1>;
};
- online: online {
- label = "online";
+ online_green: online {
+ label = "soc:green:internet";
gpios = <&gpio 5 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 6 1>;
};
- power2: power2 {
- label = "power2";
+ power_red: power2 {
+ label = "soc:red:power";
gpios = <&gpio 7 1>;
};
online2 {
- label = "online2";
+ label = "soc:red:internet";
gpios = <&gpio 8 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&gpio 19 1>;
};
voice {
- label = "voice";
+ label = "soc:green:voip";
gpios = <&gpiomm 0 1>;
};
fxs1 {
- label = "fxs1";
+ label = "soc:green:phone1";
gpios = <&gpiomm 1 1>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:green:phone2";
gpios = <&gpiomm 2 1>;
};
- fxo {
- label = "fxo";
+ unlabeled {
+ label = "soc:amber:unlabeled";
gpios = <&gpiomm 3 1>;
};
wps {
- label = "wps";
+ label = "soc:amber:wps";
gpios = <&gpiomm 4 1>;
};
wps2 {
- label = "wps2";
+ label = "soc:green:wps";
gpios = <&gpiomm 5 1>;
};
wps3 {
- label = "wps3";
+ label = "soc:red:wps";
gpios = <&gpiomm 6 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV7519PW.dts b/target/linux/lantiq/dts/ARV7519PW.dts
index 6daa8b1..c60f04e 100644
--- a/target/linux/lantiq/dts/ARV7519PW.dts
+++ b/target/linux/lantiq/dts/ARV7519PW.dts
@@ -118,7 +118,7 @@
lantiq,external-clock;
gpio-reset = <&gpio 21 0>;
req-mask = <0xf>;
- };
+ };
};
ralink_eep {
diff --git a/target/linux/lantiq/dts/ARV7519RW22.dts b/target/linux/lantiq/dts/ARV7519RW22.dts
index 872af54..1c64afe 100644
--- a/target/linux/lantiq/dts/ARV7519RW22.dts
+++ b/target/linux/lantiq/dts/ARV7519RW22.dts
@@ -206,32 +206,32 @@
compatible = "gpio-leds";
lan_green {
- label = "lan";
+ label = "soc:green:lan";
gpios = <&gpio 2 1>;
};
internet_red {
- label = "internet_red";
+ label = "soc:red:internet";
gpios = <&gpio 10 1>;
};
power_green: power_green {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 14 1>;
default-state = "keep";
};
alarm_blue {
- label = "alarm";
+ label = "soc:blue:alarm";
gpios = <&gpio 15 1>;
};
internet_orange {
- label = "internet_orange";
+ label = "soc:orange:internet";
gpios = <&gpio 19 1>;
};
internet_green: internet_green {
- label = "internet_green";
+ label = "soc:green:internet";
gpios = <&gpio 28 1>;
};
voice_green {
- label = "voice";
+ label = "soc:green:voice";
gpios = <&gpio 29 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV7525PW.dts b/target/linux/lantiq/dts/ARV7525PW.dts
index 922a2c8..c1bdb51 100644
--- a/target/linux/lantiq/dts/ARV7525PW.dts
+++ b/target/linux/lantiq/dts/ARV7525PW.dts
@@ -9,11 +9,11 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power1;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
- dsl = &power;
+ dsl = &power_green;
internet = &online;
wifi = &wifi;
};
@@ -124,29 +124,29 @@
gpio-leds {
compatible = "gpio-leds";
- power: power {
- label = "power";
+ power_green: power {
+ label = "soc:green:power";
gpios = <&gpio 3 1>;
default-state = "keep";
};
- power1: power1 {
- label = "power1";
+ power_red: power1 {
+ label = "soc:red:power";
gpios = <&gpio 4 1>;
};
online: online {
- label = "online";
+ label = "soc:green:online";
gpios = <&gpio 5 1>;
};
voice {
- label = "voice";
+ label = "soc:green:telefonie";
gpios = <&gpio 6 1>;
};
voice2 {
- label = "voice2";
+ label = "soc:red:telefonie";
gpios = <&gpio 8 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 9 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV752DPW.dts b/target/linux/lantiq/dts/ARV752DPW.dts
index d262ed1..3004b4a 100644
--- a/target/linux/lantiq/dts/ARV752DPW.dts
+++ b/target/linux/lantiq/dts/ARV752DPW.dts
@@ -9,11 +9,11 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power1;
- running = &power;
+ boot = &power_red;
+ failsafe = &power_blue;
+ running = &power_red;
- internet = &internet;
+ internet = &internet_red;
wifi = &wifi;
};
};
@@ -179,53 +179,53 @@
gpio-leds {
compatible = "gpio-leds";
- power1: power1 {
- label = "power1";
+ power_blue: power1 {
+ label = "soc:blue:power";
gpios = <&gpio 3 1>;
};
- internet: internet {
- label = "internet";
+ internet_red: internet {
+ label = "soc:red:internet";
gpios = <&gpio 4 1>;
};
message {
- label = "message";
+ label = "soc:red:message";
gpios = <&gpio 5 1>;
};
- power: power {
- label = "power";
+ power_red: power {
+ label = "soc:red:power";
gpios = <&gpio 6 1>;
default-state = "keep";
};
voice1 {
- label = "voice1";
+ label = "soc:red:voice";
gpios = <&gpio 8 1>;
};
microphone {
- label = "umts";
+ label = "soc:red:umts";
gpios = <&gpiomm 3 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:red:wifi";
gpios = <&gpiomm 4 1>;
};
fxs1 {
- label = "fxs1";
+ label = "soc:green:tae-n";
gpios = <&gpiomm 5 1>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:green:tae-u";
gpios = <&gpiomm 6 1>;
};
fxo {
- label = "fxo";
+ label = "soc:green:isdn";
gpios = <&gpiomm 7 1>;
};
internet2 {
- label = "internet2";
+ label = "soc:blue:internet";
gpios = <&gpiomm 8 1>;
};
voice2 {
- label = "voice2";
+ label = "soc:blue:voice";
gpios = <&gpiomm 9 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV752DPW22.dts b/target/linux/lantiq/dts/ARV752DPW22.dts
index 3635693..87f24c5 100644
--- a/target/linux/lantiq/dts/ARV752DPW22.dts
+++ b/target/linux/lantiq/dts/ARV752DPW22.dts
@@ -9,11 +9,11 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power1;
- running = &power;
+ boot = &power_red;
+ failsafe = &power_blue;
+ running = &power_red;
- internet = &internet;
+ internet = &internet_red;
wifi = &wifi;
};
};
@@ -183,69 +183,69 @@
gpio-leds {
compatible = "gpio-leds";
- power1: power1 {
- label = "power1";
+ power_blue: power1 {
+ label = "soc:blue:power";
gpios = <&gpio 3 1>;
};
- internet: internet {
- label = "internet";
+ internet_red: internet {
+ label = "soc:red:internet";
gpios = <&gpio 4 1>;
};
message {
- label = "message";
+ label = "soc:red:message";
gpios = <&gpio 5 1>;
};
- power: power {
- label = "power";
+ power_red: power {
+ label = "soc:red:power";
gpios = <&gpio 6 1>;
default-state = "keep";
};
voice1 {
- label = "voice1";
+ label = "soc:red:voice";
gpios = <&gpio 8 1>;
};
microphone {
- label = "umts";
+ label = "soc:red:umts";
gpios = <&gpiomm 3 1>;
};
wifi: wifi {
- label = "wifi_rt";
+ label = "soc:red:wifi";
gpios = <&gpiomm 4 1>;
};
fxs1 {
- label = "fxs1";
+ label = "soc:green:tae-n";
gpios = <&gpiomm 5 1>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:green:tae-u";
gpios = <&gpiomm 6 1>;
};
fxo {
- label = "fxo";
+ label = "soc:green:isdn";
gpios = <&gpiomm 7 1>;
};
internet2 {
- label = "internet2";
+ label = "soc:blue:internet";
gpios = <&gpiomm 8 1>;
};
voice2 {
- label = "voice2";
+ label = "soc:blue:voice";
gpios = <&gpiomm 9 1>;
};
eth1 {
- label = "eth1";
+ label = "soc:green:lan1";
gpios = <&gpiomm 11 1>;
};
eth2 {
- label = "eth2";
+ label = "soc:green:lan2";
gpios = <&gpiomm 12 1>;
};
eth3 {
- label = "eth3";
+ label = "soc:green:lan3";
gpios = <&gpiomm 13 1>;
};
eth4 {
- label = "eth4";
+ label = "soc:green:lan4";
gpios = <&gpiomm 14 1>;
};
};
diff --git a/target/linux/lantiq/dts/ARV8539PW22.dts b/target/linux/lantiq/dts/ARV8539PW22.dts
index c78178b..661cc73 100644
--- a/target/linux/lantiq/dts/ARV8539PW22.dts
+++ b/target/linux/lantiq/dts/ARV8539PW22.dts
@@ -147,7 +147,7 @@
compatible = "gpio-leds";
power_green: power-green {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 24 1>;
default-state = "keep";
};
@@ -167,9 +167,12 @@
};
wireless_green: wireless-green {
- label = "soc:green:wireless";
+ label = "soc:green:wlan";
gpios = <&gpio 8 1>;
};
+ /*
+ telefonie green is missing
+ */
};
};
diff --git a/target/linux/lantiq/dts/DGN1000B.dts b/target/linux/lantiq/dts/DGN1000B.dts
index 7c4f4a5..e634fdd 100644
--- a/target/linux/lantiq/dts/DGN1000B.dts
+++ b/target/linux/lantiq/dts/DGN1000B.dts
@@ -14,7 +14,7 @@
running = &power;
dsl = &dsl;
- internet = &online;
+ internet = &online_green;
};
};
@@ -118,29 +118,32 @@
gpio-leds {
compatible = "gpio-leds";
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 1 1>;
default-state = "on";
};
- online: online {
- label = "online";
+ online_green: online {
+ label = "soc:green:online";
gpios = <&gpio 2 1>;
default-state = "on";
};
online2 {
- label = "online2";
+ label = "soc:red:online";
gpios = <&gpio 3 1>;
default-state = "on";
};
wps {
- label = "wps";
+ label = "soc:green:wps";
gpios = <&gpio 4 1>;
default-state = "on";
};
power: power {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 13 1>;
default-state = "keep";
};
+ /*
+ power red is missing
+ */
};
};
diff --git a/target/linux/lantiq/dts/DGN3500.dtsi b/target/linux/lantiq/dts/DGN3500.dtsi
index b9459c5..edef22a 100644
--- a/target/linux/lantiq/dts/DGN3500.dtsi
+++ b/target/linux/lantiq/dts/DGN3500.dtsi
@@ -162,32 +162,38 @@
gpio-leds {
compatible = "gpio-leds";
internet: internet {
- label = "internet";
+ label = "soc:green:internet";
gpios = <&gpio 2 1>;
};
+ /*
+ internet red is missing
+ */
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 4 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&gpio 22 1>;
};
power_green: power {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 34 1>;
default-state = "keep";
};
power_red: power2 {
- label = "power2";
+ label = "soc:red:power";
gpios = <&gpio 39 1>;
};
+ /*
+ power amber is missing
+ */
wifi: wifi {
- label = "wifi";
+ label = "soc:blue:wireless";
gpios = <&gpio 51 1>;
};
wps {
- label = "wps";
+ label = "soc:green:wps";
gpios = <&gpio 52 1>;
};
};
diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi
index 14a020f..c073993 100644
--- a/target/linux/lantiq/dts/EASY80920.dtsi
+++ b/target/linux/lantiq/dts/EASY80920.dtsi
@@ -303,40 +303,40 @@
compatible = "gpio-leds";
power: power {
- label = "power";
+ label = "soc:green:power";
gpios = <&stp 9 0>;
default-state = "keep";
};
warning {
- label = "warning";
+ label = "soc:green:warning";
gpios = <&stp 22 0>;
};
fxs1 {
- label = "fxs1";
+ label = "soc:green:fxs1";
gpios = <&stp 21 0>;
};
fxs2 {
- label = "fxs2";
+ label = "soc:green:fxs2";
gpios = <&stp 20 0>;
};
fxo {
- label = "fxo";
+ label = "soc:green:fxo";
gpios = <&stp 19 0>;
};
usb1: usb1 {
- label = "usb1";
+ label = "soc:green:usb1";
gpios = <&stp 18 0>;
};
usb2: usb2 {
- label = "usb2";
+ label = "soc:green:usb2";
gpios = <&stp 15 0>;
};
sd {
- label = "sd";
+ label = "soc:green:sd";
gpios = <&stp 14 0>;
};
wps {
- label = "wps";
+ label = "soc:green:wps";
gpios = <&stp 12 0>;
};
};
diff --git a/target/linux/lantiq/dts/FRITZ3370.dts b/target/linux/lantiq/dts/FRITZ3370.dts
index 216f5ff..d3f24bd 100644
--- a/target/linux/lantiq/dts/FRITZ3370.dts
+++ b/target/linux/lantiq/dts/FRITZ3370.dts
@@ -246,32 +246,32 @@
compatible = "gpio-leds";
power_green: power {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 32 1>;
default-state = "keep";
};
power_red: power2 {
- label = "power2";
+ label = "soc:red:power";
gpios = <&gpio 33 1>;
};
info_red {
- label = "info_red";
+ label = "soc:red:info";
gpios = <&gpio 34 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 35 1>;
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 36 1>;
};
lan {
- label = "lan";
+ label = "soc:green:lan";
gpios = <&gpio 38 1>;
};
info_green: info_green {
- label = "info_green";
+ label = "soc:green:info";
gpios = <&gpio 47 1>;
};
};
diff --git a/target/linux/lantiq/dts/FRITZ7320.dts b/target/linux/lantiq/dts/FRITZ7320.dts
index 0a307b9..d494fdf 100644
--- a/target/linux/lantiq/dts/FRITZ7320.dts
+++ b/target/linux/lantiq/dts/FRITZ7320.dts
@@ -13,8 +13,8 @@
failsafe = &power;
running = &power;
+ internet = &info_green;
dsl = &power;
- internet = &online;
wifi = &wlan;
};
};
@@ -121,28 +121,28 @@
gpio-leds {
compatible = "gpio-leds";
power: power {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 44 1>;
default-state = "keep";
};
voice {
- label = "voice";
+ label = "soc:green:fon";
gpios = <&gpio 47 1>;
};
dect {
- label = "dect";
+ label = "soc:green:dect";
gpios = <&gpio 38 1>;
};
wlan: wlan {
- label = "wlan";
+ label = "soc:green:wlan";
gpios = <&gpio 37 1>;
};
- online: online {
- label = "online";
+ info_green: info_green {
+ label = "soc:green:info";
gpios = <&gpio 35 1>;
};
- online2 {
- label = "online2";
+ info_red {
+ label = "soc:red:info";
gpios = <&gpio 45 1>;
};
};
diff --git a/target/linux/lantiq/dts/GR7000.dts b/target/linux/lantiq/dts/GR7000.dts
index b6c2c0b..c347976 100644
--- a/target/linux/lantiq/dts/GR7000.dts
+++ b/target/linux/lantiq/dts/GR7000.dts
@@ -12,7 +12,7 @@
boot = &power_red;
failsafe = &power_red;
- internet = &internet;
+ internet = &internet_green;
usb = &usb;
wifi = &wifi;
};
@@ -120,23 +120,23 @@
compatible = "gpio-leds";
power_red: power2 {
- label = "power2";
+ label = "soc:red:power";
gpios = <&stp 4 0>;
};
- internet: internet {
- label = "internet";
+ internet_green: internet {
+ label = "soc:green:internet";
gpios = <&stp 2 1>;
};
internet2 {
- label = "internet2";
+ label = "soc:red:internet";
gpios = <&stp 3 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&stp 10 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wireless";
gpios = <&stp 15 1>;
};
};
diff --git a/target/linux/lantiq/dts/H201L.dts b/target/linux/lantiq/dts/H201L.dts
index e4da1e5..af1fcc5 100644
--- a/target/linux/lantiq/dts/H201L.dts
+++ b/target/linux/lantiq/dts/H201L.dts
@@ -97,32 +97,32 @@
compatible = "gpio-leds";
power_green: power {
- label = "power";
+ label = "soc:green:power";
gpios = <&gpio 19 1>;
default-state = "keep";
};
online: online {
- label = "online";
+ label = "soc:green:internet";
gpios = <&gpio 37 1>;
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 4 1>;
};
phone {
- label = "phone";
+ label = "soc:green:phone";
gpios = <&gpio 39 1>;
};
wps {
- label = "wps";
+ label = "soc:green:wps";
gpios = <&gpio 22 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 6 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&gpio 14 1>;
};
};
diff --git a/target/linux/lantiq/dts/P2601HNFX.dts b/target/linux/lantiq/dts/P2601HNFX.dts
index 58e61d1..d6344f6 100644
--- a/target/linux/lantiq/dts/P2601HNFX.dts
+++ b/target/linux/lantiq/dts/P2601HNFX.dts
@@ -9,9 +9,9 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power2;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
dsl = &dsl;
internet = &online;
@@ -145,41 +145,41 @@
gpio-leds {
compatible = "gpio-leds";
- power: power {
- label = "power";
+ power_green: power {
+ label = "soc:green:power";
gpios = <&stp 11 1>;
default-state = "keep";
};
- power2: power2 {
- label = "power2";
+ power_red: power2 {
+ label = "soc:red:power";
gpios = <&gpio 29 1>;
};
online: online {
- label = "online";
+ label = "soc:green:internet";
gpios = <&stp 13 1>;
};
online2 {
- label = "online2";
+ label = "soc:red:internet";
gpios = <&stp 12 1>;
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&stp 14 1>;
};
phone {
- label = "phone";
+ label = "soc:green:phone";
gpios = <&stp 9 1>;
};
phone2 {
- label = "phone2";
+ label = "soc:orange:phone";
gpios = <&stp 8 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wireless";
gpios = <&stp 15 1>;
};
wifi2 {
- label = "wifi2";
+ label = "soc:orange:wireless";
gpios = <&stp 10 1>;
};
};
diff --git a/target/linux/lantiq/dts/P2812HNUFX.dtsi b/target/linux/lantiq/dts/P2812HNUFX.dtsi
index 7199d9a..18b7628 100644
--- a/target/linux/lantiq/dts/P2812HNUFX.dtsi
+++ b/target/linux/lantiq/dts/P2812HNUFX.dtsi
@@ -5,11 +5,11 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power2;
- failsafe = &power;
- running = &power2;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
- dsl = &dsl;
+ dsl = &dsl_green;
internet = &internet_green;
usb = &usb1;
usb2 = &usb2;
@@ -40,7 +40,7 @@
compatible = "lantiq,pinctrl-xr9";
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
-
+
interrupt-parent = <&icu0>;
interrupts = <166 135 66 40 41 42 38>;
@@ -275,61 +275,61 @@
gpio-leds {
compatible = "gpio-leds";
- internet_red { /* red */
- label = "internet_red";
+ internet_red {
+ label = "soc:red:internet";
gpios = <&stp 16 1>;
};
internet_green: internet_green {
- label = "internet_green"; /* green */
+ label = "soc:green:internet";
gpios = <&stp 17 1>;
};
- dsl: dsl {
- label = "dsl";
+ dsl_green: dsl_green {
+ label = "soc:green:dsl";
gpios = <&stp 18 1>;
};
- dsl2 {
- label = "dsl2";
+ dsl_orange {
+ label = "soc:orange:dsl";
gpios = <&stp 19 1>;
};
- wireless_red { /* red */
- label = "wireless_red";
+ wireless_orange {
+ label = "soc:orange:wlan";
gpios = <&stp 20 1>;
};
- wireless_green: wireless_green { /* green */
- label = "wireless_green";
+ wireless_green: wireless_green {
+ label = "soc:green:wlan";
gpios = <&stp 21 1>;
};
- power: power { /* red */
- label = "power";
+ power_red: power {
+ label = "soc:red:power";
gpios = <&stp 22 1>;
};
- power2: power2 { /* green */
- label = "power2";
+ power_green: power2 {
+ label = "soc:green:power";
gpios = <&stp 23 1>;
default-state = "keep";
};
- usb1: usb1 { /* green */
- label = "usb1";
+ usb1: usb1 {
+ label = "soc:green:usb1";
gpios = <&gpio 38 1>;
};
- usb2: usb2 { /* green */
- label = "usb2";
+ usb2: usb2 {
+ label = "soc:green:usb2";
gpios = <&gpio 44 1>;
};
- phone1 { /* green */
- label = "phone1";
+ phone1 {
+ label = "soc:green:phone";
gpios = <&gpio 11 1>;
};
- phone1warn { /* red */
- label = "phone1warn";
+ phone1warn {
+ label = "soc:orange:phone";
gpios = <&gpio 12 1>;
};
- phone2warn { /* red */
- label = "phone2warn";
+ phone2warn {
+ label = "soc:orange:phone2";
gpios = <&gpio 26 1>;
};
- phone2 { /* green */
- label = "phone2";
+ phone2 {
+ label = "soc:green:phone2";
gpios = <&gpio 28 1>;
};
};
diff --git a/target/linux/lantiq/dts/TDW8980.dts b/target/linux/lantiq/dts/TDW8980.dts
index ca8fc80..0bcca6e 100644
--- a/target/linux/lantiq/dts/TDW8980.dts
+++ b/target/linux/lantiq/dts/TDW8980.dts
@@ -31,7 +31,7 @@
gpio-leds {
wifi2 {
- label = "wifi2";
+ label = "soc:green:wlan5ghz";
gpios = <&gpio 24 1>;
};
};
diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi
index 3b9812c..b2dbb21 100644
--- a/target/linux/lantiq/dts/TDW89X0.dtsi
+++ b/target/linux/lantiq/dts/TDW89X0.dtsi
@@ -222,25 +222,27 @@
gpio-leds {
compatible = "gpio-leds";
-
+ /*
+ power is not controllable via gpio
+ */
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 4 0>;
};
internet: internet {
- label = "internet";
+ label = "soc:green:internet";
gpios = <&gpio 5 0>;
};
usb0: usb0 {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&gpio 19 0>;
};
usb2: usb2 {
- label = "usb2";
+ label = "soc:green:usb2";
gpios = <&gpio 20 0>;
};
wps: wps {
- label = "wps";
+ label = "soc:green:wps";
gpios = <&gpio 37 0>;
};
};
diff --git a/target/linux/lantiq/dts/VG3503J.dtsi b/target/linux/lantiq/dts/VG3503J.dtsi
index fe192a3..10fcf80 100644
--- a/target/linux/lantiq/dts/VG3503J.dtsi
+++ b/target/linux/lantiq/dts/VG3503J.dtsi
@@ -7,9 +7,9 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power2;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
internet = &dsl;
};
@@ -156,16 +156,16 @@
gpio-leds {
compatible = "gpio-leds";
- power2: power2 {
- label = "power2";
+ power_red: power2 {
+ label = "soc:red:power";
gpios = <&gpio 14 1>;
};
dsl: dsl {
- label = "bt:green:dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 19 1>;
};
- power: power {
- label = "power";
+ power_green: power {
+ label = "soc:green:power";
gpios = <&gpio 28 1>;
default-state = "keep";
};
diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi
index dc2738a..149aadd 100644
--- a/target/linux/lantiq/dts/VGV7510KW22.dtsi
+++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi
@@ -7,9 +7,9 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power2;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
dsl = &dsl;
internet = &internet_green;
@@ -219,48 +219,48 @@
compatible = "gpio-leds";
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 2 1>;
};
internet_red {
- label = "internet_red";
+ label = "soc:red:internet";
gpios = <&gpio 10 1>;
};
info_red {
- label = "info_red";
+ label = "soc:red:info";
gpios = <&gpio 12 1>;
};
- power: power {
- label = "power"; /* green */
+ power_green: power {
+ label = "soc:green:power";
gpios = <&gpio 14 1>;
default-state = "keep";
};
info_green {
- label = "info_green";
+ label = "soc:green:info";
gpios = <&gpio 15 1>;
};
internet_green: internet_green {
- label = "internet_green";
+ label = "soc:green:internet";
gpios = <&gpio 19 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wlan";
gpios = <&gpio 20 1>;
};
- power2: power2 {
- label = "power2"; /* red */
+ power_red: power2 {
+ label = "soc:red:power";
gpios = <&gpio 28 1>;
};
- phone_red {
- label = "phone_red";
+ phone {
+ label = "soc:green:telefon";
gpios = <&gpio 29 1>;
};
};
diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi
index 71b7d26..8aa84ad 100644
--- a/target/linux/lantiq/dts/VGV7519.dtsi
+++ b/target/linux/lantiq/dts/VGV7519.dtsi
@@ -8,13 +8,13 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power2;
- failsafe = &power;
- running = &power2;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
- dsl = &broadband_yellow;
- internet = &internet_yellow;
- wifi = &wireless_yellow;
+ dsl = &broadband_green;
+ internet = &internet_green;
+ wifi = &wireless_green;
};
};
@@ -39,7 +39,7 @@
compatible = "lantiq,pinctrl-xr9";
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
-
+
interrupt-parent = <&icu0>;
interrupts = <166 135 66 40 41 42 38>;
@@ -269,61 +269,61 @@
gpio-leds {
compatible = "gpio-leds";
- eco { /* blue */
- label = "eco";
+ eco {
+ label = "soc:blue:eco";
gpios = <&stp 2 1>;
};
- wps_red { /* red */
- label = "wps_red";
+ wps_red {
+ label = "soc:red:wps";
gpios = <&stp 3 1>;
};
- wps_yellow { /* yellow */
- label = "wps_yellow";
+ wps_green {
+ label = "soc:green:wps";
gpios = <&stp 4 1>;
};
- upgrade { /* blue */
- label = "upgrade";
+ upgrade {
+ label = "soc:blue:upgrade";
gpios = <&stp 5 1>;
};
- tv { /* yellow */
- label = "tv";
+ tv {
+ label = "soc:green:tv";
gpios = <&stp 6 1>;
};
- internet_yellow: internet_yellow { /* yellow */
- label = "internet_yellow";
+ internet_green: internet_green {
+ label = "soc:green:internet";
gpios = <&stp 7 1>;
};
- internet_red { /* red */
- label = "internet_red";
+ internet_red {
+ label = "soc:red:internet";
gpios = <&stp 8 1>;
};
- broadband_red { /* red */
- label = "broadband_red";
+ broadband_red {
+ label = "soc:red:broadband";
gpios = <&stp 9 1>;
};
- broadband_yellow: broadband_yellow { /* yellow */
- label = "broadband_yellow";
+ broadband_green: broadband_green {
+ label = "soc:green:broadband";
gpios = <&stp 10 1>;
};
- voice { /* yellow */
- label = "voice";
+ voice {
+ label = "soc:green:voice";
gpios = <&stp 11 1>;
};
- wireless_red { /* red */
- label = "wireless_red";
+ wireless_red {
+ label = "soc:red:wireless";
gpios = <&stp 12 1>;
};
- wireless_yellow: wireless_yellow { /* yellow */
- label = "wireless_yellow";
+ wireless_green: wireless_green {
+ label = "soc:green:wireless";
gpios = <&stp 13 1>;
};
- power2: power2 { /* yellow */
- label = "power2";
+ power_green: power2 {
+ label = "soc:green:power";
gpios = <&stp 14 1>;
default-state = "keep";
};
- power: power { /* red */
- label = "power";
+ power_red: power {
+ label = "soc:red:power";
gpios = <&stp 15 1>;
};
};
diff --git a/target/linux/lantiq/dts/WBMR.dts b/target/linux/lantiq/dts/WBMR.dts
index 1ca7668..d9c1078 100644
--- a/target/linux/lantiq/dts/WBMR.dts
+++ b/target/linux/lantiq/dts/WBMR.dts
@@ -9,12 +9,12 @@
bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
leds {
- boot = &power;
- failsafe = &power2;
- running = &power;
+ boot = &power_green;
+ failsafe = &power_red;
+ running = &power_green;
dsl = &dsl;
- internet = &online;
+ internet = &online_green;
usb = &usb;
wifi = &wifi;
};
@@ -138,41 +138,41 @@
gpio-leds {
compatible = "gpio-leds";
- power: power {
- label = "power";
+ power_green: power {
+ label = "soc:green:power";
gpios = <&gpio 1 1>;
default-state = "keep";
};
- power2: power2 {
- label = "power2";
+ power_red: power2 {
+ label = "soc:red:power";
gpios = <&gpio 5 1>;
};
security {
- label = "security";
+ label = "soc:yellow:security";
gpios = <&gpio 14 1>;
};
wifi: wifi {
- label = "wifi";
+ label = "soc:green:wireless";
gpios = <&gpio 15 1>;
};
dsl: dsl {
- label = "dsl";
+ label = "soc:green:dsl";
gpios = <&gpio 16 1>;
};
- online: online {
- label = "online";
+ online_green: online {
+ label = "soc:green:internet";
gpios = <&gpio 17 1>;
};
online2 {
- label = "online2";
+ label = "soc:red:internet";
gpios = <&gpio 18 1>;
};
movie {
- label = "movie";
+ label = "soc:blue:movie";
gpios = <&gpio 20 1>;
};
usb: usb {
- label = "usb";
+ label = "soc:green:usb";
gpios = <&gpio 28 1>;
default-state = "on";
};
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list