ramips: Fix wmac dts definition for TP-Link TL-MR6400 v4 and v5

This code assumed that the mt7628an_tplink_8m.dtsi file defines
mediatek,mtd-eeprom for the wmac and sets status to okay.

The mediatek,mtd-eeprom definition was removed in commit e93f41adee
("ramips: convert MT7628 EEPROM to NVMEM format") but the dts for these
two devices was not adapted to include the eeprom position on its own.

The status = "okay" property was removed in 0a1d15642f ("ramips:
mt7628: use nvmem-layout"), but the property was not added to these dts
files.

Without this change wifi does not work for these devices.

Fixes: e93f41adee ("ramips: convert MT7628 EEPROM to NVMEM format")
Fixes: 0a1d15642f ("ramips: mt7628: use nvmem-layout")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens 2024-05-09 12:28:35 +02:00
parent 8b0fa6d30b
commit ff3d0de095
2 changed files with 8 additions and 4 deletions

View File

@ -89,8 +89,10 @@
};
&wmac {
nvmem-cells = <&macaddr_factory_1f100>;
nvmem-cell-names = "mac-address";
status = "okay";
nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_1f100>;
nvmem-cell-names = "eeprom", "mac-address";
};
&ethernet {

View File

@ -89,8 +89,10 @@
};
&wmac {
nvmem-cells = <&macaddr_factory_1f100>;
nvmem-cell-names = "mac-address";
status = "okay";
nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_1f100>;
nvmem-cell-names = "eeprom", "mac-address";
};
&ethernet {