ramips: remove bogus ralink,mtd-eeprom with offset 0x4
[openwrt/openwrt.git] / target / linux / ramips / dts / MIWIFI-NANO.dts
index a39f3392ac7bff30a5a60bd1788f5d0b204faae8..210c00cfb954386472785de0f9cf0ad76227c59a 100644 (file)
        model = "MiWiFi Nano";
 
        aliases {
-               led-status = &led_blue;
+               led-boot = &led_blue;
+               led-failsafe = &led_blue;
+               led-running = &led_blue;
+               led-upgrade = &led_blue;
        };
 
        chosen {
@@ -22,7 +25,7 @@
                reg = <0x0 0x4000000>;
        };
 
-       gpio-leds {
+       leds {
                compatible = "gpio-leds";
 
                led_blue: status_blue {
@@ -39,7 +42,7 @@
                };
        };
 
-       gpio-keys {
+       keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
 
@@ -62,7 +65,6 @@
 
 &wmac {
        status = "okay";
-       ralink,mtd-eeprom = <&factory 0x4>;
 };
 
 &ethernet {
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
-               m25p,chunked-io = <32>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0xfb0000>;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               compatible = "denx,uimage";
+                               label = "firmware";
+                               reg = <0x50000 0xfb0000>;
+                       };
                };
        };
 };