Skip to contentSkip to conversation

dt-bindings: dma: fsl-edma: remove 'clocks' from required

PATCH Superseded Frank Li 2 participants 4 messages Feb 28, 2024 – Feb 29, 2024

Subsystems (4)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/2 dt-bindings: dma: fsl-edma: remove 'clocks' from required

fsl,imx8qm-adma and fsl,imx8qm-edma don't require 'clocks'. Remove it from required and add 'if' block for other compatible string to keep the same restrictions.

---
 .../devicetree/bindings/dma/fsl,edma.yaml        | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/dma/fsl,edma.yaml +15 -1
index aa51d278cb67b..cf0aa8e6b9ec3 100644
@@ -70,7 +70,6 @@ required:
   - compatible
   - reg
   - interrupts
-  - clocks
   - dma-channels
 
 allOf:
@@ -151,6 +150,21 @@ allOf:
         dma-channels:
           const: 32
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - fsl,vf610-edma
+              - fsl,imx7ulp-edma
+              - fsl,imx93-edma3
+              - fsl,imx93-edma4
+              - fsl,imx95-edma5
+              - fsl,ls1028a-edma
+    then:
+      required:
+        - clocks
+
 unevaluatedProperties: false
 
 examples:
Signature · 1 line
2.34.1
author maintainer
#1 lore raw

PATCH 2/2 dt-bindings: dma: fsl-edma: allow 'power-domains' property

Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need it.

---
 Documentation/devicetree/bindings/dma/fsl,edma.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/dma/fsl,edma.yaml +2 -0
index cf0aa8e6b9ec3..5368f8a99a21f 100644
@@ -59,6 +59,8 @@ properties:
     minItems: 1
     maxItems: 2
 
+  power-domains: true
+
   big-endian:
     description: |
       If present registers and hardware scatter/gather descriptors of the
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property

Quoted 13 lines · Frank Li

Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need it.

---
 Documentation/devicetree/bindings/dma/fsl,edma.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/dma/fsl,edma.yaml +0 -0
index cf0aa8e6b9ec3..5368f8a99a21f 100644

Documentation/devicetree/bindings/dma/fsl,edma.yaml properties: · line 62

Quoted 4 lines
Documentation/devicetree/bindings/dma/fsl,edma.yaml +1 -0
@@ -59,6 +59,8 @@ properties:
     minItems: 1
     maxItems: 2
 
+  power-domains: true

maxItems

Best regards,
Krzysztof