[openwrt/openwrt] ath79: wnr200-v3: handle eeprom with nvmem
LEDE Commits
lede-commits at lists.infradead.org
Fri Sep 26 15:44:26 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/605543bc7b0a6a8f7bd2e023f682a5ad56fd41a2
commit 605543bc7b0a6a8f7bd2e023f682a5ad56fd41a2
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Thu Sep 11 17:40:55 2025 -0700
ath79: wnr200-v3: handle eeprom with nvmem
Userspace handling is deprecated.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20112
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts | 9 ++++++---
.../ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom | 1 -
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts b/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
index 8550989250..ede370daa3 100644
--- a/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
+++ b/target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts
@@ -193,6 +193,10 @@
macaddr_art_6: macaddr at 6 {
reg = <0x6 0x6>;
};
+
+ cal_art_1000: calibration at 1000 {
+ reg = <0x1000 0x3d8>;
+ };
};
};
};
@@ -219,9 +223,8 @@
ath9k: wifi at 0,0 {
compatible = "pci168c,002e";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&macaddr_art_0 1>;
- nvmem-cell-names = "mac-address";
- qca,no-eeprom;
+ nvmem-cells = <&cal_art_1000>, <&macaddr_art_0 1>;
+ nvmem-cell-names = "calibration", "mac-address";
#gpio-cells = <2>;
gpio-controller;
};
diff --git a/target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index 5e9ff10eba..f55d9829e3 100644
--- a/target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -9,7 +9,6 @@ board=$(board_name)
case "$FIRMWARE" in
"ath9k-eeprom-pci-0000:00:00.0.bin")
case $board in
- netgear,wnr2000-v3|\
ubnt,airrouter|\
ubnt,bullet-m-ar7240|\
ubnt,bullet-m-ar7241|\
More information about the lede-commits
mailing list