ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_iptime.dtsi
index c7c90ca722c9ce403ac0e7c55ecfcaa860e695fe..3e2378aa60b3fbc76f9ad99f114e396414803581 100644 (file)
@@ -49,7 +49,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&uboot 0x1fc20>;
+       nvmem-cells = <&macaddr_uboot_1fc20>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ehci {
 
        ralink,mtd-eeprom = <&uboot 0x1f400>;
 };
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc20: macaddr@1fc20 {
+               reg = <0x1fc20 0x6>;
+       };
+};