arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device node
Subsystems (4)
PATCH v5 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.
--- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 5 +++++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+)
arch/arm64/boot/dts/qcom/sc7180-idp.dts +5 -0
@@ -287,6 +287,11 @@ vdda-pll-supply = <&vreg_l4a_0p8>; }; +&wifi { + status = "okay"; + qcom,msa-fixed-perm; +}; + /* PINCTRL - additions to nodes defined in sc7180.dtsi */ &qspi_clk {
arch/arm64/boot/dts/qcom/sc7180.dtsi +28 -0
@@ -75,6 +75,12 @@ reg = <0x0 0x80900000 0x0 0x200000>; no-map; }; + + wlan_fw_mem: memory@93900000 { + compatible = "removed-dma-pool"; + no-map; + reg = <0 0x93900000 0 0x200000>; + }; }; cpus {
@@ -1490,6 +1496,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_fw_mem>; + status = "disabled"; + }; }; thermal-zones {
Signature · 1 line
2.7.4
Quoted 30 lines · Rakesh Pillai
Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.
Signed-off-by Rakesh Pillai <[email protected]>--- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 5 +++++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 28 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+)arch/arm64/boot/dts/qcom/sc7180-idp.dts +5
-0@@ -287,6 +287,11 @@ vdda-pll-supply = <&vreg_l4a_0p8>; }; +&wifi { + status = "okay"; + qcom,msa-fixed-perm; +}; + /* PINCTRL - additions to nodes defined in sc7180.dtsi */ &qspi_clk {arch/arm64/boot/dts/qcom/sc7180.dtsi +0
-0
arch/arm64/boot/dts/qcom/sc7180.dtsi line 80
Quoted 6 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +3
-0@@ -75,6 +75,12 @@ reg = <0x0 0x80900000 0x0 0x200000>; no-map; }; + + wlan_fw_mem: memory@93900000 { + compatible = "removed-dma-pool";
Sorry for not spotting this earlier, the "removed-dma-pool" compatible is a downstream thing and isn't defined upstream.
arch/arm64/boot/dts/qcom/sc7180.dtsi line 82
Quoted 2 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +2
-0+ no-map; + reg = <0 0x93900000 0 0x200000>;
If you swap the order of no-map and reg in this node it will look like all the others.
Apart from that the patch looks good.
Regards,
Bjorn
Quoted 36 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +23
-0+ }; }; cpus {@@ -1490,6 +1496,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_fw_mem>; + status = "disabled"; + }; }; thermal-zones {Signature · 1 line
2.7.4
Hi Bjorn,
I have addressed your comments and sent out the v6 for this patch.
Thanks,
Rakesh Pillai.
Quoted 5 lines
-----Original Message-----
From: Bjorn Andersson <[email protected]>
Sent: Monday, February 3, 2020 11:05 PM
To: Rakesh Pillai <[email protected]>
Cc: [email protected]; [email protected];
linux-
Quoted 109 lines
[email protected]; [email protected]
Subject: Re: [PATCH v5] arm64: dts: qcom: sc7180: Add WCN3990 WLAN module device nodeQuoted 7 lines · Rakesh Pillai
Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on sc7180 soc.
Signed-off-by Rakesh Pillai <[email protected]>--- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 5 +++++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 28++++++++++++++++++++++++++++
Review
Quoted 3 lines
2 files changed, 33 insertions(+)(quoted diff) +0
-0
b/arch/arm64/boot/dts/qcom/sc7180-idp.dtsReview
Quoted 16 lines
index 388f50a..167f68ac 100644
arch/arm64/boot/dts/qcom/sc7180-idp.dts +5
-0@@ -287,6 +287,11 @@ vdda-pll-supply = <&vreg_l4a_0p8>; }; +&wifi { + status = "okay"; + qcom,msa-fixed-perm; +}; + /* PINCTRL - additions to nodes defined in sc7180.dtsi */ &qspi_clk {(quoted diff) +0
-0
b/arch/arm64/boot/dts/qcom/sc7180.dtsiarch/arm64/boot/dts/qcom/sc7180.dtsi line 80
Quoted 10 lines
index 8011c5f..0a00c94 100644
arch/arm64/boot/dts/qcom/sc7180.dtsi +3
-0@@ -75,6 +75,12 @@ reg = <0x0 0x80900000 0x0 0x200000>; no-map; }; + + wlan_fw_mem: memory@93900000 { + compatible = "removed-dma-pool";Sorry for not spotting this earlier, the "removed-dma-pool" compatible is a downstream thing and isn't defined upstream.
arch/arm64/boot/dts/qcom/sc7180.dtsi line 82
Quoted 2 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +2
-0+ no-map; + reg = <0 0x93900000 0 0x200000>;If you swap the order of no-map and reg in this node it will look like all the others.
Apart from that the patch looks good.
Regards,
BjornQuoted 6 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ }; }; cpus {@@ -1490,6 +1496,28 @@arch/arm64/boot/dts/qcom/sc7180.dtsi line 1506
Quoted 10 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +8
-0#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*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1507
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 415 IRQ_TYPE_LEVEL_HIGH /* CE1*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1508
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH /* CE2*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1509
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH /* CE3*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1510
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH /* CE4*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1511
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH /* CE5*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1512
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH /* CE6*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1513
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH /* CE7*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1514
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH /* CE8*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1515
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH /* CE9*/ >,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1516
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH /* CE10*/>,
arch/arm64/boot/dts/qcom/sc7180.dtsi line 1517
Quoted 1 line
arch/arm64/boot/dts/qcom/sc7180.dtsi +1
-0+ <GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH /* CE11*/>;
Quoted 9 lines
arch/arm64/boot/dts/qcom/sc7180.dtsi +3
-1+ memory-region = <&wlan_fw_mem>; + status = "disabled"; + }; }; thermal-zones { --2.7.4