dt-bindings: dma: fsl-edma: remove 'clocks' from required
authorFrank Li <Frank.Li@nxp.com>
Wed, 17 Apr 2024 15:24:56 +0000 (11:24 -0400)
committerVinod Koul <vkoul@kernel.org>
Thu, 25 Apr 2024 09:12:31 +0000 (14:42 +0530)
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.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240417152457.361340-1-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/dma/fsl,edma.yaml

index cf97ea86a7a2f0be3bd65dacec167801a87f09d7..12c54bcf58ca61a47003b2c0016d51a83c07ee91 100644 (file)
@@ -81,7 +81,6 @@ required:
   - compatible
   - reg
   - interrupts
-  - clocks
   - dma-channels
 
 allOf:
@@ -185,6 +184,22 @@ allOf:
         "#dma-cells":
           const: 3
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - fsl,vf610-edma
+              - fsl,imx7ulp-edma
+              - fsl,imx93-edma3
+              - fsl,imx93-edma4
+              - fsl,imx95-edma5
+              - fsl,imx8ulp-edma
+              - fsl,ls1028a-edma
+    then:
+      required:
+        - clocks
+
 unevaluatedProperties: false
 
 examples: