Skip to contentSkip to conversation

dt-bindings: dma: pl08x: Fix unevaluatedProperties warnings

PATCH Applied Rob Herring 3 participants 3 messages Dec 6, 2021 – Dec 13, 2021

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: dma: pl08x: Fix unevaluatedProperties warnings

With 'unevaluatedProperties' support implemented, the example has warnings on primecell properties and 'resets':

Documentation/devicetree/bindings/dma/arm-pl08x.example.dt.yaml: dma-controller@67000000: Unevaluated properties are not allowed ('arm,primecell-periphid', 'resets' were unexpected)

Add the missing reference to primecell.yaml and definition for 'resets'.

---
 Documentation/devicetree/bindings/dma/arm-pl08x.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/dma/arm-pl08x.yaml +4 -0
index 3bd9eea543ca..9193b18fb75f 100644
@@ -10,6 +10,7 @@ maintainers:
   - Vinod Koul <[email protected]>
 
 allOf:
+  - $ref: /schemas/arm/primecell.yaml#
   - $ref: "dma-controller.yaml#"
 
 # We need a select here so we don't match all nodes with 'arm,primecell'
@@ -89,6 +90,9 @@ properties:
       - 64
     description: bus width used for memcpy in bits. FTDMAC020 also accept 64 bits
 
+  resets:
+    maxItems: 1
+
 required:
   - reg
   - interrupts
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rob Herring

With 'unevaluatedProperties' support implemented, the example has warnings on primecell properties and 'resets':

Documentation/devicetree/bindings/dma/arm-pl08x.example.dt.yaml: dma-controller@67000000: Unevaluated properties are not allowed ('arm,primecell-periphid', 'resets' were unexpected)

Quoted 8 lines

Add the missing reference to primecell.yaml and definition for 'resets'.

---
 Documentation/devicetree/bindings/dma/arm-pl08x.yaml | 4 ++++
 1 file changed, 4 insertions(+)
maintainer Applied
#2 lore raw
In reply to Rob Herring
Quoted 6 lines · Rob Herring

With 'unevaluatedProperties' support implemented, the example has warnings on primecell properties and 'resets':

Documentation/devicetree/bindings/dma/arm-pl08x.example.dt.yaml: dma-controller@67000000: Unevaluated properties are not allowed ('arm,primecell-periphid', 'resets' were unexpected)

Add the missing reference to primecell.yaml and definition for 'resets'.

Applied, thanks

Signature · 1 line
~Vinod