ath79: convert ath10k pre-calibration data to NVMEM (ASCII MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9563_phicomm_k2t.dts
index f12d0c997393518db85fbd38f33606315d1f3e6e..5befbb16086d0f6bbc5e15fd70be591735c6d3f4 100644 (file)
@@ -1,11 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca956x.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca956x.dtsi"
-
 / {
        model = "Phicomm K2T";
        compatible = "phicomm,k2t", "qca,qca9563";
                compatible = "gpio-leds";
 
                status_blue {
-                       label = "phicomm:blue:status";
+                       label = "blue:status";
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                };
 
                led_status_red: status_red {
-                       label = "phicomm:red:status";
+                       label = "red:status";
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                };
 
                status_yellow {
-                       label = "phicomm:yellow:status";
+                       label = "yellow:status";
                        gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &pcie {
        status = "okay";
+
+       wifi@0,0 {
+               compatible = "qcom,ath10k";
+               reg = <0x0000 0 0 0 0>;
+               nvmem-cells = <&precal_art_5000>;
+               nvmem-cell-names = "pre-calibration";
+       };
 };
 
 &spi {
-       num-cs = <1>;
-
        status = "okay";
 
        flash@0 {
                                label = "art";
                                reg = <0xff0000 0x010000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       precal_art_5000: pre-calibration@5000 {
+                                               reg = <0x5000 0x2f20>;
+                                       };
+                               };
                        };
                };
        };
 &mdio0 {
        status = "okay";
 
-       phy-mask = <0>;
-
        phy0: ethernet-phy@0 {
                reg = <0>;
                phy-mode = "sgmii";
 
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
-                       0x10 0x81000080 /* POWER_ON_STRIP */
+                       0x10 0x81000080 /* POWER_ON_STRAP */
                        0x50 0xcc35cc35 /* LED_CTRL0 */
                        0x54 0xcb37cb37 /* LED_CTRL1 */
                        0x58 0x00000000 /* LED_CTRL2 */