ramips: mt7621: nix mac-address-increment
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_dlink_dir-xx60-a1.dtsi
index 9d770dda2f708abb74f75a86c934780dd49bd6cf..6eb3f3cdd9bf7dfd3ee165d9a577c40bb724440e 100644 (file)
@@ -94,7 +94,9 @@
                                };
 
                                macaddr_factory_e000: macaddr@e000 {
+                                       compatible = "mac-base";
                                        reg = <0xe000 0x6>;
+                                       #nvmem-cell-cells = <1>;
                                };
 
                                macaddr_factory_e006: macaddr@e006 {
        wifi0: wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_factory_0>;
+               nvmem-cells = <&macaddr_factory_e000 1>;
                nvmem-cell-names = "eeprom";
                ieee80211-freq-limit = <2400000 2500000>;
 
        wifi1: wifi@0,0 {
                compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_factory_8000>;
+               nvmem-cells = <&macaddr_factory_e000 2>;
                nvmem-cell-names = "eeprom";
                ieee80211-freq-limit = <5000000 6000000>;
 
 };
 
 &gmac0 {
-       nvmem-cells = <&macaddr_factory_e000>;
+       nvmem-cells = <&macaddr_factory_e000 0>;
        nvmem-cell-names = "mac-address";
 };