lantiq: define default leds in dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / EASY80920.dtsi
index a9293af..bdd7596 100644 (file)
@@ -3,6 +3,12 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       power = &power;
+                       usb = &usb1;
+                       usb2 = &usb2;
+               };
        };
 
        memory@0 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               power: power {
                        label = "power";
                        gpios = <&stp 9 0>;
                        default-state = "on";
                        label = "fxo";
                        gpios = <&stp 19 0>;
                };
-               usb1 {
+               usb1: usb1 {
                        label = "usb1";
                        gpios = <&stp 18 0>;
                };
-               usb2 {
+               usb2: usb2 {
                        label = "usb2";
                        gpios = <&stp 15 0>;
                };