From 7c841780743111c0748fe0c9b95ed89c6e9d4b9c Mon Sep 17 00:00:00 2001 From: Jagadeesh Ponduru Date: Fri, 31 May 2024 15:57:59 +0530 Subject: [PATCH] ARM: dts: msm: add new ipa smmu peripheral cb Initialize new IPA SMMU XR peripheral cb and its iommu dma addr pool regions. Change-Id: I7c849a9b8648a1de33f05bc7780b229ff051fe37 --- bindings/platform/msm/ipa.txt | 4 ++++ qcom/niobe.dtsi | 14 +++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/bindings/platform/msm/ipa.txt b/bindings/platform/msm/ipa.txt index c72d25fa..c02c1a56 100644 --- a/bindings/platform/msm/ipa.txt +++ b/bindings/platform/msm/ipa.txt @@ -45,6 +45,8 @@ Optional: - qcom,smmu-fast-map: Boolean context flag to set SMMU to fastpath mode - ipa_smmu_ap: AP general purpose SMMU device compatible "qcom,ipa-smmu-ap-cb" +- ipa_smmu_rtp: RTP SMMU device + compatible "qcom,ipa-smmu-rtp-cb" - ipa_smmu_wlan: WDI SMMU device compatible "qcom,ipa-smmu-wlan-cb" - ipa_smmu_uc: uc SMMU device @@ -182,6 +184,8 @@ IPA SMMU sub nodes -compatible: "qcom,ipa-smmu-wlan-cb" - represents IPA WLAN context bank. +-compatible: "qcom,ipa-smmu-rtp-cb" - represents IPA RTP context bank. + -compatible: "qcom,ipa-smmu-uc-cb" - represents IPA uC context bank (for uC offload scenarios). diff --git a/qcom/niobe.dtsi b/qcom/niobe.dtsi index 3f8c8cb8..c939118c 100644 --- a/qcom/niobe.dtsi +++ b/qcom/niobe.dtsi @@ -2606,12 +2606,10 @@ qcom,ulso-ip-id-max-linux-val = <0xffff>; qcom,ulso-ip-id-min-windows-val = <0>; qcom,ulso-ip-id-max-windows-val = <0x7fff>; - qcom,max_num_smmu_cb = <4>; + qcom,max_num_smmu_cb = <5>; clock-names = "core_clk"; clocks = <&rpmhcc RPMH_IPA_CLK>; qcom,throughput-threshold = <2000 4000 8000>; - /* Map IPCC Region to uC CB */ - qcom,ipcc-mapping = <0x00400000 0x00400000 0x000F0000>; qcom,ipa-wdi-opt-dpath; qcom,scaling-exceptions = <>; qcom,interconnect,num-cases = <5>; @@ -2665,6 +2663,16 @@ compatible = "qcom,ipa-smmu-uc-cb"; iommus = <&apps_smmu 0x4A2 0x0>; qcom,iommu-dma-addr-pool = <0x20000000 0x20000000>; + /* Map IPCC Fence Protocol Region to uC CB */ + qcom,ipcc-mapping = <0x500000 0x500000 0x40000>; + qcom,iommu-dma = "atomic"; + dma-coherent; + }; + + ipa_smmu_rtp: ipa_smmu_rtp { + compatible = "qcom,ipa-smmu-rtp-cb"; + iommus = <&apps_smmu 0x4A3 0x0>; + qcom,iommu-dma-addr-pool = <0x20000000 0x20000000>; qcom,iommu-dma = "atomic"; dma-coherent; };