提交 10d7e312 编写于 作者: R Robin Murphy 提交者: Rob Herring

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: NRobin Murphy <robin.murphy@arm.com>
Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/a4f3d4e2feef008d1236ebc3f5f0c46360f20c60.1645119806.git.robin.murphy@arm.com
上级 418adabe
...@@ -56,6 +56,16 @@ properties: ...@@ -56,6 +56,16 @@ properties:
If this property is present, then Linux will use the region for If this property is present, then Linux will use the region for
the default pool of the consistent DMA allocator. 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 unevaluatedProperties: false
examples: examples:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册