ramips: mt7621: nix mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-flexhd.dts
index f9cdf4433c602c57d42d8b0a1a460e61e058b2ff..36df3ef883dcc898dfd22bcf434a86fd33fa58bb 100644 (file)
@@ -74,7 +74,9 @@
                                        #size-cells = <1>;
 
                                        macaddr_eeprom_0: macaddr@0 {
+                                               compatible = "mac-base";
                                                reg = <0x0 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
 };
 
 &gmac0 {
-       nvmem-cells = <&macaddr_eeprom_0>;
+       nvmem-cells = <&macaddr_eeprom_0 0>;
        nvmem-cell-names = "mac-address";
 };
 
                mediatek,mtd-eeprom = <&factory 0x0>;
                // On newer devices there is a MediaTek MAC in the above
                // device EEPROM, so override it with a calculated one.
-               nvmem-cells = <&macaddr_eeprom_0>;
+               nvmem-cells = <&macaddr_eeprom_0 1>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <1>;
        };
 };
 
                mediatek,mtd-eeprom = <&factory 0x8000>;
                // On newer devices there is a MediaTek MAC in the above
                // device EEPROM, so override it with a calculated one.
-               nvmem-cells = <&macaddr_eeprom_0>;
+               nvmem-cells = <&macaddr_eeprom_0 2>;
                nvmem-cell-names = "mac-address";
-               mac-address-increment = <2>;
        };
 };