mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
@ 2026-09-21 23:25 Rob Herring (Arm)
  2026-09-22 10:08 ` Fabrizio Castro
  2026-09-22 13:18 ` Geert Uytterhoeven
  0 siblings, 2 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2026-09-21 23:25 UTC (permalink / raw)
  To: Geert Uytterhoeven, Linus Walleij, Krzysztof Kozlowski,
	Conor Dooley, Magnus Damm, Fabrizio Castro
  Cc: linux-renesas-soc, linux-gpio, devicetree, linux-kernel

RZ/V2M pin configuration nodes describe the I/O voltage with
power-source. Add the property and allow the 1800 mV and 3300 mV
values used by the DTS.

Assisted-by: LLM
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
index 88b2fa5e684d..f24d05136f19 100644
--- a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
@@ -73,6 +73,9 @@ additionalProperties:
         bias-disable: true
         bias-pull-down: true
         bias-pull-up: true
+        power-source:
+          description: I/O voltage in millivolts.
+          enum: [ 1800, 3300 ]
         drive-strength-microamp:
           # Superset of supported values
           enum: [ 1600, 1800, 2000, 3200, 3800, 4000, 6400, 7800, 8000,
-- 
2.53.0


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

* RE: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
  2026-09-21 23:25 [PATCH] dt-bindings: pinctrl: renesas: Allow power-source Rob Herring (Arm)
@ 2026-09-22 10:08 ` Fabrizio Castro
  2026-09-22 13:18 ` Geert Uytterhoeven
  1 sibling, 0 replies; 6+ messages in thread
From: Fabrizio Castro @ 2026-09-22 10:08 UTC (permalink / raw)
  To: Rob Herring (Arm),
	Geert Uytterhoeven, Linus Walleij, Krzysztof Kozlowski,
	Conor Dooley, magnus.damm
  Cc: linux-renesas-soc, linux-gpio, devicetree, linux-kernel

> From: Rob Herring (Arm) <robh@kernel.org>
> Sent: 22 September 2026 00:26
> To: Geert Uytterhoeven <geert+renesas@glider.be>; Linus Walleij <linusw@kernel.org>; Krzysztof
> Kozlowski <krzk+dt@kernel.org>; Conor Dooley <conor+dt@kernel.org>; magnus.damm
> <magnus.damm@gmail.com>; Fabrizio Castro <fabrizio.castro.jz@renesas.com>
> Cc: linux-renesas-soc@vger.kernel.org; linux-gpio@vger.kernel.org; devicetree@vger.kernel.org; linux-
> kernel@vger.kernel.org
> Subject: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
> 
> RZ/V2M pin configuration nodes describe the I/O voltage with
> power-source. Add the property and allow the 1800 mV and 3300 mV
> values used by the DTS.
> 
> Assisted-by: LLM
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

Reviewed-by: Fabrizio Castro <fabrizio.castro.jz@renesas.com>

> ---
>  .../devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml     | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> index 88b2fa5e684d..f24d05136f19 100644
> --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> @@ -73,6 +73,9 @@ additionalProperties:
>          bias-disable: true
>          bias-pull-down: true
>          bias-pull-up: true
> +        power-source:
> +          description: I/O voltage in millivolts.
> +          enum: [ 1800, 3300 ]
>          drive-strength-microamp:
>            # Superset of supported values
>            enum: [ 1600, 1800, 2000, 3200, 3800, 4000, 6400, 7800, 8000,
> --
> 2.53.0


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

* Re: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
  2026-09-21 23:25 [PATCH] dt-bindings: pinctrl: renesas: Allow power-source Rob Herring (Arm)
  2026-09-22 10:08 ` Fabrizio Castro
@ 2026-09-22 13:18 ` Geert Uytterhoeven
  2026-09-23 15:15   ` Rob Herring
  2026-09-24  7:24   ` Linus Walleij
  1 sibling, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2026-09-22 13:18 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: Linus Walleij, Krzysztof Kozlowski, Conor Dooley, Magnus Damm,
	Fabrizio Castro, linux-renesas-soc, linux-gpio, devicetree,
	linux-kernel

Hi Rob,

Thanks for your patch!

On Tue, 22 Sept 2026 at 01:26, Rob Herring (Arm) <robh@kernel.org> wrote:
> RZ/V2M pin configuration nodes describe the I/O voltage with
> power-source. Add the property and allow the 1800 mV and 3300 mV
> values used by the DTS.
>
> Assisted-by: LLM

Dear LLM: please consider the actual driver source code, too.

> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

> --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> @@ -73,6 +73,9 @@ additionalProperties:
>          bias-disable: true
>          bias-pull-down: true
>          bias-pull-up: true
> +        power-source:
> +          description: I/O voltage in millivolts.
> +          enum: [ 1800, 3300 ]
>          drive-strength-microamp:
>            # Superset of supported values
>            enum: [ 1600, 1800, 2000, 3200, 3800, 4000, 6400, 7800, 8000,

drivers/pinctrl/renesas/pinctrl-rzv2m.c does not implement support
for PIN_CONFIG_POWER_SOURCE yet.  So I'd rather not advertise the
power-source property in the DT bindings until the driver is fixed.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
  2026-09-22 13:18 ` Geert Uytterhoeven
@ 2026-09-23 15:15   ` Rob Herring
  2026-09-24  7:24   ` Linus Walleij
  1 sibling, 0 replies; 6+ messages in thread
From: Rob Herring @ 2026-09-23 15:15 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Krzysztof Kozlowski, Conor Dooley, Magnus Damm,
	Fabrizio Castro, linux-renesas-soc, linux-gpio, devicetree,
	linux-kernel

On Tue, Sep 22, 2026 at 03:18:53PM +0200, Geert Uytterhoeven wrote:
> Hi Rob,
> 
> Thanks for your patch!
> 
> On Tue, 22 Sept 2026 at 01:26, Rob Herring (Arm) <robh@kernel.org> wrote:
> > RZ/V2M pin configuration nodes describe the I/O voltage with
> > power-source. Add the property and allow the 1800 mV and 3300 mV
> > values used by the DTS.
> >
> > Assisted-by: LLM
> 
> Dear LLM: please consider the actual driver source code, too.
> 
> > Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> 
> > --- a/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> > +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzv2m-pinctrl.yaml
> > @@ -73,6 +73,9 @@ additionalProperties:
> >          bias-disable: true
> >          bias-pull-down: true
> >          bias-pull-up: true
> > +        power-source:
> > +          description: I/O voltage in millivolts.
> > +          enum: [ 1800, 3300 ]
> >          drive-strength-microamp:
> >            # Superset of supported values
> >            enum: [ 1600, 1800, 2000, 3200, 3800, 4000, 6400, 7800, 8000,
> 
> drivers/pinctrl/renesas/pinctrl-rzv2m.c does not implement support
> for PIN_CONFIG_POWER_SOURCE yet.  So I'd rather not advertise the
> power-source property in the DT bindings until the driver is fixed.

What A driver does, doesn't really matter. If you use it in the dts or 
the client(driver), then it must be documented.

The alternative is remove it from the .dts, but that feels wrong to me 
knowing that you will need it some day.

Rob

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

* Re: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
  2026-09-22 13:18 ` Geert Uytterhoeven
  2026-09-23 15:15   ` Rob Herring
@ 2026-09-24  7:24   ` Linus Walleij
  2026-09-24  9:38     ` Geert Uytterhoeven
  1 sibling, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2026-09-24  7:24 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Rob Herring (Arm),
	Krzysztof Kozlowski, Conor Dooley, Magnus Damm, Fabrizio Castro,
	linux-renesas-soc, linux-gpio, devicetree, linux-kernel

On Tue, Sep 22, 2026 at 3:19 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:

> > +        power-source:
> > +          description: I/O voltage in millivolts.
> > +          enum: [ 1800, 3300 ]
(...)
> drivers/pinctrl/renesas/pinctrl-rzv2m.c does not implement support
> for PIN_CONFIG_POWER_SOURCE yet.  So I'd rather not advertise the
> power-source property in the DT bindings until the driver is fixed.

The DT bindings are used by U-Boot and BSD too, what if
their drivers use it?

It's a bit confusing but we're essentially maintaining the bindings
for those other projects as well, and it's why, for a good reason,
DT maintainers originally wanted to split out the bindings to a
separate repo. (This didn't happen because nobody wants the
job of driving and maintaining that, binding maintainers have
enough trouble as it is.)

I'd say just apply the patch.

Yours,
Linus Walleij

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

* Re: [PATCH] dt-bindings: pinctrl: renesas: Allow power-source
  2026-09-24  7:24   ` Linus Walleij
@ 2026-09-24  9:38     ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2026-09-24  9:38 UTC (permalink / raw)
  To: Linus Walleij, Fabrizio Castro
  Cc: Rob Herring (Arm),
	Krzysztof Kozlowski, Conor Dooley, Magnus Damm,
	linux-renesas-soc, linux-gpio, devicetree, linux-kernel

Hi Linus,

On Thu, 24 Sept 2026 at 09:25, Linus Walleij <linusw@kernel.org> wrote:
> On Tue, Sep 22, 2026 at 3:19 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> > > +        power-source:
> > > +          description: I/O voltage in millivolts.
> > > +          enum: [ 1800, 3300 ]
> (...)
> > drivers/pinctrl/renesas/pinctrl-rzv2m.c does not implement support
> > for PIN_CONFIG_POWER_SOURCE yet.  So I'd rather not advertise the
> > power-source property in the DT bindings until the driver is fixed.
>
> The DT bindings are used by U-Boot and BSD too, what if
> their drivers use it?

As this property controls voltage, I am mostly worried that having
a user without implementation may cause ill-effects (damage?) on the hardware.
With the property missing in the DT bindings, we at least get a
warning with dtbs_check.

Fabrizio: do you have access to the hardware?
Does it work? Perhaps the SDHI driver fails to probe due to the
unhandled property?

> It's a bit confusing but we're essentially maintaining the bindings
> for those other projects as well, and it's why, for a good reason,
> DT maintainers originally wanted to split out the bindings to a
> separate repo. (This didn't happen because nobody wants the
> job of driving and maintaining that, binding maintainers have
> enough trouble as it is.)

Sure.

> I'd say just apply the patch.

I can't seem to find registers to implement the voltage switching,
so perhaps it's purely controlled externally, and the property should
not be described at all?

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2026-09-24  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 23:25 [PATCH] dt-bindings: pinctrl: renesas: Allow power-source Rob Herring (Arm)
2026-09-22 10:08 ` Fabrizio Castro
2026-09-22 13:18 ` Geert Uytterhoeven
2026-09-23 15:15   ` Rob Herring
2026-09-24  7:24   ` Linus Walleij
2026-09-24  9:38     ` Geert Uytterhoeven

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

all inboxes | Powered by JetHome®