[openwrt/openwrt] ath79: whr-g301n: use nvmem for eeprom
LEDE Commits
lede-commits at lists.infradead.org
Thu Sep 18 02:11:07 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/beb11add8be927f6f99c39be229af75f3a636046
commit beb11add8be927f6f99c39be229af75f3a636046
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Thu Sep 11 16:46:53 2025 -0700
ath79: whr-g301n: use nvmem for eeprom
Userspace handling for this is deprecated.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20023
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/ath79/dts/ar7240_buffalo_whr-g301n.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/ar7240_buffalo_whr-g301n.dts b/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
index fe72ad21e8..a72a89a218 100644
--- a/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
+++ b/target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts
@@ -156,6 +156,10 @@
#address-cells = <1>;
#size-cells = <1>;
+ cal_art_1000: calibration at 1000 {
+ reg = <0x1000 0xeb8>;
+ };
+
macaddr_art_120c: macaddr at 120c {
compatible = "mac-base";
reg = <0x120c 0x6>;
@@ -185,9 +189,8 @@
ath9k: wifi at 0,0 {
compatible = "pci168c,002a";
reg = <0x0000 0 0 0 0>;
- qca,no-eeprom;
- nvmem-cells = <&macaddr_art_120c 0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&cal_art_1000>, <&macaddr_art_120c 0>;
+ 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 e7b9ed2563..6976a24c07 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
- buffalo,whr-g301n|\
engenius,eap350-v1|\
engenius,ecb350-v1|\
engenius,enh202-v1)
More information about the lede-commits
mailing list