ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wx.dtsi
index 14e10596b58bdabfa1c3fd40a2f63ed41e70fb87..3a38b8025abdd9f8c7728b21f65e46e0d5556f1a 100644 (file)
@@ -50,7 +50,8 @@
 
        phy-handle = <&swphy4>;
 
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
        status = "okay";
 
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+};
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
 };