ath79: qca: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_tplink_archer-d7-v1.dts
index fd1717b66885d8d1cb975bd8b98758e952efda55..5869ee16e39ca25365390e55848a0bf63574604c 100644 (file)
                                label = "romfs";
                                reg = <0xfd0000 0x010000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_romfs_f100: macaddr@f100 {
+                                               compatible = "mac-base";
+                                               reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
+                                       };
+                               };
                        };
 
                        partition@fe0000 {
 };
 
 &eth0 {
-       mtd-mac-address = <&romfs 0xf100>;
-       mtd-mac-address-increment = <1>;
+       nvmem-cells = <&macaddr_romfs_f100 1>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
-       mtd-mac-address = <&romfs 0xf100>;
+       nvmem-cells = <&macaddr_romfs_f100 0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&romfs 0xf100>;
+       nvmem-cells = <&macaddr_romfs_f100 0>;
+       nvmem-cell-names = "mac-address";
 };