ramips: Fix wmac dts definition for TP-Link TL-MR6400 v4 and v5
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 9 May 2024 10:28:35 +0000 (12:28 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 16 May 2024 10:11:08 +0000 (13:11 +0300)
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 e93f41adee3e
("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 0a1d15642fa6 ("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: e93f41adee3e ("ramips: convert MT7628 EEPROM to NVMEM format")
Fixes: 0a1d15642fa6 ("ramips: mt7628: use nvmem-layout")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts

index 21d1e483361eac8da6bad1bf1e3fb6e634c81cf0..19783274e7f5a45694f75250bbaf94ab8edcaac2 100644 (file)
 };
 
 &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 {
index 1bd35fc33491a58f05f0cf374a59f096518fa538..857e61f614abf9e96c220258b3cbd1bd7b787ea8 100644 (file)
 };
 
 &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 {