[openwrt/openwrt] ramips: Fix wmac dts definition for TP-Link TL-MR6400 v4 and v5
LEDE Commits
lede-commits at lists.infradead.org
Thu May 16 03:13:52 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ff3d0de095065fe642177940c055825f859e5a07
commit ff3d0de095065fe642177940c055825f859e5a07
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu May 9 12:28:35 2024 +0200
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 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 at hauke-m.de>
---
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts | 6 ++++--
target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
index 21d1e48336..19783274e7 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v4.dts
@@ -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";
};
ðernet {
diff --git a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
index 1bd35fc334..857e61f614 100644
--- a/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
+++ b/target/linux/ramips/dts/mt7628an_tplink_tl-mr6400-v5.dts
@@ -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";
};
ðernet {
More information about the lede-commits
mailing list