* [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
@ 2025-05-27 20:58 Uwe Kleine-König
2025-05-28 5:18 ` Biju Das
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Uwe Kleine-König @ 2025-05-27 20:58 UTC (permalink / raw)
To: Biju Das, Daniel Lezcano, Thomas Gleixner
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Magnus Damm, linux-iio, linux-pwm,
linux-renesas-soc, devicetree
With the goal to unify all PWM bindings to use #pwm-cells = <3> update
the renesas,rz-mtu3 binding accordingly. Keep <2> documented as a
deprecated value at least until the in-tree device trees are fixed
accordingly.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
---
.../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
index 3931054b42fb..3ad10c5b66ba 100644
--- a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
+++ b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
@@ -221,7 +221,10 @@ properties:
maxItems: 1
"#pwm-cells":
- const: 2
+ oneOf:
+ - const: 2
+ deprecated: true
+ - const: 3
required:
- compatible
@@ -299,5 +302,5 @@ examples:
clocks = <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>;
power-domains = <&cpg>;
resets = <&cpg R9A07G044_MTU_X_PRESET_MTU3>;
- #pwm-cells = <2>;
+ #pwm-cells = <3>;
};
base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
--
2.47.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* RE: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2025-05-27 20:58 [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3> Uwe Kleine-König
@ 2025-05-28 5:18 ` Biju Das
2025-06-05 19:42 ` Rob Herring (Arm)
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Biju Das @ 2025-05-28 5:18 UTC (permalink / raw)
To: Uwe Kleine-König, Daniel Lezcano, Thomas Gleixner
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Geert Uytterhoeven, Magnus Damm, linux-iio@vger.kernel.org,
linux-pwm@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
devicetree@vger.kernel.org
Hi Uwe,
Thanks for the patch.
> -----Original Message-----
> From: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Sent: 27 May 2025 21:58
> Subject: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
>
> With the goal to unify all PWM bindings to use #pwm-cells = <3> update the renesas,rz-mtu3 binding
> accordingly. Keep <2> documented as a deprecated value at least until the in-tree device trees are
> fixed accordingly.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Cheers,
Biju
> ---
> .../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> index 3931054b42fb..3ad10c5b66ba 100644
> --- a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> +++ b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> @@ -221,7 +221,10 @@ properties:
> maxItems: 1
>
> "#pwm-cells":
> - const: 2
> + oneOf:
> + - const: 2
> + deprecated: true
> + - const: 3
>
> required:
> - compatible
> @@ -299,5 +302,5 @@ examples:
> clocks = <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>;
> power-domains = <&cpg>;
> resets = <&cpg R9A07G044_MTU_X_PRESET_MTU3>;
> - #pwm-cells = <2>;
> + #pwm-cells = <3>;
> };
>
> base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
> --
> 2.47.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2025-05-27 20:58 [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3> Uwe Kleine-König
2025-05-28 5:18 ` Biju Das
@ 2025-06-05 19:42 ` Rob Herring (Arm)
2025-06-16 13:08 ` Uwe Kleine-König
2026-03-25 13:24 ` Cosmin-Gabriel Tanislav
3 siblings, 0 replies; 8+ messages in thread
From: Rob Herring (Arm) @ 2025-06-05 19:42 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Magnus Damm, Conor Dooley, devicetree, Biju Das, Thomas Gleixner,
Daniel Lezcano, Krzysztof Kozlowski, Geert Uytterhoeven,
linux-pwm, linux-renesas-soc, linux-iio
On Tue, 27 May 2025 22:58:22 +0200, Uwe Kleine-König wrote:
> With the goal to unify all PWM bindings to use #pwm-cells = <3> update
> the renesas,rz-mtu3 binding accordingly. Keep <2> documented as a
> deprecated value at least until the in-tree device trees are fixed
> accordingly.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> .../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2025-05-27 20:58 [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3> Uwe Kleine-König
2025-05-28 5:18 ` Biju Das
2025-06-05 19:42 ` Rob Herring (Arm)
@ 2025-06-16 13:08 ` Uwe Kleine-König
2025-07-31 9:41 ` Uwe Kleine-König
2026-03-25 13:24 ` Cosmin-Gabriel Tanislav
3 siblings, 1 reply; 8+ messages in thread
From: Uwe Kleine-König @ 2025-06-16 13:08 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Biju Das, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Geert Uytterhoeven, Magnus Damm, linux-iio,
linux-pwm, linux-renesas-soc, devicetree
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]
Hello Daniel,
On Tue, May 27, 2025 at 10:58:22PM +0200, Uwe Kleine-König wrote:
> With the goal to unify all PWM bindings to use #pwm-cells = <3> update
> the renesas,rz-mtu3 binding accordingly. Keep <2> documented as a
> deprecated value at least until the in-tree device trees are fixed
> accordingly.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
I would expect that with the positive feedback by Biju Das and Rob
Herring it's on you to pick up this patch. Or would you prefer that I
take it via PWM?
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2025-06-16 13:08 ` Uwe Kleine-König
@ 2025-07-31 9:41 ` Uwe Kleine-König
2025-07-31 13:50 ` Daniel Lezcano
0 siblings, 1 reply; 8+ messages in thread
From: Uwe Kleine-König @ 2025-07-31 9:41 UTC (permalink / raw)
To: Daniel Lezcano
Cc: Biju Das, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Geert Uytterhoeven, Magnus Damm, linux-iio,
linux-pwm, linux-renesas-soc, devicetree
[-- Attachment #1: Type: text/plain, Size: 851 bytes --]
Hello Daniel,
On Mon, Jun 16, 2025 at 03:08:41PM +0200, Uwe Kleine-König wrote:
> On Tue, May 27, 2025 at 10:58:22PM +0200, Uwe Kleine-König wrote:
> > With the goal to unify all PWM bindings to use #pwm-cells = <3> update
> > the renesas,rz-mtu3 binding accordingly. Keep <2> documented as a
> > deprecated value at least until the in-tree device trees are fixed
> > accordingly.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
>
> I would expect that with the positive feedback by Biju Das and Rob
> Herring it's on you to pick up this patch. Or would you prefer that I
> take it via PWM?
I understood your silence as "Please pick that patch up via your PWM
tree" and did that now.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2025-07-31 9:41 ` Uwe Kleine-König
@ 2025-07-31 13:50 ` Daniel Lezcano
0 siblings, 0 replies; 8+ messages in thread
From: Daniel Lezcano @ 2025-07-31 13:50 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Biju Das, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Geert Uytterhoeven, Magnus Damm, linux-iio,
linux-pwm, linux-renesas-soc, devicetree
On 31/07/2025 11:41, Uwe Kleine-König wrote:
> Hello Daniel,
>
> On Mon, Jun 16, 2025 at 03:08:41PM +0200, Uwe Kleine-König wrote:
>> On Tue, May 27, 2025 at 10:58:22PM +0200, Uwe Kleine-König wrote:
>>> With the goal to unify all PWM bindings to use #pwm-cells = <3> update
>>> the renesas,rz-mtu3 binding accordingly. Keep <2> documented as a
>>> deprecated value at least until the in-tree device trees are fixed
>>> accordingly.
>>>
>>> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
>>
>> I would expect that with the positive feedback by Biju Das and Rob
>> Herring it's on you to pick up this patch. Or would you prefer that I
>> take it via PWM?
>
> I understood your silence as "Please pick that patch up via your PWM
> tree" and did that now.
Yep, sorry missed it.
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2025-05-27 20:58 [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3> Uwe Kleine-König
` (2 preceding siblings ...)
2025-06-16 13:08 ` Uwe Kleine-König
@ 2026-03-25 13:24 ` Cosmin-Gabriel Tanislav
2026-03-27 16:46 ` u.kleine-koenig
3 siblings, 1 reply; 8+ messages in thread
From: Cosmin-Gabriel Tanislav @ 2026-03-25 13:24 UTC (permalink / raw)
To: u.kleine-koenig@baylibre.com, Biju Das, Daniel Lezcano,
Thomas Gleixner, Rob Herring, Krzysztof Kozlowski
Cc: Conor Dooley, Geert Uytterhoeven, magnus.damm,
linux-iio@vger.kernel.org, linux-pwm@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org
> From: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> Sent: Tuesday, May 27, 2025 11:58 PM
>
> With the goal to unify all PWM bindings to use #pwm-cells = <3> update
> the renesas,rz-mtu3 binding accordingly. Keep <2> documented as a
> deprecated value at least until the in-tree device trees are fixed
> accordingly.
>
Hello Uwe, Rob, Krzysztof.
Sorry for replying to an old patch, but the context is relevant to my
question.
I'm working on adding MTU3 support for a new platform, Renesas RZ/T2H.
From this patch, it is clear that new platforms should use
#pwm-cells = <3>; as <2> is deprecated.
What I would like to clarify is whether existing platforms are also
expected to be migrated from #pwm-cells = <2> to #pwm-cells = <3>.
My understanding is that changing the provider to #pwm-cells = <3> would
break existing consumers that still specify only two cells in their PWM
specifiers, since those references would then fail the checks inside
of_phandle_iterator_next().
There are no existing consumers in-tree, but there might be out-of-tree
ones that depend on #pwm-cells = <2>;.
If we're okay with the ABI breakage I can proceed with the changes for
existing platforms too.
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> ---
> .../devicetree/bindings/timer/renesas,rz-mtu3.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> index 3931054b42fb..3ad10c5b66ba 100644
> --- a/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> +++ b/Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml
> @@ -221,7 +221,10 @@ properties:
> maxItems: 1
>
> "#pwm-cells":
> - const: 2
> + oneOf:
> + - const: 2
> + deprecated: true
> + - const: 3
>
> required:
> - compatible
> @@ -299,5 +302,5 @@ examples:
> clocks = <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>;
> power-domains = <&cpg>;
> resets = <&cpg R9A07G044_MTU_X_PRESET_MTU3>;
> - #pwm-cells = <2>;
> + #pwm-cells = <3>;
> };
>
> base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
> --
> 2.47.2
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3>
2026-03-25 13:24 ` Cosmin-Gabriel Tanislav
@ 2026-03-27 16:46 ` u.kleine-koenig
0 siblings, 0 replies; 8+ messages in thread
From: u.kleine-koenig @ 2026-03-27 16:46 UTC (permalink / raw)
To: Cosmin-Gabriel Tanislav
Cc: Biju Das, Daniel Lezcano, Thomas Gleixner, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Geert Uytterhoeven,
magnus.damm, linux-iio@vger.kernel.org, linux-pwm@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]
Hello,
On Wed, Mar 25, 2026 at 01:24:40PM +0000, Cosmin-Gabriel Tanislav wrote:
> Sorry for replying to an old patch, but the context is relevant to my
> question.
>
> I'm working on adding MTU3 support for a new platform, Renesas RZ/T2H.
>
> From this patch, it is clear that new platforms should use
> #pwm-cells = <3>; as <2> is deprecated.
>
> What I would like to clarify is whether existing platforms are also
> expected to be migrated from #pwm-cells = <2> to #pwm-cells = <3>.
>
> My understanding is that changing the provider to #pwm-cells = <3> would
> break existing consumers that still specify only two cells in their PWM
> specifiers, since those references would then fail the checks inside
> of_phandle_iterator_next().
The conversion doesn't break dtbs, because in a single dtb consumer and
PWM device are consistent. So from my POV updating is fine.
> There are no existing consumers in-tree, but there might be out-of-tree
> ones that depend on #pwm-cells = <2>;.
That might happen for out-of-tree dts files that include the SoC's
.dtsi. IMHO it's ok to break these.
> If we're okay with the ABI breakage I can proceed with the changes for
> existing platforms too.
The reason that made me stop continuing the conversion myself is the
somewhat stuck discussion at
https://patchwork.ozlabs.org/project/linux-pwm/patch/crk42dsypmbyqk7avldghjq32vslmalfmmouwxzgtdci4agfhz@rkbmxj5z22fx/
.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-03-27 16:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27 20:58 [PATCH] dt-bindings: timer: renesas,rz-mtu3: Use #pwm-cells = <3> Uwe Kleine-König
2025-05-28 5:18 ` Biju Das
2025-06-05 19:42 ` Rob Herring (Arm)
2025-06-16 13:08 ` Uwe Kleine-König
2025-07-31 9:41 ` Uwe Kleine-König
2025-07-31 13:50 ` Daniel Lezcano
2026-03-25 13:24 ` Cosmin-Gabriel Tanislav
2026-03-27 16:46 ` u.kleine-koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox