* [PATCH v2 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required
@ 2024-03-01 21:45 Frank Li
2024-03-01 21:45 ` [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Frank Li
0 siblings, 1 reply; 12+ messages in thread
From: Frank Li @ 2024-03-01 21:45 UTC (permalink / raw)
To: krzysztof.kozlowski
Cc: Frank.Li, conor+dt, devicetree, dmaengine, imx,
krzysztof.kozlowski+dt, linux-kernel, peng.fan, robh, vkoul
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>
---
Notes:
Change from v1 to v2
- add Krzysztof's ACK.
.../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] 12+ messages in thread
* [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-01 21:45 [PATCH v2 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Frank Li
@ 2024-03-01 21:45 ` Frank Li
2024-03-02 13:59 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Frank Li @ 2024-03-01 21:45 UTC (permalink / raw)
To: krzysztof.kozlowski
Cc: Frank.Li, conor+dt, devicetree, dmaengine, imx,
krzysztof.kozlowski+dt, linux-kernel, peng.fan, robh, vkoul
Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
it.
Fixed below DTB_CHECK warning:
dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Notes:
Change from v1 to v2
- using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
- add power-domains to 'required' when compatible string is fsl,imx8qm-adma
or fsl,imx8qm-edma
.../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
index cf0aa8e6b9ec3..76c1716b8b95c 100644
--- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
+++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
@@ -59,6 +59,10 @@ properties:
minItems: 1
maxItems: 2
+ power-domains:
+ minItems: 1
+ maxItems: 64
+
big-endian:
description: |
If present registers and hardware scatter/gather descriptors of the
@@ -165,6 +169,17 @@ allOf:
required:
- clocks
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - fsl,imx8qm-adma
+ - fsl,imx8qm-edma
+ then:
+ required:
+ - power-domains
+
unevaluatedProperties: false
examples:
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-01 21:45 ` [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Frank Li
@ 2024-03-02 13:59 ` Krzysztof Kozlowski
2024-03-02 15:42 ` Frank Li
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-02 13:59 UTC (permalink / raw)
To: Frank Li
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On 01/03/2024 22:45, Frank Li wrote:
> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> it.
>
> Fixed below DTB_CHECK warning:
> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
>
> Notes:
> Change from v1 to v2
> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
> or fsl,imx8qm-edma
>
> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> index cf0aa8e6b9ec3..76c1716b8b95c 100644
> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> @@ -59,6 +59,10 @@ properties:
> minItems: 1
> maxItems: 2
>
> + power-domains:
> + minItems: 1
> + maxItems: 64
Hm, this is odd. Blocks do not belong to almost infinite number of power
domains.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-02 13:59 ` Krzysztof Kozlowski
@ 2024-03-02 15:42 ` Frank Li
2024-03-02 16:20 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Frank Li @ 2024-03-02 15:42 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
> On 01/03/2024 22:45, Frank Li wrote:
> > Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> > it.
> >
> > Fixed below DTB_CHECK warning:
> > dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
> >
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > ---
> >
> > Notes:
> > Change from v1 to v2
> > - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
> > - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
> > or fsl,imx8qm-edma
> >
> > .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
> > 1 file changed, 15 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> > index cf0aa8e6b9ec3..76c1716b8b95c 100644
> > --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> > +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> > @@ -59,6 +59,10 @@ properties:
> > minItems: 1
> > maxItems: 2
> >
> > + power-domains:
> > + minItems: 1
> > + maxItems: 64
>
> Hm, this is odd. Blocks do not belong to almost infinite number of power
> domains.
Sorry, what's your means? 'power-domains' belong to 'properties'.
'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
wrong?
Frank
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-02 15:42 ` Frank Li
@ 2024-03-02 16:20 ` Krzysztof Kozlowski
2024-03-02 16:39 ` Frank Li
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-02 16:20 UTC (permalink / raw)
To: Frank Li
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On 02/03/2024 16:42, Frank Li wrote:
> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
>> On 01/03/2024 22:45, Frank Li wrote:
>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
>>> it.
>>>
>>> Fixed below DTB_CHECK warning:
>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
>>>
>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
>>> ---
>>>
>>> Notes:
>>> Change from v1 to v2
>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
>>> or fsl,imx8qm-edma
>>>
>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
>>> 1 file changed, 15 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>> @@ -59,6 +59,10 @@ properties:
>>> minItems: 1
>>> maxItems: 2
>>>
>>> + power-domains:
>>> + minItems: 1
>>> + maxItems: 64
>>
>> Hm, this is odd. Blocks do not belong to almost infinite number of power
>> domains.
>
> Sorry, what's your means? 'power-domains' belong to 'properties'.
> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
> wrong?
That one device belong to 64 power domains. That's just random code...
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-02 16:20 ` Krzysztof Kozlowski
@ 2024-03-02 16:39 ` Frank Li
2024-03-02 16:43 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Frank Li @ 2024-03-02 16:39 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
> On 02/03/2024 16:42, Frank Li wrote:
> > On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
> >> On 01/03/2024 22:45, Frank Li wrote:
> >>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> >>> it.
> >>>
> >>> Fixed below DTB_CHECK warning:
> >>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
> >>>
> >>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> >>> ---
> >>>
> >>> Notes:
> >>> Change from v1 to v2
> >>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
> >>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
> >>> or fsl,imx8qm-edma
> >>>
> >>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
> >>> 1 file changed, 15 insertions(+)
> >>>
> >>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
> >>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>> @@ -59,6 +59,10 @@ properties:
> >>> minItems: 1
> >>> maxItems: 2
> >>>
> >>> + power-domains:
> >>> + minItems: 1
> >>> + maxItems: 64
> >>
> >> Hm, this is odd. Blocks do not belong to almost infinite number of power
> >> domains.
> >
> > Sorry, what's your means? 'power-domains' belong to 'properties'.
> > 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
> > wrong?
>
> That one device belong to 64 power domains. That's just random code...
Yes, each dma channel have one power domain. Total 64 dma channel. So
there are 64 power-domains.
Frank
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-02 16:39 ` Frank Li
@ 2024-03-02 16:43 ` Krzysztof Kozlowski
2024-03-02 16:47 ` Frank Li
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-02 16:43 UTC (permalink / raw)
To: Frank Li
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On 02/03/2024 17:39, Frank Li wrote:
> On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
>> On 02/03/2024 16:42, Frank Li wrote:
>>> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
>>>> On 01/03/2024 22:45, Frank Li wrote:
>>>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
>>>>> it.
>>>>>
>>>>> Fixed below DTB_CHECK warning:
>>>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
>>>>>
>>>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
>>>>> ---
>>>>>
>>>>> Notes:
>>>>> Change from v1 to v2
>>>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
>>>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
>>>>> or fsl,imx8qm-edma
>>>>>
>>>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
>>>>> 1 file changed, 15 insertions(+)
>>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
>>>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>> @@ -59,6 +59,10 @@ properties:
>>>>> minItems: 1
>>>>> maxItems: 2
>>>>>
>>>>> + power-domains:
>>>>> + minItems: 1
>>>>> + maxItems: 64
>>>>
>>>> Hm, this is odd. Blocks do not belong to almost infinite number of power
>>>> domains.
>>>
>>> Sorry, what's your means? 'power-domains' belong to 'properties'.
>>> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
>>> wrong?
>>
>> That one device belong to 64 power domains. That's just random code...
>
> Yes, each dma channel have one power domain. Total 64 dma channel. So
> there are 64 power-domains.
OK, then how about extending the example to be complete?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-02 16:43 ` Krzysztof Kozlowski
@ 2024-03-02 16:47 ` Frank Li
2024-03-03 7:55 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Frank Li @ 2024-03-02 16:47 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On Sat, Mar 02, 2024 at 05:43:01PM +0100, Krzysztof Kozlowski wrote:
> On 02/03/2024 17:39, Frank Li wrote:
> > On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
> >> On 02/03/2024 16:42, Frank Li wrote:
> >>> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
> >>>> On 01/03/2024 22:45, Frank Li wrote:
> >>>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> >>>>> it.
> >>>>>
> >>>>> Fixed below DTB_CHECK warning:
> >>>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
> >>>>>
> >>>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> >>>>> ---
> >>>>>
> >>>>> Notes:
> >>>>> Change from v1 to v2
> >>>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
> >>>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
> >>>>> or fsl,imx8qm-edma
> >>>>>
> >>>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
> >>>>> 1 file changed, 15 insertions(+)
> >>>>>
> >>>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
> >>>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>> @@ -59,6 +59,10 @@ properties:
> >>>>> minItems: 1
> >>>>> maxItems: 2
> >>>>>
> >>>>> + power-domains:
> >>>>> + minItems: 1
> >>>>> + maxItems: 64
> >>>>
> >>>> Hm, this is odd. Blocks do not belong to almost infinite number of power
> >>>> domains.
> >>>
> >>> Sorry, what's your means? 'power-domains' belong to 'properties'.
> >>> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
> >>> wrong?
> >>
> >> That one device belong to 64 power domains. That's just random code...
> >
> > Yes, each dma channel have one power domain. Total 64 dma channel. So
> > there are 64 power-domains.
>
> OK, then how about extending the example to be complete?
Let's add 8qxp example at next version.
Frank
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-02 16:47 ` Frank Li
@ 2024-03-03 7:55 ` Krzysztof Kozlowski
2024-03-04 3:26 ` Frank Li
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-03 7:55 UTC (permalink / raw)
To: Frank Li
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On 02/03/2024 17:47, Frank Li wrote:
> On Sat, Mar 02, 2024 at 05:43:01PM +0100, Krzysztof Kozlowski wrote:
>> On 02/03/2024 17:39, Frank Li wrote:
>>> On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
>>>> On 02/03/2024 16:42, Frank Li wrote:
>>>>> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
>>>>>> On 01/03/2024 22:45, Frank Li wrote:
>>>>>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
>>>>>>> it.
>>>>>>>
>>>>>>> Fixed below DTB_CHECK warning:
>>>>>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
>>>>>>>
>>>>>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
>>>>>>> ---
>>>>>>>
>>>>>>> Notes:
>>>>>>> Change from v1 to v2
>>>>>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
>>>>>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
>>>>>>> or fsl,imx8qm-edma
>>>>>>>
>>>>>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
>>>>>>> 1 file changed, 15 insertions(+)
>>>>>>>
>>>>>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
>>>>>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>>>> @@ -59,6 +59,10 @@ properties:
>>>>>>> minItems: 1
>>>>>>> maxItems: 2
>>>>>>>
>>>>>>> + power-domains:
>>>>>>> + minItems: 1
>>>>>>> + maxItems: 64
>>>>>>
>>>>>> Hm, this is odd. Blocks do not belong to almost infinite number of power
>>>>>> domains.
>>>>>
>>>>> Sorry, what's your means? 'power-domains' belong to 'properties'.
>>>>> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
>>>>> wrong?
>>>>
>>>> That one device belong to 64 power domains. That's just random code...
>>>
>>> Yes, each dma channel have one power domain. Total 64 dma channel. So
>>> there are 64 power-domains.
>>
>> OK, then how about extending the example to be complete?
>
> Let's add 8qxp example at next version.
You have already enough of examples there and your change here claims
they user power domains, so why this cannot be added to existing examples?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-03 7:55 ` Krzysztof Kozlowski
@ 2024-03-04 3:26 ` Frank Li
2024-03-04 7:23 ` Krzysztof Kozlowski
0 siblings, 1 reply; 12+ messages in thread
From: Frank Li @ 2024-03-04 3:26 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On Sun, Mar 03, 2024 at 08:55:10AM +0100, Krzysztof Kozlowski wrote:
> On 02/03/2024 17:47, Frank Li wrote:
> > On Sat, Mar 02, 2024 at 05:43:01PM +0100, Krzysztof Kozlowski wrote:
> >> On 02/03/2024 17:39, Frank Li wrote:
> >>> On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
> >>>> On 02/03/2024 16:42, Frank Li wrote:
> >>>>> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
> >>>>>> On 01/03/2024 22:45, Frank Li wrote:
> >>>>>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> >>>>>>> it.
> >>>>>>>
> >>>>>>> Fixed below DTB_CHECK warning:
> >>>>>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
> >>>>>>>
> >>>>>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> >>>>>>> ---
> >>>>>>>
> >>>>>>> Notes:
> >>>>>>> Change from v1 to v2
> >>>>>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
> >>>>>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
> >>>>>>> or fsl,imx8qm-edma
> >>>>>>>
> >>>>>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
> >>>>>>> 1 file changed, 15 insertions(+)
> >>>>>>>
> >>>>>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
> >>>>>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>>>> @@ -59,6 +59,10 @@ properties:
> >>>>>>> minItems: 1
> >>>>>>> maxItems: 2
> >>>>>>>
> >>>>>>> + power-domains:
> >>>>>>> + minItems: 1
> >>>>>>> + maxItems: 64
> >>>>>>
> >>>>>> Hm, this is odd. Blocks do not belong to almost infinite number of power
> >>>>>> domains.
> >>>>>
> >>>>> Sorry, what's your means? 'power-domains' belong to 'properties'.
> >>>>> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
> >>>>> wrong?
> >>>>
> >>>> That one device belong to 64 power domains. That's just random code...
> >>>
> >>> Yes, each dma channel have one power domain. Total 64 dma channel. So
> >>> there are 64 power-domains.
> >>
> >> OK, then how about extending the example to be complete?
> >
> > Let's add 8qxp example at next version.
>
> You have already enough of examples there and your change here claims
> they user power domains, so why this cannot be added to existing examples?
Only imx8qxp/8qm need power-domains now. The example in yaml is vf610, 7ulp
and imx93. If add power-domains at existed example, it will mislead reader.
Frank
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-04 3:26 ` Frank Li
@ 2024-03-04 7:23 ` Krzysztof Kozlowski
2024-03-04 15:24 ` Frank Li
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-03-04 7:23 UTC (permalink / raw)
To: Frank Li
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On 04/03/2024 04:26, Frank Li wrote:
> On Sun, Mar 03, 2024 at 08:55:10AM +0100, Krzysztof Kozlowski wrote:
>> On 02/03/2024 17:47, Frank Li wrote:
>>> On Sat, Mar 02, 2024 at 05:43:01PM +0100, Krzysztof Kozlowski wrote:
>>>> On 02/03/2024 17:39, Frank Li wrote:
>>>>> On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
>>>>>> On 02/03/2024 16:42, Frank Li wrote:
>>>>>>> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
>>>>>>>> On 01/03/2024 22:45, Frank Li wrote:
>>>>>>>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
>>>>>>>>> it.
>>>>>>>>>
>>>>>>>>> Fixed below DTB_CHECK warning:
>>>>>>>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
>>>>>>>>>
>>>>>>>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
>>>>>>>>> ---
>>>>>>>>>
>>>>>>>>> Notes:
>>>>>>>>> Change from v1 to v2
>>>>>>>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
>>>>>>>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
>>>>>>>>> or fsl,imx8qm-edma
>>>>>>>>>
>>>>>>>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
>>>>>>>>> 1 file changed, 15 insertions(+)
>>>>>>>>>
>>>>>>>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>>>>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
>>>>>>>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
>>>>>>>>> @@ -59,6 +59,10 @@ properties:
>>>>>>>>> minItems: 1
>>>>>>>>> maxItems: 2
>>>>>>>>>
>>>>>>>>> + power-domains:
>>>>>>>>> + minItems: 1
>>>>>>>>> + maxItems: 64
>>>>>>>>
>>>>>>>> Hm, this is odd. Blocks do not belong to almost infinite number of power
>>>>>>>> domains.
>>>>>>>
>>>>>>> Sorry, what's your means? 'power-domains' belong to 'properties'.
>>>>>>> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
>>>>>>> wrong?
>>>>>>
>>>>>> That one device belong to 64 power domains. That's just random code...
>>>>>
>>>>> Yes, each dma channel have one power domain. Total 64 dma channel. So
>>>>> there are 64 power-domains.
>>>>
>>>> OK, then how about extending the example to be complete?
>>>
>>> Let's add 8qxp example at next version.
>>
>> You have already enough of examples there and your change here claims
>> they user power domains, so why this cannot be added to existing examples?
>
> Only imx8qxp/8qm need power-domains now. The example in yaml is vf610, 7ulp
Need? Hardware is either part of power domain or not. It's not dual-state.
> and imx93. If add power-domains at existed example, it will mislead reader.
Then please disallow the domains for other variants. You can convert
imx93 to imx95 example, because it's no different than other one. There
is little point in putting so many same examples in the binding. You are
just duplicating DTS.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property
2024-03-04 7:23 ` Krzysztof Kozlowski
@ 2024-03-04 15:24 ` Frank Li
0 siblings, 0 replies; 12+ messages in thread
From: Frank Li @ 2024-03-04 15:24 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: conor+dt, devicetree, dmaengine, imx, krzysztof.kozlowski+dt,
linux-kernel, peng.fan, robh, vkoul
On Mon, Mar 04, 2024 at 08:23:20AM +0100, Krzysztof Kozlowski wrote:
> On 04/03/2024 04:26, Frank Li wrote:
> > On Sun, Mar 03, 2024 at 08:55:10AM +0100, Krzysztof Kozlowski wrote:
> >> On 02/03/2024 17:47, Frank Li wrote:
> >>> On Sat, Mar 02, 2024 at 05:43:01PM +0100, Krzysztof Kozlowski wrote:
> >>>> On 02/03/2024 17:39, Frank Li wrote:
> >>>>> On Sat, Mar 02, 2024 at 05:20:42PM +0100, Krzysztof Kozlowski wrote:
> >>>>>> On 02/03/2024 16:42, Frank Li wrote:
> >>>>>>> On Sat, Mar 02, 2024 at 02:59:39PM +0100, Krzysztof Kozlowski wrote:
> >>>>>>>> On 01/03/2024 22:45, Frank Li wrote:
> >>>>>>>>> Allow 'power-domains' property because i.MX8DXL i.MX8QM and i.MX8QXP need
> >>>>>>>>> it.
> >>>>>>>>>
> >>>>>>>>> Fixed below DTB_CHECK warning:
> >>>>>>>>> dma-controller@599f0000: Unevaluated properties are not allowed ('power-domains' was unexpected)
> >>>>>>>>>
> >>>>>>>>> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> >>>>>>>>> ---
> >>>>>>>>>
> >>>>>>>>> Notes:
> >>>>>>>>> Change from v1 to v2
> >>>>>>>>> - using maxitem: 64. Each channel have one power domain. Max 64 dmachannel.
> >>>>>>>>> - add power-domains to 'required' when compatible string is fsl,imx8qm-adma
> >>>>>>>>> or fsl,imx8qm-edma
> >>>>>>>>>
> >>>>>>>>> .../devicetree/bindings/dma/fsl,edma.yaml | 15 +++++++++++++++
> >>>>>>>>> 1 file changed, 15 insertions(+)
> >>>>>>>>>
> >>>>>>>>> diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>>>>>> index cf0aa8e6b9ec3..76c1716b8b95c 100644
> >>>>>>>>> --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>>>>>> +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml
> >>>>>>>>> @@ -59,6 +59,10 @@ properties:
> >>>>>>>>> minItems: 1
> >>>>>>>>> maxItems: 2
> >>>>>>>>>
> >>>>>>>>> + power-domains:
> >>>>>>>>> + minItems: 1
> >>>>>>>>> + maxItems: 64
> >>>>>>>>
> >>>>>>>> Hm, this is odd. Blocks do not belong to almost infinite number of power
> >>>>>>>> domains.
> >>>>>>>
> >>>>>>> Sorry, what's your means? 'power-domains' belong to 'properties'.
> >>>>>>> 'maxItems' belong to 'power-domains'.It is similar with 'clocks'. what's
> >>>>>>> wrong?
> >>>>>>
> >>>>>> That one device belong to 64 power domains. That's just random code...
> >>>>>
> >>>>> Yes, each dma channel have one power domain. Total 64 dma channel. So
> >>>>> there are 64 power-domains.
> >>>>
> >>>> OK, then how about extending the example to be complete?
> >>>
> >>> Let's add 8qxp example at next version.
> >>
> >> You have already enough of examples there and your change here claims
> >> they user power domains, so why this cannot be added to existing examples?
> >
> > Only imx8qxp/8qm need power-domains now. The example in yaml is vf610, 7ulp
>
> Need? Hardware is either part of power domain or not. It's not dual-state.
>
> > and imx93. If add power-domains at existed example, it will mislead reader.
>
> Then please disallow the domains for other variants. You can convert
> imx93 to imx95 example, because it's no different than other one. There
> is little point in putting so many same examples in the binding. You are
> just duplicating DTS.
both imx93 and imx95 have not power domain now. Do you means 'imx95' as
'imx8qxp' ?
Frank?
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-03-04 15:24 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 21:45 [PATCH v2 1/2] dt-bindings: dma: fsl-edma: remove 'clocks' from required Frank Li
2024-03-01 21:45 ` [PATCH v2 2/2] dt-bindings: dma: fsl-edma: allow 'power-domains' property Frank Li
2024-03-02 13:59 ` Krzysztof Kozlowski
2024-03-02 15:42 ` Frank Li
2024-03-02 16:20 ` Krzysztof Kozlowski
2024-03-02 16:39 ` Frank Li
2024-03-02 16:43 ` Krzysztof Kozlowski
2024-03-02 16:47 ` Frank Li
2024-03-03 7:55 ` Krzysztof Kozlowski
2024-03-04 3:26 ` Frank Li
2024-03-04 7:23 ` Krzysztof Kozlowski
2024-03-04 15:24 ` Frank Li
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).