ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3050_asus_rt-g32-b1.dts
index 0baa2feac9445e95ca47550345f8d94022bb7453..0d4d8f4cfd5560929f3d666917b2b5e070bbb765 100644 (file)
@@ -73,7 +73,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&devconf 0x4>;
+       nvmem-cells = <&macaddr_devconf_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&devconf 0x0>;
 };
+
+&devconf {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_devconf_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};