ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_araknis_an-700-ap-i-ac.dts
index 81a9e6ca086357e7f34dfe273acc9cd42ce5996d..778710eb9192cbf61ffdf8cd2e2d519ccfc78c7a 100644 (file)
                label = "art";
                reg = <0xff0000 0x010000>;
                read-only;
+
+               nvmem-layout {
+                       compatible = "fixed-layout";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       macaddr_art_0: macaddr@0 {
+                               compatible = "mac-base";
+                               reg = <0x0 0x6>;
+                               #nvmem-cell-cells = <1>;
+                       };
+
+                       cal_art_5000: calibration@5000 {
+                               reg = <0x5000 0x844>;
+                       };
+               };
        };
 };
 
 
 &pcie0 {
        status = "okay";
-};
-
-&art {
-       nvmem-layout {
-               compatible = "fixed-layout";
-               #address-cells = <1>;
-               #size-cells = <1>;
 
-               macaddr_art_0: macaddr@0 {
-                       compatible = "mac-base";
-                       reg = <0x0 0x6>;
-                       #nvmem-cell-cells = <1>;
-               };
+       wifi@0,0 {
+               compatible = "qcom,ath10k";
+               reg = <0x0000 0 0 0 0>;
+               nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
+               nvmem-cell-names = "calibration", "mac-address";
        };
 };