summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/reserved-memory
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2022-02-17 17:47:14 +0000
committerRob Herring <robh@kernel.org>2022-02-24 16:32:30 -0600
commit10d7e312497f13419e1f99d903961c7ec0739da3 (patch)
tree918df2da3222e1ab391a673f5efb4fb96d0f6b0c /Documentation/devicetree/bindings/reserved-memory
parent418adabeb3d048a4fd2575b8b96d0769c2fcd1c1 (diff)
dt-bindings: reserved-memory: Add restricted-dma-pool constraints
The "restricted-dma-pool" definition prohibits combination with either of the "no-map" and "reusable" properties, but this is only stated in the description text. Add those constraints to the schema so we can properly validate them. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/a4f3d4e2feef008d1236ebc3f5f0c46360f20c60.1645119806.git.robin.murphy@arm.com
Diffstat (limited to 'Documentation/devicetree/bindings/reserved-memory')
-rw-r--r--Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml b/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml
index a4bf757d6881..618105f079be 100644
--- a/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml
+++ b/Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml
@@ -56,6 +56,16 @@ properties:
If this property is present, then Linux will use the region for
the default pool of the consistent DMA allocator.
+if:
+ properties:
+ compatible:
+ contains:
+ const: restricted-dma-pool
+then:
+ properties:
+ no-map: false
+ reusable: false
+
unevaluatedProperties: false
examples: