pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
port@5 {
status = "okay";
&wmac {
ralink,mtd-eeprom = <&radio 0x0>;
- mtd-mac-address = <&rom 0xf100>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
};
&ehci {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 0x8000>;
- mtd-mac-address = <&rom 0xf100>;
- mtd-mac-address-increment = <(-1)>;
+ nvmem-cells = <&macaddr_rom_f100>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <(-1)>;
+ };
+};
+
+&rom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_rom_f100: macaddr@f100 {
+ reg = <0xf100 0x6>;
};
};