Skip to contentSkip to conversation

arm64: dts: qcom: qcs404: Add WCN3990 WLAN module device node

PATCH Superseded Govind Singh 3 participants 5 messages Nov 26, 2018

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: qcs404: Add WCN3990 WLAN module device node

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on qcs404 soc. Optional clock and regulator controls are not yet available in upstream, hence add them once available.

---
 arch/arm64/boot/dts/qcom/qcs404.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/qcs404.dtsi +19 -0
index 9ca4f061ecc5..1a401a32d4a1 100644
@@ -958,6 +958,25 @@
 				status = "disabled";
 			};
 		};
+
+		wifi: wifi at 0A000000 {
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0x0A000000 0x800000>;
+			reg-names = "membase";
+			memory-region = <&wlan_msa_mem>;
+			interrupts = <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
+		};
 	};
 
 	timer {
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
#1 lore raw

arch/arm64/boot/dts/qcom/qcs404.dtsi line 962

Quoted 2 lines · Govind Singh
arch/arm64/boot/dts/qcom/qcs404.dtsi +2 -0
+
+               wifi: wifi at 0A000000 {

Please remove the leading zero. Building with W=1 would warn you about that.

#2 lore raw
In reply to Govind Singh

Hi Govind,

Quoted 15 lines · Govind Singh

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on qcs404 soc. Optional clock and regulator controls are not yet available in upstream, hence add them once available.

---
 arch/arm64/boot/dts/qcom/qcs404.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/qcom/qcs404.dtsi +0 -0
index 9ca4f061ecc5..1a401a32d4a1 100644

arch/arm64/boot/dts/qcom/qcs404.dtsi line 962

Quoted 5 lines
arch/arm64/boot/dts/qcom/qcs404.dtsi +2 -0
@@ -958,6 +958,25 @@
 				status = "disabled";
 			};
 		};
+
+		wifi: wifi at 0A000000 {

Please remove leading 0 from node

Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs404.dtsi +10 -0
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0x0A000000 0x800000>;
+			reg-names = "membase";
+			memory-region = <&wlan_msa_mem>;
+			interrupts = <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,

arch/arm64/boot/dts/qcom/qcs404.dtsi line 982

Quoted 10 lines
arch/arm64/boot/dts/qcom/qcs404.dtsi +7 -0
+				     <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
+		};
 	};
 
 	timer {

This file is sorted alphabetically and reg values. So this should be between blsp1_uart2 and intc node, can you please change that

Also please compile this with W=12

Lastly, I am not sure, but should the wifi node be always enabled? Should it not be enabled in the board dts file? Bjorn..?

Thanks

Signature · 1 line
~Vinod
#3 lore raw

Hi Vinod,

Thanks for the review.

Quoted 13 lines · Vinod Koul

Hi Govind,

Quoted 10 lines · Govind Singh

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on qcs404 soc. Optional clock and regulator controls are not yet available in upstream, hence add them once available.

---
 arch/arm64/boot/dts/qcom/qcs404.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
Quoted 14 lines

arch/arm64/boot/dts/qcom/qcs404.dtsi line 962

Quoted 11 lines
arch/arm64/boot/dts/qcom/qcs404.dtsi +2 -0
index 9ca4f061ecc5..1a401a32d4a1 100644
@@ -958,6 +958,25 @@
 				status = "disabled";
 			};
 		};
+
+		wifi: wifi at 0A000000 {

Please remove leading 0 from node

Sure, i will change in v2.

Quoted 19 lines
Quoted 19 lines
arch/arm64/boot/dts/qcom/qcs404.dtsi +17 -0
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0x0A000000 0x800000>;
+			reg-names = "membase";
+			memory-region = <&wlan_msa_mem>;
+			interrupts = <GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 279 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
+		};
 	};
 
Quoted 7 lines

arch/arm64/boot/dts/qcom/qcs404.dtsi line 982

Quoted 1 line
arch/arm64/boot/dts/qcom/qcs404.dtsi +0 -0
 	timer {

This file is sorted alphabetically and reg values. So this should be between blsp1_uart2 and intc node, can you please change that

Also please compile this with W=12

Sure, i will change in v2.

Quoted 3 lines

Lastly, I am not sure, but should the wifi node be always enabled? Should it not be enabled in the board dts file? Bjorn..?

yes, i some how missed this.
I will mark the status disabled by default and enable from qcs404 evb dts.

Quoted 1 line

Thanks

#4 lore raw

Hi Govind,

Quoted 9 lines · Govind Singh
Quoted 5 lines · Vinod Koul

On 26-11-18, 19:51, Govind Singh wrote:

Lastly, I am not sure, but should the wifi node be always enabled? Should it not be enabled in the board dts file? Bjorn..?

yes, i some how missed this.
I will mark the status disabled by default and enable from qcs404 evb dts.

No issues, also we have two DTS EVB-1000 and EVB-4000, please choose accordingly and if common please use qcs404-evb.dtsi

Signature · 1 line
~Vinod