ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c50-v4.dts
index 34170547a4e8a6cfdc0a767c905718bd2f89df72..2a6963ab1cb7359f459e83cb8079e9daaf54e108 100644 (file)
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 0x8000>;
                ieee80211-freq-limit = <5000000 6000000>;
-               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>;
+       };
+};