From ad214af3c7ab0e823f36f93342cdaa3def040d9e Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Fri, 10 Jul 2020 16:31:24 -0700 Subject: [PATCH] dt-bindings: Document child nodes for iommu-debug-test devices The child nodes describe a test configuration. Change-Id: I04b829f6a8f2a1495a0156c37fc29ba961238ed1 --- bindings/iommu/iommu-debug-test.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/bindings/iommu/iommu-debug-test.yaml b/bindings/iommu/iommu-debug-test.yaml index eda386db9ad2..baa03518ec63 100644 --- a/bindings/iommu/iommu-debug-test.yaml +++ b/bindings/iommu/iommu-debug-test.yaml @@ -18,14 +18,16 @@ properties: items: - const: iommu-debug-test - iommus: - minItems: 1 - items: - - description: IOMMU specifier with a SID and an SMR mask - description: - The SID in the IOMMU specifier is a placeholder so that the SMMU driver - can recognize the node. Our test uses ATOS, which doesn't use SIDs anyway, - so using a dummy value is ok. + child nodes: + compatible: : iommu-debug-usecase + iommus: + minItems: 1 + items: + - description: IOMMU specifier with a SID and an SMR mask + description: + The SID in the IOMMU specifier is a placeholder so that the SMMU driver + can recognize the node. Our test uses ATOS, which doesn't use SIDs anyway, + so using a dummy value is ok. required: - compatible @@ -35,5 +37,8 @@ examples: - | iommu_test_device { compatible = "iommu-debug-test"; - iommus = <&cpp_fd_smmu 42>; + basic_usecase { + compatible = "iommu-debug-usecase"; + iommus = <&cpp_fd_smmu 42>; + } };