lantiq: add support for indicating the boot state using three leds
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4510PW.dts
index adba211eacae5651f5e1d2474927f288e2768f2d..18b2da8fd4b02345a64dccf52f9e8f8801ab7b99 100644 (file)
@@ -7,6 +7,18 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       boot = &power;
+                       failsafe = &power2;
+                       running = &power;
+
+                       dsl = &adsl;
+                       internet = &internet;
+                       usb = &usb;
+                       usb2 = &usb2;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                                ebu {
                                        lantiq,groups = "ebu a23";
                                        lantiq,function = "ebu";
+                                       lantiq,open-drain = <0>;
                                        lantiq,output = <1>;
                                };
                                stp {
                                        lantiq,groups = "stp";
                                        lantiq,function = "stp";
+                                       lantiq,open-drain = <0>;
                                        lantiq,output = <1>;
                                };
                                exin {
                                pci_out {
                                        lantiq,groups = "gnt1", "gnt2";
                                        lantiq,function = "pci";
+                                       lantiq,open-drain = <0>;
+                                       lantiq,pull = <0>;
                                        lantiq,output = <1>;
                                };
                                pci_rst {
                                        lantiq,pins = "io21";
-                                       lantiq,open-drain;
+                                       lantiq,open-drain = <0>;
                                        lantiq,output = <1>;
                                };
                                buttons {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpios 21 0>;
+                       default-state = "keep";
                };
-               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>;
                };