From fea9ea1924ff2faabc6c08a67f5f727afe5557ed Mon Sep 17 00:00:00 2001 From: Tony Truong Date: Mon, 22 Feb 2021 14:10:55 -0800 Subject: [PATCH] ARM: dts: msm: expand iommu-map to support PCIe switch on sdxlemur CPE Additional BDF to SID mappings are needed if a switch and mutliple endpoints are connected to PCIe root complex. Expand iommu-map for PCIe on sdxprarie CPE to support such a usecase. Change-Id: Id7643ab574b1472649bb70121da70a40f31c806c --- qcom/sdxlemur-mtp-cpe.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qcom/sdxlemur-mtp-cpe.dtsi b/qcom/sdxlemur-mtp-cpe.dtsi index 42f218547fd1..f3673cb5ec28 100644 --- a/qcom/sdxlemur-mtp-cpe.dtsi +++ b/qcom/sdxlemur-mtp-cpe.dtsi @@ -5,3 +5,14 @@ }; +&pcie0 { + iommu-map = <0x0 &apps_smmu 0x0200 0x1>, + <0x100 &apps_smmu 0x0201 0x1>, + <0x208 &apps_smmu 0x0202 0x1>, + <0x210 &apps_smmu 0x0203 0x1>, + <0x218 &apps_smmu 0x0204 0x1>, + <0x300 &apps_smmu 0x0207 0x1>, + <0x400 &apps_smmu 0x0208 0x1>, + <0x500 &apps_smmu 0x020C 0x1>, + <0x501 &apps_smmu 0x020E 0x1>; +};