ath79: D-Link DAP-2xxx (QCA955x): convert ath9k caldata to nvmem
authorSander Vanheule <sander@svanheule.net>
Sat, 11 Jun 2022 09:29:15 +0000 (11:29 +0200)
committerSander Vanheule <sander@svanheule.net>
Sat, 18 Jun 2022 09:54:40 +0000 (11:54 +0200)
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

index 21fde53cc8675a699bbaf17082973bd9872f681a..3e254fa494eaaf3791fe0c40077f22bc1294618d 100644 (file)
                                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";
 };