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

* [PATCH 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
  2024-02-28 21:26 [PATCH 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Frank Li
@ 2024-02-28 21:26 ` 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
  1 sibling, 1 reply; 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

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

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

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


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

* Re: [PATCH 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
  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
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-29  8:34 UTC (permalink / raw)
  To: Frank Li, 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

On 28/02/2024 22:26, Frank Li wrote:
> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> it.
> 
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>  Documentation/devicetree/bindings/dma/fsl,edma.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> index cf0aa8e6b9ec3..5368f8a99a21f 100644
> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> @@ -59,6 +59,8 @@ properties:
>      minItems: 1
>      maxItems: 2
>  
> +  power-domains: true

maxItems

Best regards,
Krzysztof


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

* Re: [PATCH 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-29  8:34 UTC (permalink / raw)
  To: Frank Li, 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

On 28/02/2024 22:26, Frank Li wrote:
> 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>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[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).