aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-06-05 13:42:29 +0200
committerSander Vanheule <sander@svanheule.net>2022-06-16 21:39:32 +0200
commite71b5d2db7ab18bc8cee836d2421f81c80df25d6 (patch)
tree676f1f0610a4b87575878d2c3c48a28d7230b960
parent2caa03ec8607fb38e11ac1ce3c7b698f80191b49 (diff)
downloadupstream-e71b5d2db7ab18bc8cee836d2421f81c80df25d6.tar.gz
upstream-e71b5d2db7ab18bc8cee836d2421f81c80df25d6.tar.bz2
upstream-e71b5d2db7ab18bc8cee836d2421f81c80df25d6.zip
ath79: convert 1-port TP-Link EAP ath9k to nvmem-cells
Replace the mtd-cal-data phandle with an nvmem-cell reference for the 2.4GHz ath9k radio. This affects the following devices: - TP-Link EAP225 v1 - TP-Link EAP225 v3 - TP-Link EAP225-Outdoor v1 - TP-Link EAP245 v1 Signed-off-by: Sander Vanheule <sander@svanheule.net>
-rw-r--r--target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi13
1 files changed, 10 insertions, 3 deletions
diff --git a/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi b/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
index 6252f1ae2f..46e75562d7 100644
--- a/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
+++ b/target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi
@@ -81,6 +81,14 @@
label = "art";
reg = <0xff0000 0x010000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ calibration_ath9k: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
};
};
};
@@ -125,9 +133,8 @@
&wmac {
status = "okay";
- mtd-cal-data = <&art 0x1000>;
- nvmem-cells = <&macaddr_info_8>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_info_8>, <&calibration_ath9k>;
+ nvmem-cell-names = "mac-address", "calibration";
};
&info {