lantiq: define default leds in dts files
authorJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:18:08 +0000 (21:18 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:18:08 +0000 (21:18 +0000)
- 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

31 files changed:
target/linux/lantiq/dts/ARV4510PW.dts
target/linux/lantiq/dts/ARV4518PWR01.dtsi
target/linux/lantiq/dts/ARV4519PW.dts
target/linux/lantiq/dts/ARV4520PW.dts
target/linux/lantiq/dts/ARV4525PW.dts
target/linux/lantiq/dts/ARV452CQW.dts
target/linux/lantiq/dts/ARV7510PW22.dts
target/linux/lantiq/dts/ARV7518PW.dts
target/linux/lantiq/dts/ARV7519PW.dts
target/linux/lantiq/dts/ARV7519RW22.dts
target/linux/lantiq/dts/ARV7525PW.dts
target/linux/lantiq/dts/ARV752DPW.dts
target/linux/lantiq/dts/ARV752DPW22.dts
target/linux/lantiq/dts/ARV8539PW22.dts
target/linux/lantiq/dts/BTHOMEHUBV2B.dts
target/linux/lantiq/dts/BTHOMEHUBV3A.dts
target/linux/lantiq/dts/BTHOMEHUBV5A.dts
target/linux/lantiq/dts/DGN1000B.dts
target/linux/lantiq/dts/DGN3500.dtsi
target/linux/lantiq/dts/EASY80920.dtsi
target/linux/lantiq/dts/FRITZ3370.dts
target/linux/lantiq/dts/FRITZ7320.dts
target/linux/lantiq/dts/GR7000.dts
target/linux/lantiq/dts/H201L.dts
target/linux/lantiq/dts/P2601HNFX.dts
target/linux/lantiq/dts/P2812HNUFX.dtsi
target/linux/lantiq/dts/TDW89X0.dtsi
target/linux/lantiq/dts/VG3503J.dtsi
target/linux/lantiq/dts/VGV7510KW22.dtsi
target/linux/lantiq/dts/VGV7519.dtsi
target/linux/lantiq/dts/WBMR.dts

index 4772495..427cd54 100644 (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 {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpios 21 0>;
                };
-               power2 {
+               power2: power2 {
                        label = "power2";
                        gpios = <&gpios 20 0>;
                };
                        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>;
                };
                        label = "phone2";
                        gpios = <&gpios 9 0>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpios 8 0>;
                };
-               usb2 {
+               usb2: usb2 {
                        label = "usb2";
                        gpios = <&gpios 7 0>;
                };
index 0699707..41d17de 100644 (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 {
 
        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>;
                };
                        label = "dsl2";
                        gpios = <&gpio 8 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpio 19 1>;
                };
index a0a0803..03711a0 100644 (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 {
        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>;
                };
                        label = "online2";
                        gpios = <&gpio 8 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpio 19 1>;
                };
index 8a5b797..642bde2 100644 (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 {
        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>;
                };
                        label = "voice";
                        gpios = <&gpiomm 4 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpiomm 5 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpiomm 6 1>;
                };
index 3c420e7..b1a92a7 100644 (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>;
        };
                        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>;
index fd7759e..320e5f5 100644 (file)
@@ -7,6 +7,13 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       dsl = &dsl;
+                       power1 = &power1;
+                       usb = &usb;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                        label = "power0";
                        gpios = <&gpio 3 1>;
                };
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&gpio 4 1>;
                };
                        label = "isdn";
                        gpios = <&gpio 5 1>;
                };
-               power1 {
+               power1: power1 {
                        label = "power1";
                        gpios = <&gpio 6 1>;
                };
                        label = "voice";
                        gpios = <&gpiomm 4  1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpiomm 5 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpiomm 6 1>;
                };
index 24c396d..6c534a9 100644 (file)
@@ -7,6 +7,12 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       internet = &internet;
+                       power = &power;
+                       wifi = &wlan;
+               };
        };
 
        memory@0 {
 
        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>;
                };
index c6f4759..7693bc2 100644 (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 {
 
        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>;
                };
                        label = "online2";
                        gpios = <&gpio 8 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpio 19 1>;
                };
index 1478192..ed1c2e7 100644 (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 {
 
        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>;
                };
                        label = "online2";
                        gpios = <&gpio 30 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpio 12 1>;
                };
                        label = "wps3";
                        gpios = <&gpio 23 1>;
                };
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&gpio 4 1>;
                };
index d33e9d8..8c7c3e6 100644 (file)
@@ -7,6 +7,11 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       internet = &internet_green;
+                       power = &power_green;
+               };
        };
 
        memory@0 {
                        label = "internet_red";
                        gpios = <&gpio 10 1>;
                };
-               power_green {
+               power_green: power_green {
                        label = "power";
                        gpios = <&gpio 14 1>;
                        default-state = "on";
                        label = "internet_orange";
                        gpios = <&gpio 19 1>;
                };
-               internet_green {
+               internet_green: internet_green {
                        label = "internet_green";
                        gpios = <&gpio 28 1>;
                };
index 57aa59c..d434556 100644 (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 {
 
        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>;
                };
                        label = "voice2";
                        gpios = <&gpio 8 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpio 9 1>;
                };
index 8848c71..a26779a 100644 (file)
@@ -7,6 +7,13 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       internet = &internet;
+                       power = &power;
+                       power1 = &power1;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power1 {
+               power1: power1 {
                        label = "power1";
                        gpios = <&gpio 3 1>;
                };
-               internet {
+               internet: internet {
                        label = "internet";
                        gpios = <&gpio 4 1>;
                };
                        label = "message";
                        gpios = <&gpio 5 1>;
                };
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 6 1>;
                        default-state = "keep";
                        label = "umts";
                        gpios = <&gpiomm 3 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpiomm 4 1>;
                };
index 168dc66..21c7a8f 100644 (file)
@@ -7,6 +7,13 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       internet = &internet;
+                       power = &power;
+                       power1 = &power1;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power1 {
+               power1: power1 {
                        label = "power1";
                        gpios = <&gpio 3 1>;
                };
-               internet {
+               internet: internet {
                        label = "internet";
                        gpios = <&gpio 4 1>;
                };
                        label = "message";
                        gpios = <&gpio 5 1>;
                };
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 6 1>;
                        default-state = "keep";
                        label = "umts";
                        gpios = <&gpiomm 3 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi_rt";
                        gpios = <&gpiomm 4 1>;
                };
index acca47f..b1f1b33 100644 (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>;
         };
         gpio-leds {
                 compatible = "gpio-leds";
 
-                power-green {
+                power_green: power-green {
                         label = "power";
                         gpios = <&gpio 24 1>;
                 };
                         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>;
                 };
index 9b3180c..f4c2403 100644 (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 */
                        label = "soc:orange:wireless";
                        gpios = <&stp0 8 0>;
                };
-               wireless-blue {
+               wireless_blue: wireless-blue {
                        label = "soc:blue:wireless";
                        gpios = <&stp0 9 0>;
                };
                        label = "soc:orange:broadband";
                        gpios = <&stp0 11 0>;
                };
-               broadband-blue {
+               broadband_blue: broadband-blue {
                        label = "soc:blue:broadband";
                        gpios = <&stp0 12 0>;
                };
index 1ae9840..229a85f 100644 (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 */
                        label = "soc:orange:wireless";
                        gpios = <&gpio 6 1>;
                };
-               wireless-blue {
+               wireless_blue: wireless-blue {
                        label = "soc:blue:wireless";
                        gpios = <&gpio 9 1>;
                };
                        label = "soc:orange:broadband";
                        gpios = <&gpio 0 1>;
                };
-               broadband-blue {
+               broadband_blue: broadband-blue {
                        label = "soc:blue:broadband";
                        gpios = <&gpio 12 1>;
                };
                        label = "soc:orange:power";
                        gpios = <&gpio 5 1>;
                };
-               power-blue {
+               ppower-blue {
                        label = "soc:blue:power";
                        gpios = <&gpio 1 1>;
                };
index e8cdbbf..4141573 100644 (file)
@@ -7,6 +7,11 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       internet = &broadband_blue;
+                       wifi = &wireless_blue;
+               };
        };
 
        memory@0 {
                        label = "soc:green:broadband";
                        gpios = <&gpio 3 1>;
                };
-               broadband-blue {
+               broadband_blue: broadband-blue {
                        label = "soc:blue:broadband";
                        gpios = <&gpio 8 1>;
                };
                        label = "soc:green:wireless";
                        gpios = <&gpio 10 1>;
                };
-               wireless-blue {
+               wireless_blue: wireless-blue {
                        label = "soc:blue:wireless";
                        gpios = <&gpio 11 1>;
                };
index 199d3a9..d5d7b98 100644 (file)
@@ -7,6 +7,12 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       dsl = &dsl;
+                       internet = &online;
+                       power = &power;
+               };
        };
 
        memory@0 {
 
        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";
                        gpios = <&gpio 4 1>;
                        default-state = "on";
                };
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 13 1>;
                        default-state = "on";
index bcb995e..d8ae431 100644 (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 {
 
        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>;
                };
index a9293af..bdd7596 100644 (file)
@@ -3,6 +3,12 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       power = &power;
+                       usb = &usb1;
+                       usb2 = &usb2;
+               };
        };
 
        memory@0 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               power: power {
                        label = "power";
                        gpios = <&stp 9 0>;
                        default-state = "on";
                        label = "fxo";
                        gpios = <&stp 19 0>;
                };
-               usb1 {
+               usb1: usb1 {
                        label = "usb1";
                        gpios = <&stp 18 0>;
                };
-               usb2 {
+               usb2: usb2 {
                        label = "usb2";
                        gpios = <&stp 15 0>;
                };
index 91eb7b6..a652b9b 100644 (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 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 32 1>;
                };
-               power2 {
+               power2: power2 {
                        label = "power2";
                        gpios = <&gpio 33 1>;
                };
                        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>;
                };
                        label = "lan";
                        gpios = <&gpio 38 1>;
                };
-               info_green {
+               info_green: info_green {
                        label = "info_green";
                        gpios = <&gpio 47 1>;
                };
index 1384575..b5aa5e8 100644 (file)
@@ -7,6 +7,13 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       dsl = &power;
+                       internet = &online;
+                       power = &power;
+                       wifi = &wlan;
+               };
        };
 
        memory@0 {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 44 1>;
                };
                        label = "dect";
                        gpios = <&gpio 38 1>;
                };
-               wlan {
+               wlan: wlan {
                        label = "wlan";
                        gpios = <&gpio 37 1>;
                };
-               online {
+               online: online {
                        label = "online";
                        gpios = <&gpio 35 1>;
                };
index fcc27eb..9f3ba65 100644 (file)
@@ -7,6 +7,13 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       internet = &internet;
+                       power2 = &power2;
+                       usb = &usb;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
        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";
                        label = "internet2";
                        gpios = <&stp 3 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&stp 10 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&stp 15 1>;
                };
index 5cb5612..1f1de01 100644 (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 {
        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>;
                };
                        label = "wps";
                        gpios = <&gpio 22 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpio 6 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpio 14 1>;
                };
index bb9193e..3193c39 100644 (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 {
        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>;
                };
                        label = "online2";
                        gpios = <&stp 12 1>;
                };
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&stp 14 1>;
                };
                        label = "phone2";
                        gpios = <&stp 8 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&stp 15 1>;
                };
index 8c10acc..a03129f 100644 (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 {
                        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>;
                };
                        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>;
                };
index 46ff11f..3d9e59e 100644 (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 {
        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>;
                };
index e9a3c70..50ab0b6 100644 (file)
@@ -5,6 +5,12 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       dsl = &dsl;
+                       power = &power;
+                       power2 = &power2;
+               };
        };
 
        memory@0 {
        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>;
                };
index 077ed23..3cc2e1d 100644 (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 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&gpio 2 1>;
                };
                        gpios = <&gpio 12 1>;
                };
 
-               power {
+               power: power {
                        label = "power"; /* green */
                        gpios = <&gpio 14 1>;
                };
                        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>;
                };
index 7a7fddb..3ba3ac5 100644 (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 {
                        label = "tv";
                        gpios = <&stp 6 1>;
                };
-               internet_yellow {                       /* yellow */
+               internet_yellow: internet_yellow {                      /* yellow */
                        label = "internet_yellow";
                        gpios = <&stp 7 1>;
                };
                        label = "broadband_red";
                        gpios = <&stp 9 1>;
                };
-               broadband_yellow {                      /* yellow */
+               broadband_yellow: broadband_yellow {                    /* yellow */
                        label = "broadband_yellow";
                        gpios = <&stp 10 1>;
                };
                        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";
index 60a7508..dc23032 100644 (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 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 1 1>;
                };
-               power2 {
+               power2: power2 {
                        label = "power2";
                        gpios = <&gpio 5 1>;
                };
                        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>;
                };
                        label = "movie";
                        gpios = <&gpio 20 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpio 28 1>;
                        default-state = "on";