From 0dffd710b72a24e0754b403459349319805e698b Mon Sep 17 00:00:00 2001 From: Yu Tian Date: Fri, 21 Jun 2024 00:12:15 -0700 Subject: [PATCH 1/7] ARM: dts: msm: sun: Enlarge WLAN IOMMU range to 2G Enlarge WCNSS and ADSP MMU group range from 640MB to 2GB. Change-Id: I009bda638977cd25056b20b26cab2015a95fec37 CRs-Fixed: 3831506 --- sun-peach-cnss-v8.dtsi | 2 +- sun-peach-cnss.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sun-peach-cnss-v8.dtsi b/sun-peach-cnss-v8.dtsi index c51b6b36..cd7fd396 100644 --- a/sun-peach-cnss-v8.dtsi +++ b/sun-peach-cnss-v8.dtsi @@ -204,7 +204,7 @@ cnss_pci0_iommu_region_partition: cnss_pci0_iommu_region_partition { /* address-cells =3 size-cells=2 from sun-pcie.dtsi */ - iommu-addresses = <&cnss_pci0 0x0 0x0 0x0 0x0 0x88000000>, + iommu-addresses = <&cnss_pci0 0x0 0x0 0x0 0x0 0x18000000>, <&cnss_pci0 0x0 0x0 0xB0000000 0x0 0x50000000>; }; }; diff --git a/sun-peach-cnss.dtsi b/sun-peach-cnss.dtsi index 38520f13..8b4afe98 100644 --- a/sun-peach-cnss.dtsi +++ b/sun-peach-cnss.dtsi @@ -203,7 +203,7 @@ cnss_pci0_iommu_region_partition: cnss_pci0_iommu_region_partition { /* address-cells =3 size-cells=2 from sun-pcie.dtsi */ - iommu-addresses = <&cnss_pci0 0x0 0x0 0x0 0x0 0x88000000>, + iommu-addresses = <&cnss_pci0 0x0 0x0 0x0 0x0 0x18000000>, <&cnss_pci0 0x0 0x0 0xB0000000 0x0 0x50000000>; }; }; From efc50b54069018011f26b4e0087c018a5ef3282e Mon Sep 17 00:00:00 2001 From: AMAN KUMAR Date: Wed, 26 Jun 2024 17:49:27 +0530 Subject: [PATCH 2/7] ARM: dts: msm: Add WLAN support for MTP with 3.5mm audio Add board ID in WLAN kiwi V8 DTS file to enable WLAN support for devices which has 3.5mm audio jack, V8 power grid and Kiwi as WLAN attachment. Change-Id: I2770a311aa0466d83bde1b57049e36d6048ad2bc CRs-Fixed: 3855213 --- sun-kiwi-cnss-v8.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sun-kiwi-cnss-v8.dts b/sun-kiwi-cnss-v8.dts index c82ec0c3..c31a5c35 100644 --- a/sun-kiwi-cnss-v8.dts +++ b/sun-kiwi-cnss-v8.dts @@ -16,5 +16,5 @@ <639 0x10000>, <639 0x20000>, <0x100026a 0x10000>, <0x100026a 0x20000>, <0x100027f 0x10000>, <0x100027f 0x20000>; - qcom,board-id = <0x60001 0>, <0x50008 0>, <0x20015 0>; + qcom,board-id = <0x60001 0>, <0x50008 0>, <0x20015 0>, <0x60108 0>; }; From d0b698718a8ffd4529c0a2f121134fad293e97c7 Mon Sep 17 00:00:00 2001 From: AMAN KUMAR Date: Fri, 5 Jul 2024 11:05:47 +0530 Subject: [PATCH 3/7] ARM: dts: msm: Add WLAN support for ATP Add board ID in WLAN peach V8 DTS file to enable WLAN support for ATP devices which has V8 power grid and peach as WLAN attachment. Change-Id: I9cbef8b9d04086b63214d11087bede805ffbf01a CRs-Fixed: 3862456 --- sun-peach-cnss-v8.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sun-peach-cnss-v8.dts b/sun-peach-cnss-v8.dts index 523e3ca8..568e5c6d 100644 --- a/sun-peach-cnss-v8.dts +++ b/sun-peach-cnss-v8.dts @@ -17,5 +17,6 @@ <0x100026a 0x10000>, <0x100026a 0x20000>, <0x100027f 0x10000>, <0x100027f 0x20000>; qcom,board-id = <0x50001 0>, <0x40008 0>, <0x3000B 0>, <0x2000B 0>, - <0x30008 0>, <0x40001 0>, <0x30015 0>, <0x60008 0>; + <0x30008 0>, <0x40001 0>, <0x30015 0>, <0x60008 0>, + <0x10021 0>, <0x3000B 1>, <0x40108 0>; }; From 6f882fc78a6a34debb3be0e4a6648477b17c798a Mon Sep 17 00:00:00 2001 From: Amit Kumar Prasad Date: Thu, 27 Jun 2024 17:59:54 +0530 Subject: [PATCH 4/7] ARM: dts: msm: Enable BT slimbus in device tree for parrot Added support for BT slimbus in parrot for supporting BT audio usecases. CRs-Fixed: 3869751 Change-Id: I21a79c770f0b8a60e6b2a5424d13ca00d4af9ea4 --- parrot-wcn3990.dtsi | 17 +++++++++++++++++ parrot-wcn6750.dtsi | 17 +++++++++++++++++ parrot-wcn6755.dtsi | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/parrot-wcn3990.dtsi b/parrot-wcn3990.dtsi index 34b0bbe1..96577a91 100644 --- a/parrot-wcn3990.dtsi +++ b/parrot-wcn3990.dtsi @@ -80,4 +80,21 @@ qcom,bt-vdd-pa-config = <3000000 3312000 1 0>; qcom,bt-vdd-xtal-config = <1700000 1900000 1 0>; }; + + slim_msm: slim@3340000 { + status = "ok"; + ngd@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <1>; + //slimbus child nodes + slimbus: btfmslim-driver { + compatible = "slim217,221"; + reg = <1 0>; + qcom,btslim-address = <0x0>; /* BT SLIM EP address*/ + qcom,btslimtx-channels = <159 160>; + qcom,btslimrx-channels = <157 158>; + }; + }; + }; }; diff --git a/parrot-wcn6750.dtsi b/parrot-wcn6750.dtsi index e9d61dae..390c93ec 100644 --- a/parrot-wcn6750.dtsi +++ b/parrot-wcn6750.dtsi @@ -38,6 +38,23 @@ //qcom,bt-vdd-asd-config = <2800000 3544000 0 1>; }; + slim_msm: slim@3340000 { + status = "ok"; + ngd@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <1>; + //slimbus child nodes + slimbus: btfmslim-driver { + compatible = "slim217,221"; + reg = <1 0>; + qcom,btslim-address = <0x0>; /* BT SLIM EP address*/ + qcom,btslimtx-channels = <159 160>; + qcom,btslimrx-channels = <157 158>; + }; + }; + }; + qcom,smp2p-wpss { smp2p_wlan_2_in: qcom,smp2p-wlan-2-in { qcom,entry-name = "wlan_soc_wake"; diff --git a/parrot-wcn6755.dtsi b/parrot-wcn6755.dtsi index e0249a16..0db78ac0 100644 --- a/parrot-wcn6755.dtsi +++ b/parrot-wcn6755.dtsi @@ -38,6 +38,23 @@ //qcom,bt-vdd-asd-config = <2800000 3544000 0 1>; }; + slim_msm: slim@3340000 { + status = "ok"; + ngd@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <1>; + //slimbus child nodes + slimbus: btfmslim-driver { + compatible = "slim217,221"; + reg = <1 0>; + qcom,btslim-address = <0x0>; /* BT SLIM EP address*/ + qcom,btslimtx-channels = <159 160>; + qcom,btslimrx-channels = <157 158>; + }; + }; + }; + qcom,smp2p-wpss { smp2p_wlan_2_in: qcom,smp2p-wlan-2-in { qcom,entry-name = "wlan_soc_wake"; From c447ddd7b3c7767157b471ec8973cb3fbdf1903e Mon Sep 17 00:00:00 2001 From: kartikey Arora Date: Mon, 20 May 2024 13:34:32 +0530 Subject: [PATCH 5/7] ARM: dts: msm: Add opensource wlan device tree support for Clarence Add Ravelin adrastea dtsi from kernel devicetree to vendor wlan-devicetree and corresponding dts files as part of new wlan teckpack for kernel-6.6 upgrade. Change-Id: Id47260ae0c74b76270bb9bdfba9a16cb7ed74aae --- Kbuild | 6 ++++ ravelin-adrastea.dtsi | 67 ++++++++++++++++++++++++++++++++++++++++ ravelin-atp-adrastea.dts | 17 ++++++++++ ravelin-idp-adrastea.dts | 17 ++++++++++ ravelin-qrd-adrastea.dts | 17 ++++++++++ 5 files changed, 124 insertions(+) create mode 100644 ravelin-adrastea.dtsi create mode 100644 ravelin-atp-adrastea.dts create mode 100644 ravelin-idp-adrastea.dts create mode 100644 ravelin-qrd-adrastea.dts diff --git a/Kbuild b/Kbuild index 55a2d664..00ab1b27 100644 --- a/Kbuild +++ b/Kbuild @@ -15,6 +15,12 @@ ifeq ($(CONFIG_ARCH_X1E80100),y) dtbo-y += x1e80100-kiwi-cnss.dtbo endif +ifeq ($(CONFIG_ARCH_RAVELIN),y) +dtbo-y += ravelin-idp-adrastea.dtbo +dtbo-y += ravelin-qrd-adrastea.dtbo +dtbo-y += ravelin-atp-adrastea.dtbo +endif + ifeq ($(CONFIG_ARCH_PARROT),y) dtbo-y += parrot-idp-wcn3990.dtbo dtbo-y += parrot-idp-wcn6750.dtbo diff --git a/ravelin-adrastea.dtsi b/ravelin-adrastea.dtsi new file mode 100644 index 00000000..2aa68787 --- /dev/null +++ b/ravelin-adrastea.dtsi @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include +#include + +&reserved_memory { + wlan_msa_mem: wlan_msa_mem_region@82a00000 { + no-map; + reg = <0x0 0x82a00000 0x0 0x300000>; + }; +}; + +&soc { + wpss_pas: remoteproc-wpss@8a00000 { + firmware-name = "adrastea/wpss.mdt"; + }; + + icnss: qcom,icnss@22800000 { + compatible = "qcom,icnss"; + reg = <0x22800000 0x800000>; + reg-names = "membase"; + qcom,rproc-handle = <&wpss_pas>; + iommus = <&apps_smmu 0x4c0 0x1>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + qcom,iommu-dma = "fastmap"; + qcom,iommu-faults = "stall-disable", "HUPCF", "non-fatal"; + qcom,iommu-dma-addr-pool = <0xa0000000 0x10000000>; + qcom,iommu-geometry = <0xa0000000 0x10000000>; + qcom,fw-prefix; + qcom,wlan; + bdf-download-support; + wpss-support-enable; + qcom,wlan-msa-fixed-region = <&wlan_msa_mem>; + vdd-cx-mx-supply = <&L11B>; + vdd-1.8-xo-supply = <&L23B>; + vdd-1.3-rfa-supply = <&L14B>; + vdd-3.3-ch0-supply = <&L7E>; + qcom,vdd-cx-mx-config = <0 0>; + qcom,vdd-3.3-ch0-config = <3000000 3312000>; + + qcom,smem-states = <&smp2p_wlan_1_out 0>; + qcom,smem-state-names = "wlan-smp2p-out"; + + qcom,smp2p_map_wlan_1_in { + interrupts-extended = <&smp2p_wlan_1_in 0 0>, + <&smp2p_wlan_1_in 1 0>; + interrupt-names = "qcom,smp2p-force-fatal-error", + "qcom,smp2p-early-crash-ind"; + }; + + }; +}; diff --git a/ravelin-atp-adrastea.dts b/ravelin-atp-adrastea.dts new file mode 100644 index 00000000..e92ca1b8 --- /dev/null +++ b/ravelin-atp-adrastea.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "ravelin-adrastea.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Ravelin ATP"; + compatible = "qcom,ravelin", "qcom,ravelin-atp", "qcom,atp"; + qcom,msm-id = <568 0x10000>, <602 0x10000>, <653 0x10000>, <654 0x10000>; + qcom,board-id = <33 0>; +}; diff --git a/ravelin-idp-adrastea.dts b/ravelin-idp-adrastea.dts new file mode 100644 index 00000000..e786b90e --- /dev/null +++ b/ravelin-idp-adrastea.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "ravelin-adrastea.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Ravelin IDP"; + compatible = "qcom,ravelin-idp", "qcom,ravelin", "qcom,idp"; + qcom,msm-id = <568 0x10000>, <602 0x10000>, <653 0x10000>, <654 0x10000>; + qcom,board-id = <34 0>, <34 0x601>, <34 2>; +}; diff --git a/ravelin-qrd-adrastea.dts b/ravelin-qrd-adrastea.dts new file mode 100644 index 00000000..6488515a --- /dev/null +++ b/ravelin-qrd-adrastea.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "ravelin-adrastea.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Ravelin QRD"; + compatible = "qcom,ravelin-qrd", "qcom,ravelin", "qcom,qrd"; + qcom,msm-id = <568 0x10000>, <581 0x10000>, <582 0x10000>, <602 0x10000>, <653 0x10000>, <654 0x10000>; + qcom,board-id = <0x1000B 0>, <0x1000B 0x600>; +}; From c1b972a1cd373191b274ab7e6142ac3abb6d54d7 Mon Sep 17 00:00:00 2001 From: Kaushal Hooda Date: Wed, 5 Jun 2024 13:16:57 +0530 Subject: [PATCH 6/7] ARM: dts: msm: Add wlan related dtsi file for volcano This change adds wlan related dtsi file for volcano which has disabled icnss and wpss dtsi node enabled. Change-Id: I5da7d1544607dd57e66b76f6925b424953ec8a3c CRs-Fixed: 3742633 --- Kbuild | 4 ++ volcano-qca6750.dts | 17 ++++++ volcano-qca6750.dtsi | 127 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+) create mode 100644 volcano-qca6750.dts create mode 100644 volcano-qca6750.dtsi diff --git a/Kbuild b/Kbuild index 00ab1b27..06e0be1d 100644 --- a/Kbuild +++ b/Kbuild @@ -32,6 +32,10 @@ dtbo-y += parrot-idp-wcn6755.dtbo dtbo-y += parrot-qrd-wcn6755.dtbo endif +ifeq ($(CONFIG_ARCH_VOLCANO),y) +dtbo-y += volcano-qca6750.dtbo +endif + always-y := $(dtb-y) $(dtbo-y) subdir-y := $(dts-dirs) clean-files := *.dtb *.dtbo diff --git a/volcano-qca6750.dts b/volcano-qca6750.dts new file mode 100644 index 00000000..d71e2fb6 --- /dev/null +++ b/volcano-qca6750.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "volcano-qca6750.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Volcano SoC"; + compatible = "qcom,volcano"; + qcom,msm-id = <636 0x10000>, <640 0x10000>, <657 0x10000>, <658 0x10000>; + qcom,board-id = <0 0>; +}; diff --git a/volcano-qca6750.dtsi b/volcano-qca6750.dtsi new file mode 100644 index 00000000..f0755dec --- /dev/null +++ b/volcano-qca6750.dtsi @@ -0,0 +1,127 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include + +&soc { + qcom,smp2p-wpss { + smp2p_wlan_1_in: qcom,smp2p-wlan-1-in { + qcom,entry-name = "wlan"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + smp2p_wlan_1_out: qcom,smp2p-wlan-1-out { + qcom,entry-name = "wlan"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_wlan_2_in: qcom,smp2p-wlan-2-in { + qcom,entry-name = "wlan_soc_wake"; + interrupt-controller; + #interrupt-cells = <2>; + }; + + smp2p_wlan_2_out: qcom,smp2p-wlan-2-out { + qcom,entry-name = "wlan_soc_wake"; + #qcom,smem-state-cells = <1>; + }; + + smp2p_wlan_3_out: qcom,smp2p-wlan-3-out { + qcom,entry-name = "wlan_ep_power_save"; + #qcom,smem-state-cells = <1>; + }; + }; + + icnss2: qcom,wcn6750 { + compatible = "qcom,wcn6750"; + reg = <0x17110040 0x0>, + <0xc0000000 0x10000>; + reg-names = "msi_addr", "smmu_iova_ipa"; + qcom,rproc-handle = <&wpss_pas>; + iommus = <&apps_smmu 0x1400 0x1>; + status = "disabled"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + + qcom,iommu-dma = "fastmap"; + qcom,iommu-faults = "stall-disable", "HUPCF", "non-fatal"; + qcom,iommu-dma-addr-pool = <0xb0000000 0x10000000>; + qcom,iommu-geometry = <0xb0000000 0x10010000>; + dma-coherent; + qcom,fw-prefix; + qcom,wlan; + tsens = "sys-therm-4"; + qcom,wlan-msa-fixed-region = <&wlan_msa_mem>; + vdd-cx-mx-supply = <&S3B>; + qcom,vdd-cx-mx-config = <968000 1040000 0 0 1>; + vdd-1.8-xo-supply = <&S1B>; + qcom,vdd-1.8-xo-config = <1856000 2040000 0 0 0>; + vdd-1.3-rfa-supply = <&S2B>; + qcom,vdd-1.3-rfa-config = <1256000 2050000 0 0 0>; + + qcom,smem-states = <&smp2p_wlan_1_out 0>, + <&smp2p_wlan_2_out 0>, + <&smp2p_wlan_3_out 0>; + qcom,smem-state-names = "wlan-smp2p-out", + "wlan-soc-wake-smp2p-out", + "wlan-ep-powersave-smp2p-out"; + + qcom,qmp = <&aoss_qmp>; + + qcom,vreg_ol_cpr ="s3b"; + + icnss_cdev_apss: qcom,icnss_cdev1 { + #cooling-cells = <2>; + }; + + icnss_cdev_wpss: qcom,icnss_cdev2 { + #cooling-cells = <2>; + }; + + qcom,smp2p_map_wlan_1_in { + interrupts-extended = <&smp2p_wlan_1_in 0 0>, + <&smp2p_wlan_1_in 1 0>; + interrupt-names = "qcom,smp2p-force-fatal-error", + "qcom,smp2p-early-crash-ind"; + }; + + qcom,smp2p_map_wlan_2_in { + interrupts-extended = <&smp2p_wlan_2_in 0 0>; + interrupt-names = "qcom,smp2p-soc-wake-ack"; + }; + }; +}; From fdeae3f72dd36588de94361ee1e06223f172fe31 Mon Sep 17 00:00:00 2001 From: Kaushal Hooda Date: Wed, 5 Jun 2024 14:58:42 +0530 Subject: [PATCH 7/7] ARM: dts: msm: Add wlan device tree for peach in Milos IOT Add wlan device tree for peach support in QCM6690. Change-Id: Ibeeb2822798b18b6b207246565d0f8546d3083c3 --- Kbuild | 1 + volcano6i-peach-cnss.dts | 19 ++++ volcano6i-peach-cnss.dtsi | 192 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 212 insertions(+) create mode 100644 volcano6i-peach-cnss.dts create mode 100644 volcano6i-peach-cnss.dtsi diff --git a/Kbuild b/Kbuild index 06e0be1d..0bb96dcb 100644 --- a/Kbuild +++ b/Kbuild @@ -34,6 +34,7 @@ endif ifeq ($(CONFIG_ARCH_VOLCANO),y) dtbo-y += volcano-qca6750.dtbo +dtbo-y += volcano6i-peach-cnss.dtbo endif always-y := $(dtb-y) $(dtbo-y) diff --git a/volcano6i-peach-cnss.dts b/volcano6i-peach-cnss.dts new file mode 100644 index 00000000..5eafed56 --- /dev/null +++ b/volcano6i-peach-cnss.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; +/plugin/; + +#include "volcano6i-peach-cnss.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Volcano6I IOT SOC + Ganges/Brahma"; + compatible = "qcom,volcano-idp", "qcom,volcano", "qcom,volcanop-idp", + "qcom,volcanop", "qcom,idp", "qcom,volcano-mtp", + "qcom,volcanop-mtp", "qcom,mtp"; + qcom,msm-id = <657 0x10000>, <658 0x10000>; + qcom,board-id = <8 2>, <8 3>, <8 4>, <8 5>, <8 6>, <34 2>, <34 3>; +}; diff --git a/volcano6i-peach-cnss.dtsi b/volcano6i-peach-cnss.dtsi new file mode 100644 index 00000000..b5444e2c --- /dev/null +++ b/volcano6i-peach-cnss.dtsi @@ -0,0 +1,192 @@ +// SPDX-License-Identifier: BSD-3-Clause + +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include + +&tlmm { + cnss_pins { + cnss_wlan_en_active: cnss_wlan_en_active { + mux { + pins = "gpio44"; + function = "gpio"; + }; + + config { + pins = "gpio44"; + drive-strength = <16>; + output-high; + bias-pull-up; + }; + }; + + cnss_wlan_en_sleep: cnss_wlan_en_sleep { + mux { + pins = "gpio44"; + function = "gpio"; + }; + + config { + pins = "gpio44"; + drive-strength = <2>; + output-low; + bias-pull-down; + }; + }; + + cnss_wlan_sw_ctrl: cnss_wlan_sw_ctrl { + mux { + pins = "gpio45"; + function = "wcn_sw_ctrl"; + + }; + }; + + cnss_wlan_sw_ctrl_wl_cx: cnss_wlan_sw_ctrl_wl_cx { + mux { + pins = "gpio52"; + function = "wcn_sw"; + }; + }; + }; +}; + +&reserved_memory { + cnss_wlan_mem: cnss_wlan_region { + compatible = "shared-dma-pool"; + alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment = <0x0 0x400000>; + size = <0x0 0x2000000>; + }; +}; + +&soc { + wlan_peach: qcom,cnss-peach@b0000000 { + compatible = "qcom,cnss-peach"; + reg = <0xb0000000 0x10000>; + reg-names = "smmu_iova_ipa"; + qcom,wlan-sw-ctrl-gpio = <&tlmm 52 0>; + + supported-ids = <0x110E>; + wlan-en-gpio = <&tlmm 44 0>; + qcom,sw-ctrl-gpio = <&tlmm 45 0>; + /* List of GPIOs to be setup for interrupt wakeup capable */ + mpm_wake_set_gpios = <45 52>; + pinctrl-names = "wlan_en_active", "wlan_en_sleep", "sw_ctrl", + "sw_ctrl_wl_cx"; + pinctrl-0 = <&cnss_wlan_en_active>; + pinctrl-1 = <&cnss_wlan_en_sleep>; + pinctrl-2 = <&cnss_wlan_sw_ctrl>; + pinctrl-3 = <&cnss_wlan_sw_ctrl_wl_cx>; + qcom,wlan; + qcom,wlan-rc-num = <0>; + qcom,wlan-ramdump-dynamic = <0x780000>; + cnss-enable-self-recovery; + qcom,wlan-cbc-enabled; + use-pm-domain; + qcom,same-dt-multi-dev; + /* For AOP communication, use direct QMP instead of mailbox */ + qcom,qmp = <&aoss_qmp>; + + vdd-wlan-io-supply = <&L1B>; + qcom,vdd-wlan-io-config = <1800000 1800000 0 0 1>; + vdd-wlan-io12-supply = <&L5B>; + qcom,vdd-wlan-io12-config = <1200000 1200000 0 0 1>; + vdd-wlan-aon-supply = <&S1K>; + qcom,vdd-wlan-aon-config = <876000 1004000 0 0 1>; + vdd-wlan-dig-supply = <&S1L>; + qcom,vdd-wlan-dig-config = <876000 1000000 0 0 1>; + vdd-wlan-rfa1-supply = <&S1B>; + qcom,vdd-wlan-rfa1-config = <1860000 2000000 0 0 1>; + vdd-wlan-rfa2-supply = <&S2B>; + qcom,vdd-wlan-rfa2-config = <1312000 1340000 0 0 1>; + vdd-wlan-ant-share-supply = <&L18B>; + qcom,vdd-wlan-ant-share-config = <2800000 2800000 0 0 1>; + + interconnects = + <&pcie_anoc MASTER_PCIE_0 &pcie_anoc SLAVE_ANOC_PCIE_GEM_NOC>, + <&gem_noc MASTER_ANOC_PCIE_GEM_NOC &mc_virt SLAVE_EBI1>; + interconnect-names = "pcie_to_memnoc", "memnoc_to_ddr"; + + qcom,icc-path-count = <2>; + qcom,bus-bw-cfg-count = <9>; + qcom,bus-bw-cfg = + /** ICC Path 1 **/ + <0 0>, /* no vote */ + /* idle: 0-18 Mbps snoc/anoc: 100 Mhz */ + <2250 800000>, + /* low: 18-60 Mbps snoc/anoc: 100 Mhz */ + <7500 800000>, + /* medium: 60-240 Mbps snoc/anoc: 100 Mhz */ + <30000 800000>, + /* high: 240-1200 Mbps snoc/anoc: 100 Mhz */ + <100000 800000>, + /* very high: > 1200 Mbps snoc/anoc: 403 Mhz */ + <175000 3224000>, + /* ultra high: DBS mode snoc/anoc: 403 Mhz */ + <312500 3224000>, + /* super high: DBS mode snoc/anoc: 533 Mhz */ + <587500 4264000>, + /* low (latency critical): 18-60 Mbps snoc/anoc: 200 Mhz */ + <7500 1600000>, + + /** ICC Path 2 **/ + <0 0>, + /* idle: 0-18 Mbps ddr: 547.2 MHz */ + <2250 2188800>, + /* low: 18-60 Mbps ddr: 547.2 MHz */ + <7500 2188800>, + /* medium: 60-240 Mbps ddr: 547.2 MHz */ + <30000 2188800>, + /* high: 240-1200 Mbps ddr: 547.2 MHz */ + <100000 2188800>, + /* very high: > 1200 Mbps ddr: 1555 MHz */ + <175000 6220800>, + /* ultra high: DBS mode ddr: 2092 MHz */ + <312500 8368000>, + /* super high: DBS mode ddr: 3.2 GHz */ + <587500 12800000>, + /* low (latency critical): 18-60 Mbps ddr: 547.2 MHz */ + <7500 2188800>; + + qcom,pdc_init_table = + "{class: wlan_pdc, ss: rf, res: s2b.v, dwnval: 1244}", + "{class: wlan_pdc, ss: rf, res: s3b.v, enable: 0}", + "{class: wlan_pdc, ss: rf, res: l5b.m, enable: 1}", + "{class: wlan_pdc, ss: rf, res: g1f.e, enable: 0}", + "{class: wlan_pdc, ss: rf, res: l1b.m, enable: 1}", + "{class: wlan_pdc, ss: rf, res: s3b.m, enable: 0}", + "{class: wlan_pdc, ss: bb, res: pdc, enable: 1}"; + }; +}; + +&wpss_pas { + status = "disabled"; +}; + +&pcie0_rp { + #address-cells = <5>; + #size-cells = <0>; + + cnss_pci0: cnss_pci0 { + reg = <0 0 0 0 0>; + qcom,iommu-group = <&cnss_pci_iommu_group0>; + memory-region = <&cnss_wlan_mem>; + + #address-cells = <1>; + #size-cells = <1>; + + cnss_pci_iommu_group0: cnss_pci_iommu_group0 { + qcom,iommu-msi-size = <0x1000>; + qcom,iommu-dma-addr-pool = <0xa0000000 0x10000000>; + qcom,iommu-geometry = <0xa0000000 0x10010000>; + qcom,iommu-dma = "fastmap"; + qcom,iommu-pagetable = "coherent"; + qcom,iommu-faults = "stall-disable", "HUPCF", + "non-fatal"; + }; + }; +};