ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7620a_netgear_ex2700.dts
index e09d9c607b88661bf29f88e8c3b554b3b9c99ff6..e4d280e35ded53146b94d60113adf4af86ffae94 100644 (file)
                        };
 
                        art: partition@3f0000 {
+                               compatible = "nvmem-cells";
                                label = "art";
                                reg = <0x3f0000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               macaddr_art_0: macaddr@0 {
+                                       reg = <0x0 0x6>;
+                               };
+
+                               macaddr_art_6: macaddr@6 {
+                                       reg = <0x6 0x6>;
+                               };
+
+                               eeprom_art_1000: eeprom@1000 {
+                                       reg = <0x1000 0x200>;
+                               };
                        };
                };
        };
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&art 0x1000>;
-
-       nvmem-cells = <&macaddr_art_6>;
-       nvmem-cell-names = "mac-address";
+       nvmem-cells = <&eeprom_art_1000>, <&macaddr_art_6>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &state_default {
                function = "gpio";
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_0: macaddr@0 {
-               reg = <0x0 0x6>;
-       };
-
-       macaddr_art_6: macaddr@6 {
-               reg = <0x6 0x6>;
-       };
-};