From da8cf679a7ea2985c28bc4e0a8146e101c9b8614 Mon Sep 17 00:00:00 2001 From: Faiyaz Mohammed Date: Thu, 2 Dec 2021 14:50:39 +0530 Subject: [PATCH] ARM: dts: msm: Update iommu test use-cases Include the usecase number in the subnode labels. Include a usecase for secure memory and include a usecase for kgsl dma. Change-Id: I367935b33c5aec32875cddd9046e02428a3a8d0f --- qcom/msm-arm-smmu-diwali.dtsi | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/qcom/msm-arm-smmu-diwali.dtsi b/qcom/msm-arm-smmu-diwali.dtsi index ba098c68..421a515c 100644 --- a/qcom/msm-arm-smmu-diwali.dtsi +++ b/qcom/msm-arm-smmu-diwali.dtsi @@ -363,32 +363,45 @@ iommu_test_device { compatible = "qcom,iommu-debug-test"; - apps_ecats0 { + usecase0_apps { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x400 0>; }; - apps_ecats0_fastmap { + usecase1_apps_fastmap { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x400 0>; qcom,iommu-dma = "fastmap"; }; - apps_ecats0_atomic { + usecase2_apps_atomic { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x400 0>; qcom,iommu-dma = "atomic"; }; - apps_ecats1 { + usecase3_apps_dma { compatible = "qcom,iommu-debug-usecase"; iommus = <&apps_smmu 0x401 0>; dma-coherent; }; - kgsl_ecats { + 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"; iommus = <&kgsl_smmu 0x7 0x400>; }; + + usecase6_kgsl_dma { + compatible = "qcom,iommu-debug-usecase"; + iommus = <&kgsl_smmu 0x7 0x400>; + dma-coherent; + }; }; };