OSDN Git Service

ARM: dts: msm: Add iommu coherent test device for msm8998
authorSudarshan Rajagopalan <sudaraja@codeaurora.org>
Thu, 27 Apr 2017 20:38:21 +0000 (13:38 -0700)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 2 May 2017 00:14:20 +0000 (17:14 -0700)
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 <sudaraja@codeaurora.org>
arch/arm/boot/dts/qcom/msm-arm-smmu-8998.dtsi

index ecfff13..da28e56 100644 (file)
                 */
                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;
+       };
 };