ramips: mt7620a: use mac-base
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c2-v1.dts
index 7c1d7b483dcc19be61cf0fbf8ad6659a4fa03d05..88d241601019ab404f18c9236cb7138c36dd561b 100644 (file)
                                        #size-cells = <1>;
 
                                        macaddr_rom_f100: macaddr@f100 {
+                                               compatible = "mac-base";
                                                reg = <0xf100 0x6>;
+                                               #nvmem-cell-cells = <1>;
                                        };
                                };
                        };
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
 
-       nvmem-cells = <&macaddr_rom_f100>;
+       nvmem-cells = <&macaddr_rom_f100 0>;
        nvmem-cell-names = "mac-address";
 
        port@5 {
 };
 
 &wmac {
-       nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100>;
+       nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
        nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &pcie0 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100>;
+               nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
                nvmem-cell-names = "eeprom", "mac-address";
-               mac-address-increment = <(-1)>;
        };
 };