From edeb290f5dc82d581de36a1f4b78ef1497d0eafc Mon Sep 17 00:00:00 2001 From: Sudarshan Rajagopalan Date: Thu, 27 Apr 2017 13:38:21 -0700 Subject: [PATCH] ARM: dts: msm: Add iommu coherent test device for msm8998 Added a new iommu test device which is dma-coherent. This test device will be used for validating buffer coherency. Change-Id: Iea1c57fd2cd5d71de2f26932d21cae8102fb918e Signed-off-by: Sudarshan Rajagopalan --- arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi b/arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi index ecfff13f9355..da28e56bc2df 100644 --- a/arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi +++ b/arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi @@ -176,4 +176,16 @@ */ iommus = <&mmss_smmu 42>; }; + + iommu_coherent_test_device { + compatible = "iommu-debug-test"; + /* + * 43 shouldn't be used by anyone on the mmss_smmu. We just + * need _something_ here to get this node recognized by the + * SMMU driver. Our test uses ATOS, which doesn't use SIDs + * anyways, so using a dummy value is ok. + */ + iommus = <&mmss_smmu 43>; + dma-coherent; + }; }; -- 2.11.0