diff mbox series

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

Message ID 1338212e100717107ded55293436b51c626f1aa7.1655542439.git.sander@svanheule.net
State Accepted
Delegated to: Sander Vanheule
Headers show
Series ath79: convert QCA955x-based D-Link DAP-2xxx to nvmem | expand

Commit Message

Sander Vanheule June 18, 2022, 8:55 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>
---
Changes in v2:
- Put nvmem cell definition directly in partition node
---
 target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi | 11 ++++++++++-
 1 file changed, 10 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..3e254fa494ea 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";
 };