From c1b972a1cd373191b274ab7e6142ac3abb6d54d7 Mon Sep 17 00:00:00 2001 From: Kaushal Hooda Date: Wed, 5 Jun 2024 13:16:57 +0530 Subject: [PATCH] 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"; + }; + }; +};