ipq40xx: utilize nvmem-cells for macs & (pre-)calibration data
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-gl-b2200.dts
index 339a1e0f7247034d79878467ebbac14ed0854914..243dcb84d6bf4595614a938b5c020b25abf28f56 100644 (file)
                                label = "ART";
                                reg = <0x170000 0x10000>;
                                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>;
+                               };
+
+                               cal_art_9000: cal@9000 {
+                                       reg = <0x9000 0x2f20>;
+                               };
                        };
                };
        };
                        status = "okay";
                        compatible = "qcom,ath10k";
                        reg = <0x00010000 0 0 0 0>;
+                        /* vendor said 9886 wave-2? Is this correct? */
+                       nvmem-cell-names = "calibration";
+                       nvmem-cells = <&cal_art_9000>;
                        qcom,ath10k-calibration-variant = "GL-B2200";
                };
        };
 
 &wifi0 {
        status = "okay";
+       nvmem-cell-names = "pre-calibration";
+       nvmem-cells = <&precal_art_1000>;
        qcom,ath10k-calibration-variant = "GL-B2200";
 };
 
 &wifi1 {
        status = "okay";
+       nvmem-cell-names = "pre-calibration";
+       nvmem-cells = <&precal_art_5000>;
        qcom,ath10k-calibration-variant = "GL-B2200";
 };