Skip to content

Commit

Permalink
dt-bindings: reserved-memory: Add restricted-dma-pool constraints
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Link: https://lore.kernel.org/r/a4f3d4e2feef008d1236ebc3f5f0c46360f20c60.1645119806.git.robin.murphy@arm.com
  • Loading branch information
rmurphy-arm authored and robherring committed Feb 24, 2022
1 parent 418adab commit 10d7e31
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 10d7e31

Please sign in to comment.