[openwrt/openwrt] ath79: convert Netgear EX7300 caldata to nvmem
LEDE Commits
lede-commits at lists.infradead.org
Tue Jan 24 15:44:07 PST 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7396263680b951211f33f2aa266b11bdd0047adc
commit 7396263680b951211f33f2aa266b11bdd0047adc
Author: Wenli Looi <wlooi at ucalgary.ca>
AuthorDate: Mon Jan 23 18:37:07 2023 +0000
ath79: convert Netgear EX7300 caldata to nvmem
Transition to specify caldata in the DTS.
Signed-off-by: Wenli Looi <wlooi at ucalgary.ca>
---
target/linux/ath79/dts/qca9558_netgear_ex7300.dts | 25 +++++++++++++++++++---
.../etc/hotplug.d/firmware/11-ath10k-caldata | 4 ----
2 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/target/linux/ath79/dts/qca9558_netgear_ex7300.dts b/target/linux/ath79/dts/qca9558_netgear_ex7300.dts
index fc0b6de96c..b94ccd30b7 100644
--- a/target/linux/ath79/dts/qca9558_netgear_ex7300.dts
+++ b/target/linux/ath79/dts/qca9558_netgear_ex7300.dts
@@ -121,6 +121,14 @@
&pcie0 {
status = "okay";
+
+ wifi at 0,0 {
+ compatible = "qcom,ath10k";
+ reg = <0 0 0 0 0>;
+
+ nvmem-cells = <&macaddr_caldata_c>, <&precal_caldata_5000>;
+ nvmem-cell-names = "mac-address", "pre-calibration";
+ };
};
&spi {
@@ -186,9 +194,8 @@
&wmac {
status = "okay";
- mtd-cal-data = <&caldata 0x1000>;
- nvmem-cells = <&macaddr_caldata_6>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_caldata_6>, <&cal_caldata_1000>;
+ nvmem-cell-names = "mac-address", "calibration";
};
&mdio0 {
@@ -224,4 +231,16 @@
macaddr_caldata_6: macaddr at 6 {
reg = <0x6 0x6>;
};
+
+ macaddr_caldata_c: macaddr at c {
+ reg = <0xc 0x6>;
+ };
+
+ cal_caldata_1000: cal at 1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ precal_caldata_5000: precal at 5000 {
+ reg = <0x5000 0x2f20>;
+ };
};
diff --git a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index b4a2209fdf..b0b91f1c8a 100644
--- a/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -216,10 +216,6 @@ case "$FIRMWARE" in
ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
;;
- netgear,ex7300)
- caldata_extract "caldata" 0x5000 0x2f20
- ath10k_patch_mac $(mtd_get_mac_binary caldata 0xc)
- ;;
phicomm,k2t)
caldata_extract "art" 0x5000 0x2f20
ath10k_patch_mac $(k2t_get_mac "5g_mac")
More information about the lede-commits
mailing list