diff mbox series

[v1,2/6] ath79: D-Link DAP-2xxx (QCA955x): convert ath9k caldata to nvmem

Message ID 20220611114855.84000-3-sander@svanheule.net
State Superseded
Delegated to: Sander Vanheule
Headers show
Series [v1,1/6] ath79: D-Link DAP-2xxx (QCA955x): move art partition to DTSI | expand

Commit Message

Sander Vanheule June 11, 2022, 11:48 a.m. UTC
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>
---
 target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi b/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
index 21fde53cc867..46eda3789f48 100644
--- a/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
+++ b/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
@@ -54,5 +54,16 @@ 
 &wmac {
 	status = "okay";
 
-	mtd-cal-data = <&art 0x1000>;
+	nvmem-cells = <&cal_ath9k>;
+	nvmem-cell-names = "calibration";
+};
+
+&art {
+	compatible = "nvmem-cells";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	cal_ath9k: calibration@1000 {
+		reg = <0x1000 0x440>;
+	};
 };