ARM: dts: qcom: ipq4018-ap120c-ac: use NVMEM for ath10k caldata
authorRobert Marko <robert.marko@sartura.hr>
Tue, 14 Feb 2023 16:12:11 +0000 (17:12 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 14 Mar 2023 00:13:37 +0000 (17:13 -0700)
Since ath10k now supports loading the pre-cal via NVMEM instead of having
to use userspace scripts, lets use it.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230214161211.306462-4-robert.marko@sartura.hr
arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dtsi

index bb0c888..d90b4f4 100644 (file)
                                label = "ART";
                                reg = <0x00170000 0x00010000>;
                                read-only;
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               precal_art_1000: precal@1000 {
+                                       reg = <0x1000 0x2f20>;
+                               };
+
+                               precal_art_5000: precal@5000 {
+                                       reg = <0x5000 0x2f20>;
+                               };
                        };
 
                        partition@180000 {
 
 &wifi0 {
        status = "okay";
+       nvmem-cell-names = "pre-calibration";
+       nvmem-cells = <&precal_art_1000>;
 };
 
 &wifi1 {
        status = "okay";
+       nvmem-cell-names = "pre-calibration";
+       nvmem-cells = <&precal_art_5000>;
        qcom,ath10k-calibration-variant = "ALFA-Network-AP120C-AC";
 };