aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-06-11 11:29:15 +0200
committerSander Vanheule <sander@svanheule.net>2022-06-18 11:54:40 +0200
commite2bf11639bc8e8d46baf9d34a8f72fa8a1eefbab (patch)
treee92a71439194243e5ec6b619802507afcbb0a9a5
parent3a1eb93b2729bd42782f0db45919f645c526dc2a (diff)
downloadupstream-e2bf11639bc8e8d46baf9d34a8f72fa8a1eefbab.tar.gz
upstream-e2bf11639bc8e8d46baf9d34a8f72fa8a1eefbab.tar.bz2
upstream-e2bf11639bc8e8d46baf9d34a8f72fa8a1eefbab.zip
ath79: D-Link DAP-2xxx (QCA955x): convert ath9k caldata to nvmem
Convert the calibration data reference for the ath9k radio to an nvmem-cell, replacing the downstream mtd-cal-data property. Cc: Sebastian Schaper <openwrt@sebastianschaper.net> Signed-off-by: Sander Vanheule <sander@svanheule.net>
-rw-r--r--target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi11
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi b/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
index 21fde53cc8..3e254fa494 100644
--- a/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
+++ b/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
@@ -46,6 +46,14 @@
label = "art";
reg = <0xff0000 0x10000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ cal_ath9k: calibration@1000 {
+ reg = <0x1000 0x440>;
+ };
};
};
};
@@ -54,5 +62,6 @@
&wmac {
status = "okay";
- mtd-cal-data = <&art 0x1000>;
+ nvmem-cells = <&cal_ath9k>;
+ nvmem-cell-names = "calibration";
};