ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt2880_airlink101_ar670w.dts
index 213868db86823d50ee8ea53b4ba046d614180d11..dc61cd9da506d460f033dc1b8af16ed6b556b3f2 100644 (file)
                                reg = <0x30000 0x10000>;
                                label = "factory";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_2000: eeprom@2000 {
+                                               reg = <0x2000 0x200>;
+                                       };
+
+                                       macaddr_factory_2004: macaddr@2004 {
+                                               reg = <0x2004 0x6>;
+                                       };
+                               };
                        };
 
                        partition@40000 {
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &state_default {
        gpio {
                groups = "i2c", "spi", "uartlite";
@@ -89,7 +99,8 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x2004>;
+       nvmem-cells = <&macaddr_factory_2004>;
+       nvmem-cell-names = "mac-address";
 
        port@0 {
                phy-handle = <&phy0>;
 };
 
 &wmac {
-       status = "okay";
-       ralink,mtd-eeprom = <&factory 0x2000>;
+       nvmem-cells = <&eeprom_factory_2000>;
+       nvmem-cell-names = "eeprom";
 };