ramips: mt7628: use mac-base
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr902ac-v3.dts
index d3558547b8eec3c8a0ff7fb2122fbea3e59464b1..0029be21e0f9045b2d0d3912ee08b67db456a689 100644 (file)
        };
 };
 
+&wmac {
+       status = "okay";
+
+       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
+       nvmem-cell-names = "eeprom", "mac-address";
+};
+
 &pcie {
        status = "okay";
 };
@@ -90,9 +97,8 @@
 &pcie0 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x28000>;
                ieee80211-freq-limit = <5000000 6000000>;
-               mtd-mac-address = <&factory 0xf100>;
-               mac-address-increment = <(-1)>;
+               nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
+               nvmem-cell-names = "eeprom", "mac-address";
        };
 };