From 46ebd72a107cbd6cc537d7fe766ebbeaead55d8a Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Thu, 27 May 2021 17:14:13 -0700 Subject: [PATCH] ARM: dts: msm: Add the IOMMU debug usecase devices for Kalama Add the different IOMMU usecase test devices for Kalama to exercise different portions of the IOMMU framework. Change-Id: Ic4fbb71c52e7a90f71bb7efbb696d6320ec0d705 --- qcom/msm-arm-smmu-kalama.dtsi | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/qcom/msm-arm-smmu-kalama.dtsi b/qcom/msm-arm-smmu-kalama.dtsi index d71dfe3c..82e25e78 100644 --- a/qcom/msm-arm-smmu-kalama.dtsi +++ b/qcom/msm-arm-smmu-kalama.dtsi @@ -325,4 +325,49 @@ compatible = "qcom,iommu-dma"; memory-region = <&system_cma>; }; + + iommu_test_device { + compatible = "qcom,iommu-debug-test"; + + usecase0_apps { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x400 0x0>; + }; + + usecase1_apps_fastmap { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x400 0x0>; + qcom,iommu-dma = "fastmap"; + }; + + usecase2_apps_atomic { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x400 0x0>; + qcom,iommu-dma = "atomic"; + }; + + usecase3_apps_dma { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x400 0x0>; + dma-coherent; + }; + + usecase4_apps_secure { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&apps_smmu 0x400 0x0>; + qcom,iommu-dma = "atomic"; + qcom,iommu-vmid = <0xa>; /* VMID_CP_PIXEL */ + }; + + usecase5_kgsl { + compatible = "qcom,iommu-debug-usecase"; + iommu = <&kgsl_smmu 0x7 0x0>; + }; + + usecase6_kgsl_dma { + compatible = "qcom,iommu-debug-usecase"; + iommu = <&kgsl_smmu 0x7 0x0>; + dma-coherent; + }; + }; };