ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr902ac-v3.dts
index d3558547b8eec3c8a0ff7fb2122fbea3e59464b1..fe10600cb9179926965d8b15dc41f93d304b798e 100644 (file)
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&factory 0x28000>;
                ieee80211-freq-limit = <5000000 6000000>;
-               mtd-mac-address = <&factory 0xf100>;
+               nvmem-cells = <&macaddr_factory_f100>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <(-1)>;
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_f100: macaddr@f100 {
+               reg = <0xf100 0x6>;
+       };
+};