[openwrt/openwrt] ath79: TP-Link EAP245 v1: convert ath10k to nvmem-cells
LEDE Commits
lede-commits at lists.infradead.org
Thu Jun 16 12:42:32 PDT 2022
svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d61882783d528ff51890427fbefeade58056a954
commit d61882783d528ff51890427fbefeade58056a954
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Sat Jun 4 17:27:51 2022 +0200
ath79: TP-Link EAP245 v1: convert ath10k to nvmem-cells
Add the PCIe node for the ath10k radio to the devicetree, and refer to
the art partition for the calibration data using nvmem-cells.
Use mac-address-increment to ensure the MAC address is set correctly,
and remove the device from the caldata extraction and patching script.
Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts | 18 ++++++++++++++++++
.../etc/hotplug.d/firmware/11-ath10k-caldata | 1 -
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts b/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
index 3da450192c..188326fd80 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
+++ b/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts
@@ -42,3 +42,21 @@
};
};
};
+
+&art {
+ calibration_ath10k: calibration at 5000 {
+ reg = <0x5000 0x844>;
+ };
+};
+
+&pcie {
+ wifi at 0,0 {
+ compatible = "qcom,ath10k";
+ reg = <0 0 0 0 0>;
+
+ mac-address-increment = <1>;
+
+ nvmem-cells = <&macaddr_info_8>, <&calibration_ath10k>;
+ nvmem-cell-names = "mac-address", "calibration";
+ };
+};
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 668fd76af3..650d444fe6 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
@@ -146,7 +146,6 @@ case "$FIRMWARE" in
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary romfs 0xf100) 2)
;;
tplink,eap225-v1|\
- tplink,eap245-v1|\
tplink,re450-v2|\
tplink,re450-v3|\
tplink,re455-v1)
More information about the lede-commits
mailing list