[openwrt/openwrt] ath79: aruba,ap115: use nvmem
LEDE Commits
lede-commits at lists.infradead.org
Sat Oct 19 14:17:33 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/be2be0f32ee9e9059e8307f8fa10e7873e5d08ac
commit be2be0f32ee9e9059e8307f8fa10e7873e5d08ac
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Mon Nov 27 11:40:48 2023 -0800
ath79: aruba,ap115: use nvmem
Userspace handling is deprecated.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16284
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ath79/dts/qca9558_aruba_ap-115.dts | 20 +++++++++++++-------
.../etc/hotplug.d/firmware/10-ath9k-eeprom | 6 ------
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/target/linux/ath79/dts/qca9558_aruba_ap-115.dts b/target/linux/ath79/dts/qca9558_aruba_ap-115.dts
index a5318b6cdd..7a59bda6eb 100644
--- a/target/linux/ath79/dts/qca9558_aruba_ap-115.dts
+++ b/target/linux/ath79/dts/qca9558_aruba_ap-115.dts
@@ -98,10 +98,9 @@
ath9k: wifi at 0,0 {
compatible = "pci168c,0033";
reg = <0x0000 0 0 0 0>;
- qca,no-eeprom;
- nvmem-cells = <&macaddr_oemdata_1d 1>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_oemdata_1d 1>, <&cal_oemdata_5000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
};
@@ -161,7 +160,7 @@
reg = <0x100000 0xe00000>;
};
- oemdata: partition at fe0000 {
+ partition at fe0000 {
label = "oemdata";
reg = <0xfe0000 0x010000>;
read-only;
@@ -176,6 +175,14 @@
reg = <0x1d 0x6>;
#nvmem-cell-cells = <1>;
};
+
+ cal_oemdata_1000: calibration at 1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ cal_oemdata_5000: calibration at 5000 {
+ reg = <0x5000 0x440>;
+ };
};
};
@@ -190,9 +197,8 @@
&wmac {
status = "okay";
- qca,no-eeprom;
- nvmem-cells = <&macaddr_oemdata_1d 0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_oemdata_1d 0>, <&cal_oemdata_1000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
&mdio0 {
diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
index 6341c56a8b..17639ad439 100644
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
@@ -9,9 +9,6 @@ board=$(board_name)
case "$FIRMWARE" in
"ath9k-eeprom-ahb-18100000.wmac.bin")
case $board in
- aruba,ap-115)
- caldata_extract "oemdata" 0x1000 0x440
- ;;
asus,pl-ac56|\
asus,rp-ac51|\
asus,rp-ac66)
@@ -73,9 +70,6 @@ case "$FIRMWARE" in
;;
"ath9k-eeprom-pci-0000:00:00.0.bin")
case $board in
- aruba,ap-115)
- caldata_extract "oemdata" 0x5000 0x440
- ;;
avm,fritz300e)
caldata_extract_reverse "urloader" 0x1541 0x440
;;
More information about the lede-commits
mailing list