arm64: dts: qcom: msm8998: Add wifi node
authorJeffrey Hugo <jeffrey.l.hugo@gmail.com>
Thu, 7 Nov 2019 04:33:13 +0000 (20:33 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 10 Dec 2019 17:42:00 +0000 (09:42 -0800)
Add the wifi node and required reserved memory to enable the wlan
hardware.  Enable the wifi node in both the mtp and clamshell platforms
after adding the relevant regulators for each platform.

Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Link: https://lore.kernel.org/r/20191107043313.4055-3-jeffrey.l.hugo@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi
arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi
arch/arm64/boot/dts/qcom/msm8998.dtsi

index 6138b58..0f84fa0 100644 (file)
        vdda-phy-supply = <&vreg_l1a_0p875>;
        vdda-pll-supply = <&vreg_l2a_1p2>;
 };
+
+&wifi {
+       status = "okay";
+
+       vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
+       vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
+       vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
+       vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
+};
index 5f101a2..1220756 100644 (file)
        vdda-phy-supply = <&vreg_l1a_0p875>;
        vdda-pll-supply = <&vreg_l2a_1p2>;
 };
+
+&wifi {
+       status = "okay";
+
+       vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
+       vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
+       vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
+       vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
+};
index d5263e4..e624f03 100644 (file)
                        no-map;
                };
 
+               wlan_msa_mem: memory@95700000 {
+                       reg = <0x0 0x95700000 0x0 0x100000>;
+                       no-map;
+               };
+
                rmtfs {
                        compatible = "qcom,rmtfs-mem";
 
                        redistributor-stride = <0x0 0x20000>;
                        interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
                };
+
+               wifi: wifi@18800000 {
+                       compatible = "qcom,wcn3990-wifi";
+                       status = "disabled";
+                       reg = <0x18800000 0x800000>;
+                       reg-names = "membase";
+                       memory-region = <&wlan_msa_mem>;
+                       clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>;
+                       clock-names = "cxo_ref_clk_pin";
+                       interrupts =
+                               <GIC_SPI 413 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 414 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 415 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>,
+                               <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>;
+                       iommus = <&anoc2_smmu 0x1900>,
+                                <&anoc2_smmu 0x1901>;
+                       qcom,snoc-host-cap-8bit-quirk;
+               };
        };
 };