Skip to contentSkip to conversation

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

PATCH Superseded Rakesh Pillai 4 participants 7 messages May 20, 2020 – Jun 22, 2020

Subsystems (4)

v11 of 12 Superseded Latest is v12 →

lore
Share & tools
lore
#0 lore raw

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

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.

---
Changes from v10:
- Corrected the position of wifi node, as per address
- Removed the wlan_fw_mem from reserved memory, since its already added as reserved memory in board DT file.

---
 arch/arm64/boot/dts/qcom/sc7180-idp.dts |  7 +++++++
 arch/arm64/boot/dts/qcom/sc7180.dtsi    | 22 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-idp.dts +7 -0
index 4e9149d..38b102e 100644
@@ -389,6 +389,13 @@
 	};
 };
 
+&wifi {
+	status = "okay";
+	wifi-firmware {
+		iommus = <&apps_smmu 0xc2 0x1>;
+	};
+};
+
 /* PINCTRL - additions to nodes defined in sc7180.dtsi */
 
 &qspi_clk {
arch/arm64/boot/dts/qcom/sc7180.dtsi +22 -0
index 6b12c60..da79f8f 100644
@@ -2811,6 +2811,28 @@
 
 			#freq-domain-cells = <1>;
 		};
+
+		wifi: wifi@18800000 {
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0 0x18800000 0 0x800000>;
+			reg-names = "membase";
+			iommus = <&apps_smmu 0xc0 0x1>;
+			interrupts =
+				<GIC_SPI 414 IRQ_TYPE_LEVEL_HIGH /* CE0 */ >,
+				<GIC_SPI 415 IRQ_TYPE_LEVEL_HIGH /* CE1 */ >,
+				<GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH /* CE2 */ >,
+				<GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH /* CE3 */ >,
+				<GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH /* CE4 */ >,
+				<GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH /* CE5 */ >,
+				<GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH /* CE6 */ >,
+				<GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH /* CE7 */ >,
+				<GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH /* CE8 */ >,
+				<GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH /* CE9 */ >,
+				<GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH /* CE10 */>,
+				<GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH /* CE11 */>;
+			memory-region = <&wlan_mem>;
+			status = "disabled";
+		};
 	};
 
 	thermal-zones {
Signature · 6 lines
2.7.4

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Reviewed-by on v11 1/1
#1 lore raw
Quoted 9 lines · Rakesh Pillai

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.

---
Changes from v10:
- Corrected the position of wifi node, as per address
- Removed the wlan_fw_mem from reserved memory, since its already added as reserved memory in board DT file.

Quoted 58 lines
---
 arch/arm64/boot/dts/qcom/sc7180-idp.dts |  7 +++++++
 arch/arm64/boot/dts/qcom/sc7180.dtsi    | 22 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-idp.dts +7 -0
index 4e9149d..38b102e 100644
@@ -389,6 +389,13 @@
 	};
 };
 
+&wifi {
+	status = "okay";
+	wifi-firmware {
+		iommus = <&apps_smmu 0xc2 0x1>;
+	};
+};
+
 /* PINCTRL - additions to nodes defined in sc7180.dtsi */
 
 &qspi_clk {
arch/arm64/boot/dts/qcom/sc7180.dtsi +22 -0
index 6b12c60..da79f8f 100644
@@ -2811,6 +2811,28 @@
 
 			#freq-domain-cells = <1>;
 		};
+
+		wifi: wifi@18800000 {
+			compatible = "qcom,wcn3990-wifi";
+			reg = <0 0x18800000 0 0x800000>;
+			reg-names = "membase";
+			iommus = <&apps_smmu 0xc0 0x1>;
+			interrupts =
+				<GIC_SPI 414 IRQ_TYPE_LEVEL_HIGH /* CE0 */ >,
+				<GIC_SPI 415 IRQ_TYPE_LEVEL_HIGH /* CE1 */ >,
+				<GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH /* CE2 */ >,
+				<GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH /* CE3 */ >,
+				<GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH /* CE4 */ >,
+				<GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH /* CE5 */ >,
+				<GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH /* CE6 */ >,
+				<GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH /* CE7 */ >,
+				<GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH /* CE8 */ >,
+				<GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH /* CE9 */ >,
+				<GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH /* CE10 */>,
+				<GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH /* CE11 */>;
+			memory-region = <&wlan_mem>;
+			status = "disabled";
+		};
 	};
 
 	thermal-zones {
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.
#4 lore raw

Hi Evan,
All the dependent patches are already merged.

Thanks,
Rakesh Pillai.

Quoted 27 lines

-----Original Message-----
From: Evan Green <[email protected]>
Sent: Thursday, June 18, 2020 4:15 AM
To: Rakesh Pillai <[email protected]>; Bjorn Andersson <[email protected]>
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS <[email protected]>; linux-arm Mailing List <linux-arm- [email protected]>; LKML <[email protected]>; linux- arm-msm <[email protected]>
Subject: Re: [PATCH v11] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node

Quoted 2 lines · Evan Green

On Tue, May 19, 2020 at 8:57 PM Rakesh Pillai <[email protected]>

Quoted 7 lines · wrote:
Quoted 5 lines

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.

Looks like this never landed anywhere. Is it blocked on something? -Evan

#5 lore raw
In reply to Evan Green
Quoted 4 lines · Evan Green
Quoted 3 lines · Evan Green
Quoted 1 line · Rakesh Pillai
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.

Looks like this never landed anywhere. Is it blocked on something?

I remember waiting for some reviews, but I see those are in place. Then as I was applying this I saw that a v12 had shown up, with regulators.

So, I applied v12.

Thanks,
Bjorn

#6 lore raw
Quoted 27 lines

-----Original Message-----
From: Bjorn Andersson <[email protected]>
Sent: Monday, June 22, 2020 12:36 AM
To: Evan Green <[email protected]>
Cc: Rakesh Pillai <[email protected]>; open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS <[email protected]>; linux-arm Mailing List <[email protected]>; LKML <linux- [email protected]>; linux-arm-msm <linux-arm- [email protected]>
Subject: Re: [PATCH v11] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node

Quoted 1 line · Evan Green

On Thu, May 21, 2020 at 9:19 AM Evan Green <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines

On Tue, May 19, 2020 at 8:57 PM Rakesh Pillai <[email protected]>

Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 5 lines

Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Looks like this never landed anywhere. Is it blocked on something?

I remember waiting for some reviews, but I see those are in place. Then as I was applying this I saw that a v12 had shown up, with regulators.

So, I applied v12.

Thanks Bjorn.

Quoted 3 lines

Thanks,
Bjorn