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 456e54bb3f9d3381acf2c0f3f9e5de5eb9a69ce6..e4eb4d723f19d147c36f2d7b2ef818b55e8b5f7f 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 bbfec2f7f9f3a1d71d9ba1bba2b656b95392147b..dca7a35794b481bc10243c3d9fd05325a7da940c 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 2145d074b3e13e42f8e0fb14c9b17c2a7475e557..3b29481a5409acc412e4d6fa206b646b8f2710a4 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 f1e61766dbafb9ca2be7a3108311976d65b8cfb4..932bc4a0acbf0d9bfe8ba00f3641869d52320b9c 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 a7d529bc63086c02aeaeaca667cd7bb6870e25f4..8edca24705816e1ba2c1df65c192e781a5d229c8 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 5d2c3272084de2203aaee8750f216c4bf659277c..0f264ffbf702991ae8beeb3d561bce40af7ddf1d 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 152b7af992d25dfacd100c24653cad474f979299..b8910421fe74ef992f49626ae34b56ad914025bf 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 14630450fee509ba56ce516ac16d863f4ae2841f..215d4428d530acbce94580268b4cf2b482a630af 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 fb03017f1dd5e6bea4b674008509e67fd555b7ef..ac974091ddbb20da316ac23ae2423d42d7c969f2 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 6e2b8ef6d3cccdf727128b5ca0df71b6287821f7..7e6a28ad035e50be2df962656c0ff076c72e68c8 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 b6e04d69dafde07fe17d39c3ecaba50fd258dba2..57c1bde5ff87a8f6788707468d9f6fe74c7d6074 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 a15556b0f1aa4c16aeb478a259d3f0fbbb302c10..f1d5f6325666537939a481a5269724fe75809de1 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 be1bf755a4837b82fbeed2f47ade7be775339e5b..e8893626abd9f6c911d8fc08d6c6b77a00378105 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 a54e15cb1aa0c9ac290497cefa6ea803e5697462..e37c795197e2b1731fe66ff421ff971f834e41a9 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 d7103fbd22e894fd1006652ac051434fcfc8aafc..db4a639b413f083a96a1c26abf8512a95c1e6b7b 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 8a6a07b274925225806aa3613cbc252ebe06e6c2..76034fded06224ddc46588ca2a42424653a93bbd 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 0165156faa49f54b4fccc7464853a2531f6374dd..22875808c9b4e26f37b77f0daeef54c8952d0e45 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 1d61d81af26c63098331868ddacc7e87287a6f98..78799977272129416d606c8354f02dff99ed6e53 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 fcfd8c735ae2e5262bc2cdb47e4eb7d5469b3474..fa00f7037a8614906d0f31cd9689a9c3aa7c8801 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 a011c71aa230abc67f57538cde1278c7eded5e03..b84eab02861d987a86b81c263cfc10926676ab0d 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 bc50e4ae6501b0433b097dc00c7c0e3f821a1d6f..f86ccc5d23c275b843cdb59815636aaf023f2ec1 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 47b7a07f2cd1dad3a1246847a9cd5964bd3081f6..57dc4574eccbefb2fd493858a484e4cea28d8b0f 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 d802ca70b4f30f267eff6721b4d79b107ec96412..35880f5e20d014f1a152e6e61ad5f7f4a9351061 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 acb88b60a0c225bbee4ba0ae3f56aee3ec497716..643546c4b3aef084f475d542cf51ad8c97663368 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 e8fdc13cb33b5dd753532731477d56f3282c7a81..02e97810f6ad03bbcfc8ce59efa9212cfc39b74a 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 e6e514fc36e3940e83ad9b7fd5d28a7f49fa7fa7..c4208e3c1f21d34e93da207084eb0ac7d3413e4c 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 c1b4c617de5b0db7ad86f28111cea7e204ead56e..5ab5ae7a1068b5bc6295e4438ba31ae45fd95724 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 10bc4b1c054bcf8104bb8c9b7c1a14f2d09a2fd3..87b2f8a6a61537ab84450e703adf89a77dda978b 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 88f4d757fc281ae391284fc0a47d1448a7cd8059..30eee502d0ba51e7067bbaad7f4ef2ec24a44a66 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 b3eaf7373f2c764954cd4621e814711fb05e6b75..d6a89fe0f7e2a3362c44e6418f9ed04145ebe5b9 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 1aeb4f19f80b50f813d48b999d3254445d78ac65..b8437ebd12cbe6f3c61e902f137b6d05eb70dae8 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 0284831c193b509d360360b6ba549a697756652d..4f2ae47193094105f1428b457ae6dd54e85f3fa0 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 b2399afe7e2e81439cb9a62f035a0fe0b730ddf5..103a9f5a56499ed9f98c8d56f283e64aa0ea0d62 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 e281042f5ba7c7c2da0eed75d0142b3203083ce0..8715b89852a078d52a59d929c6125ba1be19aeba 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 ba48dd13ec3ea4771099e1cf3e43699583743e9c..067ca87d46bb15a8dd566575c70093d0888ddcdf 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 824efb7cc086625b3e1c0f4a582cc1dac63b0839..02ec172d92d66b1b71dc272623ab7caf44d6808e 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 {