ath79: convert Araknis AN-300-AP-I-N WiFis to nvmem-cells
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_tplink_archer-d7-v1.dts
index fd1717b66885d8d1cb975bd8b98758e952efda55..4f822fbc7d145478b249bcb8a2545622ac717912 100644 (file)
 };
 
 &eth0 {
-       mtd-mac-address = <&romfs 0xf100>;
-       mtd-mac-address-increment = <1>;
+       nvmem-cells = <&macaddr_romfs_f100>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
 };
 
 &eth1 {
-       mtd-mac-address = <&romfs 0xf100>;
+       nvmem-cells = <&macaddr_romfs_f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&romfs 0xf100>;
+       nvmem-cells = <&macaddr_romfs_f100>;
+       nvmem-cell-names = "mac-address";
+};
+
+&romfs {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_romfs_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
 };