ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9558_tplink_tl-wr1043nd.dtsi
index 8f2b626bad2067a4112ab75235b72652ebc9247a..ff7ea7da039ba0a5c601af23c665a33fed7bb0f0 100644 (file)
 
        pll-data = <0x56000000 0x00000101 0x00001616>;
 
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
        phy-handle = <&phy0>;
 };
 
        pll-data = <0x03000101 0x00000101 0x00001616>;
 
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 
        fixed-link {
                speed = <1000>;
 &wmac {
        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>;
+       };
 };