Re: [PATCH 2/2] dt-bindings: i2c: rtl9300: add pinctrl
From: Conor Dooley
Date: Mon Oct 05 2026 - 06:42:05 EST
On Sun, Oct 04, 2026 at 10:32:35PM +0700, Michael Zavertkin wrote:
> For RTL9607C driver used to configure IO_MODE register. This register is
> global and is a scope of pinctrl driver (either pinctrl-single or WIP
> driver for SoC).
>
> Drop realtek,scl requirement for that SoC and require pinctrl instead.
This patch itself is probably fine, but the driver changes will cause
regressions because all existing devicetrees are going to have
realtek,scl and not the pinctrl properties. You need to retain the
driver code and make the register setting optional depending on if the
scl is there (or similar).
pw-bot: changes-requested
Thanks,
Conor.
>
> Signed-off-by: Michael Zavertkin <misha.zavertkin@xxxxxxx>
> ---
> .../devicetree/bindings/i2c/realtek,rtl9301-i2c.yaml | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/realtek,rtl9301-i2c.yaml b/Documentation/devicetree/bindings/i2c/realtek,rtl9301-i2c.yaml
> index 5873cfdc5b3e..ad143509aa42 100644
> --- a/Documentation/devicetree/bindings/i2c/realtek,rtl9301-i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/realtek,rtl9301-i2c.yaml
> @@ -57,6 +57,10 @@ properties:
> clocks:
> maxItems: 1
>
> + pinctrl-0: true
> +
> + pinctrl-names: true
> +
> patternProperties:
> '^i2c@[0-9ab]$':
> $ref: /schemas/i2c/i2c-controller.yaml
> @@ -94,8 +98,9 @@ allOf:
> const: realtek,rtl9607-i2c
> then:
> required:
> - - realtek,scl
> - clocks
> + - pinctrl-0
> + - pinctrl-names
>
> required:
> - compatible
> --
> 2.54.0
>
Attachment:
signature.asc
Description: PGP signature