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