lantiq: define default leds in dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / P2601HNFX.dts
index bb9193e..3193c39 100644 (file)
@@ -7,6 +7,14 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       dsl = &dsl;
+                       internet = &online;
+                       power = &power;
+                       power2 = &power2;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               power: power {
                        label = "power";
                        gpios = <&stp 11 1>;
                        default-state = "on";
                };
-               power2 {
+               power2: power2 {
                        label = "power2";
                        gpios = <&gpio 29 1>;
                };
-               online {
+               online: online {
                        label = "online";
                        gpios = <&stp 13 1>;
                };
                        label = "online2";
                        gpios = <&stp 12 1>;
                };
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&stp 14 1>;
                };
                        label = "phone2";
                        gpios = <&stp 8 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&stp 15 1>;
                };