[openwrt/openwrt] ath79: convert Netgear R6100 radio calibration to nvmem-cells
LEDE Commits
lede-commits at lists.infradead.org
Tue Dec 6 14:11:28 PST 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/58088ff457afff5fcfa4b32f00c44593f4b7b2c1
commit 58088ff457afff5fcfa4b32f00c44593f4b7b2c1
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Tue Nov 29 18:13:19 2022 +0800
ath79: convert Netgear R6100 radio calibration to nvmem-cells
use nvmem-cells implementation to avoid copying art calibration data
to rootfs.
Tested on Netgear R6100
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
target/linux/ath79/dts/ar9344_netgear_r6100.dts | 15 ++++++++++++---
.../base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 3 ---
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/target/linux/ath79/dts/ar9344_netgear_r6100.dts b/target/linux/ath79/dts/ar9344_netgear_r6100.dts
index a73ea52de9..76bd77d4c6 100644
--- a/target/linux/ath79/dts/ar9344_netgear_r6100.dts
+++ b/target/linux/ath79/dts/ar9344_netgear_r6100.dts
@@ -181,8 +181,8 @@
compatible = "qcom,ath10k";
reg = <0x0000 0 0 0 0>;
- nvmem-cells = <&macaddr_caldata_c>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&cal_ath10k>, <&macaddr_caldata_c>;
+ nvmem-cell-names = "calibration", "mac-address";
};
};
@@ -201,7 +201,8 @@
&wmac {
status = "okay";
- mtd-cal-data = <&caldata 0x1000>;
+ nvmem-cells = <&cal_ath9k>;
+ nvmem-cell-names = "calibration";
};
&caldata {
@@ -209,6 +210,14 @@
#address-cells = <1>;
#size-cells = <1>;
+ cal_ath9k: calibration at 1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ cal_ath10k: calibration at 5000 {
+ reg = <0x5000 0x844>;
+ };
+
macaddr_caldata_0: macaddr at 0 {
reg = <0x0 0x6>;
};
diff --git a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index e5c26d6bb5..d26625981e 100644
--- a/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -18,9 +18,6 @@ case "$FIRMWARE" in
caldata_extract "art" 0x5000 0x844
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) 1)
;;
- netgear,r6100)
- caldata_extract "caldata" 0x5000 0x844
- ;;
zyxel,emg2926-q10a|\
zyxel,nbg6716)
caldata_extract "art" 0x5000 0x844
More information about the lede-commits
mailing list