ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3050_asus_rt-n10-plus.dts
index 5c1975595fec7c4b68c5e6618654e46ee399a8c9..a452a44202fcef94038104ba6dcf3dfa3e8e92f7 100644 (file)
                                label = "devconf";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_devconf_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_devconf_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
@@ -79,7 +93,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&devconf 0x4>;
+       nvmem-cells = <&macaddr_devconf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&devconf 0x0>;
+       nvmem-cells = <&eeprom_devconf_0>;
+       nvmem-cell-names = "eeprom";
 };