ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/stintel.git] / target / linux / ramips / dts / rt3050_asus_rt-n10-plus.dts
index af6ebf00628f90adcc5763cd1b02a5524cc67ee7..1154d205b76e1cf934b277f07267f10b3a348191 100644 (file)
                        };
 
                        devconf: partition@40000 {
+                               compatible = "nvmem-cells";
                                label = "devconf";
                                reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                read-only;
+
+                               eeprom_devconf_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
+
+                               macaddr_devconf_4: macaddr@4 {
+                                       reg = <0x4 0x6>;
+                               };
                        };
 
                        partition@50000 {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&devconf 0x0>;
-};
-
-&devconf {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_devconf_4: macaddr@4 {
-               reg = <0x4 0x6>;
-       };
+       nvmem-cells = <&eeprom_devconf_0>;
+       nvmem-cell-names = "eeprom";
 };