ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c20-v5.dts
index 38879d70e69a9463a37e38409f7b88c6966b090f..4f5faf2ee0ce1269fb2b503bc96946fe68000a5a 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>;
+       };
+};