#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>;
};
};