Devicetree
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3
@ 2024-10-24 10:25 Uwe Kleine-König
  2024-10-24 11:17 ` Sa, Nuno
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-10-24 10:25 UTC (permalink / raw)
  To: Michael Hennerich, Nuno Sá, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Trevor Gamblin, linux-pwm, devicetree

Using 3 cells allows to pass additional flags and is the normal
abstraction for new PWM descriptions. There are no device trees yet to
adapt to this change.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
Hello,

missed that during review of that new binding. Just noticed that now
when (internally) reviewing a machine dt using that device.

There is no need for driver adaptions, the pwm core handles both cases
just fine.

Best regards
Uwe

 Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
index ec6115d3796b..aa35209f74cf 100644
--- a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
+++ b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
@@ -27,7 +27,7 @@ properties:
     maxItems: 1
 
   "#pwm-cells":
-    const: 2
+    const: 3
 
   clocks:
     maxItems: 1
@@ -44,5 +44,5 @@ examples:
        compatible = "adi,axi-pwmgen-2.00.a";
        reg = <0x44b00000 0x1000>;
        clocks = <&spi_clk>;
-       #pwm-cells = <2>;
+       #pwm-cells = <3>;
     };
-- 
2.45.2


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

* RE: [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3
  2024-10-24 10:25 [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3 Uwe Kleine-König
@ 2024-10-24 11:17 ` Sa, Nuno
  2024-10-24 16:22 ` Conor Dooley
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Sa, Nuno @ 2024-10-24 11:17 UTC (permalink / raw)
  To: Uwe Kleine König, Hennerich, Michael, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Trevor Gamblin, linux-pwm@vger.kernel.org,
	devicetree@vger.kernel.org



> -----Original Message-----
> From: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Sent: Thursday, October 24, 2024 12:26 PM
> To: Hennerich, Michael <Michael.Hennerich@analog.com>; Sa, Nuno
> <Nuno.Sa@analog.com>; Rob Herring <robh@kernel.org>; Krzysztof
> Kozlowski <krzk+dt@kernel.org>; Conor Dooley <conor+dt@kernel.org>
> Cc: Trevor Gamblin <tgamblin@baylibre.com>; linux-pwm@vger.kernel.org;
> devicetree@vger.kernel.org
> Subject: [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3
> 
> [External]
> 
> Using 3 cells allows to pass additional flags and is the normal
> abstraction for new PWM descriptions. There are no device trees yet to
> adapt to this change.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---

Reviewed-by: Nuno Sa <nuno.sa@analog.com>

> Hello,
> 
> missed that during review of that new binding. Just noticed that now
> when (internally) reviewing a machine dt using that device.
> 
> There is no need for driver adaptions, the pwm core handles both cases
> just fine.
> 
> Best regards
> Uwe
> 
>  Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> index ec6115d3796b..aa35209f74cf 100644
> --- a/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> +++ b/Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
> @@ -27,7 +27,7 @@ properties:
>      maxItems: 1
> 
>    "#pwm-cells":
> -    const: 2
> +    const: 3
> 
>    clocks:
>      maxItems: 1
> @@ -44,5 +44,5 @@ examples:
>         compatible = "adi,axi-pwmgen-2.00.a";
>         reg = <0x44b00000 0x1000>;
>         clocks = <&spi_clk>;
> -       #pwm-cells = <2>;
> +       #pwm-cells = <3>;
>      };
> --
> 2.45.2


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

* Re: [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3
  2024-10-24 10:25 [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3 Uwe Kleine-König
  2024-10-24 11:17 ` Sa, Nuno
@ 2024-10-24 16:22 ` Conor Dooley
  2024-10-24 16:34 ` Trevor Gamblin
  2024-10-24 20:45 ` Uwe Kleine-König
  3 siblings, 0 replies; 5+ messages in thread
From: Conor Dooley @ 2024-10-24 16:22 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Michael Hennerich, Nuno Sá, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Trevor Gamblin, linux-pwm, devicetree

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

On Thu, Oct 24, 2024 at 12:25:54PM +0200, Uwe Kleine-König wrote:
> Using 3 cells allows to pass additional flags and is the normal
> abstraction for new PWM descriptions. There are no device trees yet to
> adapt to this change.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> Hello,
> 
> missed that during review of that new binding. Just noticed that now
> when (internally) reviewing a machine dt using that device.
> 
> There is no need for driver adaptions, the pwm core handles both cases
> just fine.

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3
  2024-10-24 10:25 [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3 Uwe Kleine-König
  2024-10-24 11:17 ` Sa, Nuno
  2024-10-24 16:22 ` Conor Dooley
@ 2024-10-24 16:34 ` Trevor Gamblin
  2024-10-24 20:45 ` Uwe Kleine-König
  3 siblings, 0 replies; 5+ messages in thread
From: Trevor Gamblin @ 2024-10-24 16:34 UTC (permalink / raw)
  To: Uwe Kleine-König, Michael Hennerich, Nuno Sá,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-pwm, devicetree


On 2024-10-24 06:25, Uwe Kleine-König wrote:
> Using 3 cells allows to pass additional flags and is the normal
> abstraction for new PWM descriptions. There are no device trees yet to
> adapt to this change.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> Hello,
>
> missed that during review of that new binding. Just noticed that now
> when (internally) reviewing a machine dt using that device.
>
> There is no need for driver adaptions, the pwm core handles both cases
> just fine.
>
> Best regards
> Uwe
Reviewed-by: Trevor Gamblin <tgamblin@baylibre.com>

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

* Re: [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3
  2024-10-24 10:25 [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3 Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2024-10-24 16:34 ` Trevor Gamblin
@ 2024-10-24 20:45 ` Uwe Kleine-König
  3 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2024-10-24 20:45 UTC (permalink / raw)
  To: Michael Hennerich, Nuno Sá, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Trevor Gamblin, linux-pwm, devicetree

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

Hello,

On Thu, Oct 24, 2024 at 12:25:54PM +0200, Uwe Kleine-König wrote:
> Using 3 cells allows to pass additional flags and is the normal
> abstraction for new PWM descriptions. There are no device trees yet to
> adapt to this change.

With so much feedback I applied the patch already to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
with the tags for Nuno, Conor and Trevor.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2024-10-24 20:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 10:25 [PATCH] dt-bindings: pwm: adi,axi-pwmgen: Increase #pwm-cells to 3 Uwe Kleine-König
2024-10-24 11:17 ` Sa, Nuno
2024-10-24 16:22 ` Conor Dooley
2024-10-24 16:34 ` Trevor Gamblin
2024-10-24 20:45 ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox