ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_tplink_archer-mr200.dts
index 4212a70dc34aaeea0079f1e08aca430bd42bd2ee..1222ff2fcd5c1bc89231d9db9ba65b639397c578 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ehci {
                mediatek,mtd-eeprom = <&radio 0x8000>;
        };
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};