diff mbox series

[1/2] arm64: dts: qcom: sm8150: Add wifi node

Message ID 20201121055808.582401-1-bjorn.andersson@linaro.org
State Accepted
Commit 05090bb9e53da0d4e913452c450cb5f55baad45a
Headers show
Series [1/2] arm64: dts: qcom: sm8150: Add wifi node | expand

Commit Message

Bjorn Andersson Nov. 21, 2020, 5:58 a.m. UTC
From: Jonathan Marek <jonathan@marek.ca>


Add a node for the WCN3990 WiFi module.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>

[bjorn: Extracted patch from larger "misc" patch, added qdss clock]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

-- 
2.28.0

Comments

Vinod Koul Nov. 24, 2020, 3:22 p.m. UTC | #1
On 20-11-20, 21:58, Bjorn Andersson wrote:
> From: Jonathan Marek <jonathan@marek.ca>
> 
> Add a node for the WCN3990 WiFi module.

Reviewed-by: Vinod Koul <vkoul@kernel.org>
Vinod Koul Nov. 24, 2020, 3:22 p.m. UTC | #2
On 20-11-20, 21:58, Bjorn Andersson wrote:
> From: Jonathan Marek <jonathan@marek.ca>

> 

> Enable the WiFi node and specify its supply regulators.


Reviewed-by: Vinod Koul <vkoul@kernel.org>


-- 
~Vinod
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
index c2f8c3097ac5..f4c3fbf36e87 100644
--- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
@@ -1297,6 +1297,29 @@  cpufreq_hw: cpufreq@18323000 {
 
 			#freq-domain-cells = <1>;
 		};
+
+		wifi: wifi@18800000 {
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0 0x18800000 0 0x800000>;
+			reg-names = "membase";
+			memory-region = <&wlan_mem>;
+			clock-names = "cxo_ref_clk_pin", "qdss";
+			clocks = <&rpmhcc RPMH_RF_CLK2>, <&aoss_qmp>;
+			interrupts = <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 419 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 = <&apps_smmu 0x0640 0x1>;
+			status = "disabled";
+		};
 	};
 
 	timer {