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 <openwrt@kresin.me>

SVN-Revision: 48037
lede-17.01
John Crispin 2016-01-01 21:18:08 +00:00
parent 5b6f0250f6
commit a3042500ab
31 changed files with 371 additions and 135 deletions

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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";

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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>;
};

View File

@ -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";

View File

@ -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";