devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required
@ 2024-02-28 21:26 Frank Li
  2024-02-28 21:26 ` [PATCH 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Frank Li
  2024-02-29  8:34 ` [PATCH 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Krzysztof Kozlowski
  0 siblings, 2 replies; 4+ messages in thread
From: Frank Li @ 2024-02-28 21:26 UTC (permalink / raw)
  To: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Peng Fan, open list:FREESCALE eDMA DRIVER,
	open list:FREESCALE eDMA DRIVER,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

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.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 .../devicetree/bindings/dma/fsl,edma.yaml        | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
index aa51d278cb67b..cf0aa8e6b9ec3 100644
--- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
+++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
@@ -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:
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-29  8:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-28 21:26 [PATCH 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Frank Li
2024-02-28 21:26 ` [PATCH 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Frank Li
2024-02-29  8:34   ` Krzysztof Kozlowski
2024-02-29  8:34 ` [PATCH 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).