ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20-v1.dts
index 89f48dc7d31e6d5427376e1e04ffe06ec58e58c4..2248da5b102e0752d73d358beff7248973ea9342 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&pa_pins>;
 
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-2)>;
 };
 
 &wifi {
-       mtd-mac-address = <&rom 0xf100>;
+       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <(-1)>;
 };
+
+&rom {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_rom_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};