[openwrt/openwrt] ath79: use nvmem-cells for radio calibration of EAP1200H
LEDE Commits
lede-commits at lists.infradead.org
Sun Nov 27 04:26:19 PST 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/128947db42036bcc98fa7f6d70e3b2e5cb494e18
commit 128947db42036bcc98fa7f6d70e3b2e5cb494e18
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Wed Nov 23 16:00:28 2022 -0500
ath79: use nvmem-cells for radio calibration of EAP1200H
Transition from userscript to DTS for all of ART.
Signed-off-by: Michael Pratt <mcpratt at pm.me>
---
.../linux/ath79/dts/qca9557_engenius_eap1200h.dts | 23 +++++++++++++++++-----
target/linux/ath79/dts/qca955x_senao_loader.dtsi | 2 +-
.../etc/hotplug.d/firmware/11-ath10k-caldata | 1 -
3 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts b/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts
index 3b3a3e3c3d..13c03e717a 100644
--- a/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts
+++ b/target/linux/ath79/dts/qca9557_engenius_eap1200h.dts
@@ -89,18 +89,31 @@
&wmac {
status = "okay";
- mtd-cal-data = <&art 0x1000>;
- nvmem-cells = <&macaddr_art_0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_art_0>, <&calibration_ath9k>;
+ nvmem-cell-names = "mac-address", "calibration";
mac-address-increment = <1>;
};
+&ath10k {
+ status = "okay";
+
+ nvmem-cells = <&macaddr_art_0>, <&calibration_ath10k>;
+ nvmem-cell-names = "mac-address", "calibration";
+ mac-address-increment = <2>;
+};
+
&art {
compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
macaddr_art_0: macaddr at 0 {
reg = <0x0 0x6>;
};
+
+ calibration_ath9k: calibration at 1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ calibration_ath10k: calibration at 5000 {
+ reg = <0x5000 0x844>;
+ };
};
diff --git a/target/linux/ath79/dts/qca955x_senao_loader.dtsi b/target/linux/ath79/dts/qca955x_senao_loader.dtsi
index ac9f03ec65..5a8c4fb799 100644
--- a/target/linux/ath79/dts/qca955x_senao_loader.dtsi
+++ b/target/linux/ath79/dts/qca955x_senao_loader.dtsi
@@ -28,7 +28,7 @@
&pcie0 {
status = "okay";
- wifi at 0,0,0 {
+ ath10k: wifi at 0,0,0 {
compatible = "qcom,ath10k";
reg = <0x0 0 0 0 0>;
};
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 8783b137ca..d03e88041a 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
@@ -13,7 +13,6 @@ case "$FIRMWARE" in
allnet,all-wap02860ac|\
araknis,an-500-ap-i-ac|\
araknis,an-700-ap-i-ac|\
- engenius,eap1200h|\
engenius,enstationac-v1|\
glinet,gl-x750|\
watchguard,ap300)
More information about the lede-commits
mailing list