ramips: add support for indicating the boot state using multiple leds
[openwrt/openwrt.git] / target / linux / ramips / dts / WIZFI630A.dts
index ac9729dc0dbf26063920d7eec7e360dfd685d382..cfd9fb1e336ab4cecef8c3b274362de4f56766b1 100644 (file)
        model = "WIZnet WizFi630A";
 
        aliases {
-               led-status = &led_run;
+               led-boot = &led_run;
+               led-failsafe = &led_run;
+               led-running = &led_run;
+               led-upgrade = &led_run;
        };
 
        chosen {
@@ -43,8 +46,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -58,7 +59,7 @@
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
-               
+
                scm1 {
                        label = "SCM1";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
 
-               partition@0 {
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
                        #size-cells = <1>;
-                       label = "uboot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       #size-cells = <1>;
-                       label = "uboot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
 
-               factory: partition@40000 {
-                       #size-cells = <1>;
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
-
-               partition@50000 {
-                       #size-cells = <1>;
-                       label = "firmware";
-                       reg = <0x50000 0xfb0000>;
+                       partition@0 {
+                               #size-cells = <1>;
+                               label = "uboot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               #size-cells = <1>;
+                               label = "uboot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               #size-cells = <1>;
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               #size-cells = <1>;
+                               label = "firmware";
+                               reg = <0x50000 0xfb0000>;
+                       };
                };
        };
 };