aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-06-11 13:16:24 +0200
committerSander Vanheule <sander@svanheule.net>2022-06-18 11:57:21 +0200
commit849ffbd5ab7706f70c3c0dfc8f82ae38c449ee9c (patch)
tree33cb2dccb81321365dd580932d458153491a1aa1 /target/linux/ath79
parentb4e7b49a9202d17e5a4d711c4e0d314d6fa1c9cb (diff)
downloadupstream-849ffbd5ab7706f70c3c0dfc8f82ae38c449ee9c.tar.gz
upstream-849ffbd5ab7706f70c3c0dfc8f82ae38c449ee9c.tar.bz2
upstream-849ffbd5ab7706f70c3c0dfc8f82ae38c449ee9c.zip
ath79: D-Link DAP-2xxx (QCA953x): 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. Since the 'art' label is no longer used, it can be dropped. Cc: Sebastian Schaper <openwrt@sebastianschaper.net> Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/ath79')
-rw-r--r--target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi13
1 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi b/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi
index 59c09dbe1b..13d41f7bd5 100644
--- a/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi
+++ b/target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi
@@ -42,10 +42,18 @@
read-only;
};
- art: partition@ff0000 {
+ partition@ff0000 {
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";
};