ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_eap225-wall-v2.dts
index 4dea09f4299670a11bf21a7df0f8cb0c91134ce6..439549d14254d35b8a904a1fc29b4397ca12749e 100644 (file)
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &pcie {
        status = "okay";
+
+       wifi@0,0 {
+               compatible = "qcom,ath10k";
+               reg = <0 0 0 0 0>;
+
+               mac-address-increment = <1>;
+
+               nvmem-cells = <&macaddr_info_8>, <&precalibration_ath10k>;
+               nvmem-cell-names = "mac-address", "pre-calibration";
+       };
 };
 
 &spi {
                                label = "art";
                                reg = <0xff0000 0x010000>;
                                read-only;
+
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               calibration_ath9k: calibration@1000 {
+                                       reg = <0x1000 0x440>;
+                               };
+
+                               precalibration_ath10k: pre-calibration@5000 {
+                                       reg = <0x5000 0x2f20>;
+                               };
                        };
                };
        };
 &eth1 {
        status = "okay";
 
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 
-       mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&info 0x8>;
+       nvmem-cells = <&macaddr_info_8>, <&calibration_ath9k>;
+       nvmem-cell-names = "mac-address", "calibration";
+};
+
+&info {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_info_8: macaddr@8 {
+               reg = <0x8 0x6>;
+       };
 };