lantiq: use aliases device tree node for leds
authorMathias Kresin <dev@kresin.me>
Tue, 4 Oct 2016 18:34:03 +0000 (20:34 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 5 Oct 2016 17:23:23 +0000 (19:23 +0200)
The chosen node is clearly the wrong place for aliases.

Signed-off-by: Mathias Kresin <dev@kresin.me>
36 files changed:
target/linux/lantiq/base-files/lib/functions/lantiq.sh
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/ARV7506PW11.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/FRITZ7360SL.dts
target/linux/lantiq/dts/H201L.dts
target/linux/lantiq/dts/P2601HNFX.dts
target/linux/lantiq/dts/P2812HNUF1.dts
target/linux/lantiq/dts/P2812HNUFX.dtsi
target/linux/lantiq/dts/TDW89X0.dtsi
target/linux/lantiq/dts/VG3503J.dts
target/linux/lantiq/dts/VGV7510KW22.dtsi
target/linux/lantiq/dts/VGV7519.dtsi
target/linux/lantiq/dts/VR200v.dts
target/linux/lantiq/dts/WBMR.dts
target/linux/lantiq/dts/WBMR300.dts

index 456e54b..e4eb4d7 100644 (file)
@@ -32,7 +32,7 @@ lantiq_get_dt_led() {
        local label
        local ledpath
        local basepath="/sys/firmware/devicetree/base"
-       local nodepath="$basepath/chosen/leds/$1"
+       local nodepath="$basepath/aliases/led-$1"
 
        [ -f "$nodepath" ] && ledpath=$(cat "$nodepath")
        [ -n "$ledpath" ] && label=$(cat "$basepath$ledpath/label")
index bbfec2f..dca7a35 100644 (file)
@@ -7,18 +7,18 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power2;
-                       running = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power2;
+               led-running = &power;
 
-                       dsl = &adsl;
-                       internet = &internet;
-                       usb = &usb;
-                       usb2 = &usb2;
-                       wifi = &wifi;
-               };
+               led-dsl = &adsl;
+               led-internet = &internet;
+               led-usb = &usb;
+               led-usb2 = &usb2;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index 2145d07..3b29481 100644 (file)
@@ -3,17 +3,17 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power;
-                       running = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power;
+               led-running = &power;
 
-                       dsl = &dsl;
-                       internet = &online;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &online;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index f1e6176..932bc4a 100644 (file)
@@ -7,17 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &internet_green;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &internet_green;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index a7d529b..8edca24 100644 (file)
@@ -7,17 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_blue;
-                       failsafe = &power_red;
-                       running = &power_blue;
+       aliases {
+               led-boot = &power_blue;
+               led-failsafe = &power_red;
+               led-running = &power_blue;
 
-                       dsl = &dsl;
-                       internet = &internet_blue;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &internet_blue;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index 5d2c327..0f264ff 100644 (file)
@@ -5,16 +5,14 @@
 / {
        model = "ARV4525PW - Speedport W501V Typ A";
 
-       chosen {
-               leds {
-                       /* we dont have a power led, lets use the online led */
-                       boot = &online;
-                       failsafe = &online;
-
-                       dsl = &dsl;
-                       internet = &online;
-                       wifi = &wifi;
-               };
+       aliases {
+               /* we dont have a power led, lets use the online led */
+               led-boot = &online;
+               led-failsafe = &online;
+
+               led-dsl = &dsl;
+               led-internet = &online;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index 152b7af..b891042 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_blue;
-                       failsafe = &power_red;
-                       running = &power_blue;
+       aliases {
+               led-boot = &power_blue;
+               led-failsafe = &power_red;
+               led-running = &power_blue;
 
-                       internet = &dsl_blue;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-internet = &dsl_blue;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
                                        lantiq,pull = <0>;
                                        lantiq,output = <1>;
                                };
-                               leds {
+                               aliases {
                                        lantiq,pins = "io3", "io5", "io6", "io7", "io9";
                                        lantiq,output = <1>;
                                };
index 1463045..215d442 100644 (file)
@@ -5,16 +5,14 @@
 / {
        model = "ARV7506PW11 - Alice/O2 IAD 4421";
 
-       chosen {
-               leds {
-                       boot = &power;
-                       failsafe = &power_red;
-                       running = &power;
-
-                       dsl = &dsl;
-                       internet = &internet;
-                       wifi = &wlan;
-               };
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power_red;
+               led-running = &power;
+
+               led-dsl = &dsl;
+               led-internet = &internet;
+               led-wifi = &wlan;
        };
 
        memory@0 {
index fb03017..ac97409 100644 (file)
@@ -7,15 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power;
-                       running = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power;
+               led-running = &power;
 
-                       internet = &internet;
-                       wifi = &wlan;
-               };
+               led-internet = &internet;
+               led-wifi = &wlan;
        };
 
        memory@0 {
index 6e2b8ef..7e6a28a 100644 (file)
@@ -7,17 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &online_green;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &online_green;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
                                        lantiq,pull = <2>;
                                        lantiq,output = <1>;
                                };
-                               leds {
+                               aliases {
                                        lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
                                        lantiq,output = <1>;
                                };
index b6e04d6..57c1bde 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power2;
-                       running = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power2;
+               led-running = &power;
 
-                       dsl = &dsl;
-                       internet = &online;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &online;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index a15556b..f1d5f63 100644 (file)
@@ -7,14 +7,14 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_green;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_green;
+               led-running = &power_green;
 
-                       internet = &internet_green;
-               };
+               led-internet = &internet_green;
        };
 
        memory@0 {
index be1bf75..e889362 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &power_green;
-                       internet = &online;
-                       wifi = &wifi;
-               };
+               led-dsl = &power_green;
+               led-internet = &online;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index a54e15c..e37c795 100644 (file)
@@ -7,15 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_red;
-                       failsafe = &power_blue;
-                       running = &power_red;
+       aliases {
+               led-boot = &power_red;
+               led-failsafe = &power_blue;
+               led-running = &power_red;
 
-                       internet = &internet_red;
-                       wifi = &wifi;
-               };
+               led-internet = &internet_red;
+               led-wifi = &wifi;
        };
 
        memory@0 {
                                        lantiq,pull = <2>;
                                        lantiq,output = <1>;
                                };
-                               leds {
+                               aliases {
                                        lantiq,pins = "io3", "io5", "io6", "io8";
                                        lantiq,output = <1>;
                                        lantiq,pull = <0>;
index d7103fb..db4a639 100644 (file)
@@ -7,15 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_red;
-                       failsafe = &power_blue;
-                       running = &power_red;
+       aliases {
+               led-boot = &power_red;
+               led-failsafe = &power_blue;
+               led-running = &power_red;
 
-                       internet = &internet_red;
-                       wifi = &wifi;
-               };
+               led-internet = &internet_red;
+               led-wifi = &wifi;
        };
 
        memory@0 {
                                        lantiq,open-drain = <1>;
                                        lantiq,output = <1>;
                                };
-                               leds {
+                               aliases {
                                        lantiq,pins = "io3", "io5", "io6", "io8";
                                        lantiq,open-drain = <1>;
                                        lantiq,output = <1>;
index 8a6a07b..76034fd 100644 (file)
@@ -5,16 +5,14 @@
 / {
        model = "ARV8539PW22 - Speedport W 504V Typ A";
 
-    chosen {
-           leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
-
-                   dsl = &dsl_green;
-                   internet = &online_green;
-                   wifi = &wireless_green;
-           };
+    aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
+
+           dsl = &dsl_green;
+           internet = &online_green;
+           wifi = &wireless_green;
     };
 
        memory@0 {
index 0165156..2287580 100644 (file)
@@ -7,15 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_orange;
-                       failsafe = &power_red;
-                       running = &power_blue;
+       aliases {
+               led-boot = &power_orange;
+               led-failsafe = &power_red;
+               led-running = &power_blue;
 
-                       internet = &broadband_blue;
-                       wifi = &wireless_blue;
-               };
+               led-internet = &broadband_blue;
+               led-wifi = &wireless_blue;
        };
 
        memory@0 {                                /* RAM: Samsung K4H511638F-LC 64MB */
index 1d61d81..7879997 100644 (file)
@@ -7,15 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_orange;
-                       failsafe = &power_red;
-                       running = &power_blue;
+       aliases {
+               led-boot = &power_orange;
+               led-failsafe = &power_red;
+               led-running = &power_blue;
 
-                       internet = &broadband_blue;
-                       wifi = &wireless_blue;
-               };
+               led-internet = &broadband_blue;
+               led-wifi = &wireless_blue;
        };
 
        memory@0 {                                /* RAM: Samsung K4H511638F-LC 64MB */
index fcfd8c7..fa00f70 100644 (file)
@@ -7,15 +7,15 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_blue;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_blue;
 
-                       internet = &broadband_blue;
-                       wifi = &wireless_blue;
-               };
+               led-internet = &broadband_blue;
+               led-wifi = &wireless_blue;
        };
 
        memory@0 {
index a011c71..b84eab0 100644 (file)
@@ -8,13 +8,13 @@
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
 
-               leds {
-                       boot = &power;
-                       failsafe = &power;
-                       running = &power;
+               aliases {
+                       led-boot = &power;
+                       led-failsafe = &power;
+                       led-running = &power;
 
-                       dsl = &dsl;
-                       internet = &online_green;
+                       led-dsl = &dsl;
+                       led-internet = &online_green;
                };
        };
 
index bc50e4a..f86ccc5 100644 (file)
@@ -3,17 +3,17 @@
 / {
        chosen {
                bootargs = "root= console=ttyLTQ0,115200";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &internet;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &internet;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index 47b7a07..57dc457 100644 (file)
@@ -3,15 +3,15 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power;
-                       running = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power;
+               led-running = &power;
 
-                       usb = &usb1;
-                       usb2 = &usb2;
-               };
+               led-usb = &usb1;
+               led-usb2 = &usb2;
        };
 
        memory@0 {
index d802ca7..35880f5 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 ubi.mtd=1,512 root=/dev/mtdblock9";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &info_green;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &info_green;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index acb88b6..643546c 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power;
-                       running = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power;
+               led-running = &power;
 
-                       internet = &info_green;
-                       dsl = &power;
-                       wifi = &wlan;
-               };
+               led-internet = &info_green;
+               led-dsl = &power;
+               led-wifi = &wlan;
        };
 
        memory@0 {
index e8fdc13..02e9781 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       internet = &info_green;
-                       dsl = &power_green;
-                       wifi = &wifi;
-               };
+               led-internet = &info_green;
+               led-dsl = &power_green;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index e6e514f..c4208e3 100644 (file)
@@ -7,17 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_green;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_green;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &online;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &online;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index c1b4c61..5ab5ae7 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &online;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &online;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index 10bc4b1..87b2f8a 100644 (file)
@@ -5,11 +5,9 @@
 / {
        model = "P2812HNUF1 - ZyXEL P-2812HNU-F1";
 
-       chosen {
-               leds {
-                       usb = &usb1;
-                       usb2 = &usb2;
-               };
+       aliases {
+               led-usb = &usb1;
+               led-usb2 = &usb2;
        };
 
        fpi@10000000 {
index 88f4d75..30eee50 100644 (file)
@@ -3,16 +3,16 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl_green;
-                       internet = &internet_green;
-                       wifi = &wireless_green;
-               };
+               led-dsl = &dsl_green;
+               led-internet = &internet_green;
+               led-wifi = &wireless_green;
        };
 
        cputemp@0 {
index b3eaf73..d6a89fe 100644 (file)
@@ -3,17 +3,17 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       /* the power led can't be controlled, use the wps led instead */
-                       boot = &wps;
-                       failsafe = &wps;
+       aliases {
+               /* the power led can't be controlled, use the wps led instead */
+               led-boot = &wps;
+               led-failsafe = &wps;
 
-                       dsl = &dsl;
-                       internet = &internet;
-                       usb = &usb0;
-                       usb2 = &usb2;
-               };
+               led-dsl = &dsl;
+               led-internet = &internet;
+               led-usb = &usb0;
+               led-usb2 = &usb2;
        };
 
        memory@0 {
index 1aeb4f1..b8437eb 100644 (file)
@@ -7,14 +7,14 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       internet = &dsl;
-               };
+               led-internet = &dsl;
        };
 
        memory@0 {
index 0284831..4f2ae47 100644 (file)
@@ -5,16 +5,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &internet_green;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &internet_green;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index b2399af..103a9f5 100644 (file)
@@ -6,16 +6,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &broadband_green;
-                       internet = &internet_green;
-                       wifi = &wireless_green;
-               };
+               led-dsl = &broadband_green;
+               led-internet = &internet_green;
+               led-wifi = &wireless_green;
        };
 
        memory@0 {
index e281042..8715b89 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power;
-                       failsafe = &power;
+       aliases {
+               led-boot = &power;
+               led-failsafe = &power;
 
-                       dsl = &dsl;
-                       internet = &internet;
-                       usb = &usb;
-                       usb2 = &usb;
-               };
+               led-dsl = &dsl;
+               led-internet = &internet;
+               led-usb = &usb;
+               led-usb2 = &usb;
        };
 
        memory@0 {
index ba48dd1..067ca87 100644 (file)
@@ -7,17 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_green;
-                       failsafe = &power_red;
-                       running = &power_green;
+       aliases {
+               led-boot = &power_green;
+               led-failsafe = &power_red;
+               led-running = &power_green;
 
-                       dsl = &dsl;
-                       internet = &online_green;
-                       usb = &usb;
-                       wifi = &wifi;
-               };
+               led-dsl = &dsl;
+               led-internet = &online_green;
+               led-usb = &usb;
+               led-wifi = &wifi;
        };
 
        memory@0 {
index 824efb7..02ec172 100644 (file)
@@ -7,16 +7,16 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+       };
 
-               leds {
-                       boot = &power_g;
-                       failsafe = &diag_r;
-                       running = &power_g;
+       aliases {
+               led-boot = &power_g;
+               led-failsafe = &diag_r;
+               led-running = &power_g;
 
-                       dsl = &dsl;
-                       internet = &router_g;
-                       wifi = &wifi_g;
-               };
+               led-dsl = &dsl;
+               led-internet = &router_g;
+               led-wifi = &wifi_g;
        };
 
        memory@0 {