ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr802n.dtsi
index 1835cbcb96e8c3c7034af4ac99fbe6a4769e868c..4be1ced4b215521d77d6f9ac73ba734e70d5b973 100644 (file)
@@ -73,7 +73,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>;
+       };
 };