From ac4f044344e0f77a0e0cab0c2d16a2888631322d Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Thu, 5 Dec 2024 10:26:29 +0530 Subject: [PATCH] ARM: dts: msm: Add direct link dt node for tuna Add direct link dt node for tuna, this device will be used in direct-link use case and required for SID configuration and sharing IOMMU bank with wlan platform device. Change-Id: Ie8cff03866fe9f514f160ed02d0ddc72c4dc5b5d CRs-Fixed: 3992469 --- tuna-wcn7750.dtsi | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tuna-wcn7750.dtsi b/tuna-wcn7750.dtsi index 92ed6a70..97d70346 100644 --- a/tuna-wcn7750.dtsi +++ b/tuna-wcn7750.dtsi @@ -37,6 +37,13 @@ }; }; + icnss2_direct_link_iommu_group0: icnss2_direct_link_iommu_group0 { + qcom,iommu-dma-addr-pool = <0xb0000000 0x10000000>; + qcom,iommu-geometry = <0xb0000000 0x10010000>; + qcom,iommu-dma = "fastmap"; + qcom,iommu-faults = "stall-disable", "HUPCF", "non-fatal"; + }; + icnss2: qcom,wcn7750 { compatible = "qcom,wcn7750"; reg = <0x17110040 0x0>, @@ -81,10 +88,7 @@ , ; - qcom,iommu-dma = "fastmap"; - qcom,iommu-faults = "stall-disable", "HUPCF", "non-fatal"; - qcom,iommu-dma-addr-pool = <0xb0000000 0x10000000>; - qcom,iommu-geometry = <0xb0000000 0x10010000>; + qcom,iommu-group = <&icnss2_direct_link_iommu_group0>; dma-coherent; qcom,fw-prefix; qcom,wlan; @@ -176,4 +180,11 @@ interrupt-names = "qcom,smp2p-soc-wake-ack"; }; }; + + wlan_direct_link: qcom,icnss-direct-link { + compatible = "qcom,icnss-direct-link"; + iommus = <&apps_smmu 0x100f 0x0>; + qcom,iommu-group = <&icnss2_direct_link_iommu_group0>; + dma-coherent; + }; };