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 47724959a11e847c03b5a531406282147fedf2e2..427cd54ab950dea34c55715f66ec40832e44f7dc 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 069970782753a856aec476b7d45fc3f44edb07f1..41d17de41930dd5cec6acb4fd1b7b6385663106c 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 a0a080378e410622cec5b010a34b27daa6953a9d..03711a0ff558fe490f0d269fae3afc9806872e37 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 8a5b7977c4f41a8e1b136ea21cdf5cf3342eb362..642bde22fe0a8d0c85822b881283b818e3785348 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 3c420e7cf2300a3f42239a99194c5f3f747f17ab..b1a92a715491198f1c2e6a7b691c31b5adb06ffa 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 fd7759ec07e027c61f6f0c15ed6ac8346891954e..320e5f59fa795330c0b0c57071fe0261f43595fb 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 24c396d8bb1ef0df524b6b9998bef7de098d870d..6c534a920be80993e484ca592af01614d449d4b5 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 c6f4759ed4cbbf5abd4a7665f133e6d75ae8ce7d..7693bc266264f027aac819b7880d8efc4997adce 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 14781926638b9b191ba8c710d4255f137c8225b3..ed1c2e7311e5b09bd83d1a4b064a417ca9fa63b0 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 d33e9d8df392fdb0714786e9a00b0bc290ef9611..8c7c3e6ed2219efa280e37f0dfc6cbd15b147036 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 57aa59cd1669f5e4d6e364dc89c1338b835ef73e..d4345562447ee0e0ab820508ef1c96a537a0b02d 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 8848c71cf78947561661a5999111121d9ecc0b92..a26779a2a2a19cdd9539569a8bf73b4e4bd54857 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 168dc6619b5a252b63c525a94063edbed307e0de..21c7a8f2cfdda56f4c78a04ba54c1a66c8d7bdd2 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 acca47f9ddcd386db63e96bf4261704f23098d97..b1f1b33417d238460dad3674ed9403b65cf18667 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 9b3180c39a0381b25af25d121fb1573a5b185d41..f4c2403d60abaa8ebe08227775008f7ed2d743bc 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 1ae9840fcbfd118b10f4600a706d4089f3d14a2b..229a85f3ed71bd43b0f01d7872604c64163ed5be 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 e8cdbbfe39682ef2945910a1373b9bc69aed111a..414157331f16d382976af077f8b2a4b6301ff472 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 199d3a9ec6b2b4d4ec95f9c67915cce842c03d63..d5d7b98d635453da5278cb782c49072308f57d62 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 bcb995e3a281e40abb8de7e0bc2237ce6597fd35..d8ae431cfb805c63310e1fc1b1b19ccccf4cce70 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 a9293af377c5ea268cd6bd953f021070ee29cc82..bdd759687a302af80281f4c61cce2c4e7b377c81 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 91eb7b60b7fa77cdcdf27c2aead8ea5fe0e4b751..a652b9b1bb032dfb0aacf41c1960e79d6e56f0de 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 13845751e7b33531860a40498077bc2df3df8282..b5aa5e86bd58154c7afe58503d9332041fdb5663 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 fcc27ebacfcbb436e1363f1b3cc8386eff42fcf9..9f3ba65f1b8102b0000c23ae7c0575af052469e1 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 5cb5612a37c2bed7cfb520f6e86e59f65166444d..1f1de0187a2d700ac533b4f99a3aff16af6730d8 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 bb9193eb1f672898b38be9977106d9a45f5b5f2a..3193c3954c9a884d05b1b2b93632bbf05a5e6497 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 8c10acc9946bd928c183f74e1e1ef0ff6525f5a4..a03129f59e08f880f69f3b353eff8ba335154997 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 46ff11f547fa3fcd766e0663ffba248c4893da6a..3d9e59e2efdedb65e6a96d0b7377359440c7288f 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 e9a3c70b299531477623d52117119ccbd5090638..50ab0b64af64c7fd96e4e06905761e885931ff28 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 077ed2372a98d99c1f42042bfb15adbea6b78e52..3cc2e1d62e016c5952cee1a88782ed4c9a1c2971 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 7a7fddb8edfda62770d49d36b07a52765806e085..3ba3ac54cd19b40aeb32a231558bb0832a6c67f8 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 60a750891715d4a64fd7f5b9562cf5020571ff41..dc23032ff2172ccdbafc650e1e0e9201da264bf3 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";