All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Gary Yang" <gary.yang@cixtech.com>
Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/4] dt-bindings: usb: add Realtek RTS5453H Type-C port controller
Date: Sat, 07 Nov 2026 01:23:50 +0000	[thread overview]
Message-ID: <sashiko-outbox-202460@kernel.org> (raw)
In-Reply-To: <20261107011012.3655873-2-gary.yang@cixtech.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Low] dt-bindings: usb: rts5453h uses addressed connector pattern for
  single port
- [Low] dt-bindings: usb: rts5453h unconditionally requires
  try-power-role
--

commit bf789180bfcb329a121d357c95111fa527217ccf
Author: Gary Yang <gary.yang@cixtech.com>

dt-bindings: usb: add Realtek RTS5453H Type-C port controller

This commit adds the Device Tree binding schema for the Realtek RTS5453H
I2C-connected USB Type-C port controller.

> diff --git a/Documentation/devicetree/bindings/usb/realtek,rts5453h.yaml b/Documentation/devicetree/bindings/usb/realtek,rts5453h.yaml
> new file mode 100644
> index 0000000000000..535aa23794273
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/realtek,rts5453h.yaml
> @@ -0,0 +1,126 @@

[ ... ]

> +  '#address-cells':
> +    const: 1
> +
> +  '#size-cells':
> +    const: 0
> +
> +  interrupts:
> +    maxItems: 1
> +
> +patternProperties:
> +  '^connector@[0-9a-f]+$':
> +    type: object
> +    $ref: /schemas/connector/usb-connector.yaml#
> +    unevaluatedProperties: false
> +    description:
> +      The USB Type-C connector managed by this controller.
> +
> +    required:
> +      - reg
> +      - data-role
> +      - power-role
> +      - try-power-role

[Severity: Low]
Should try-power-role be optional here instead of required?

In usb-connector.yaml and typec_get_fw_cap(), try-power-role only applies
when power-role is "dual" and is optional even for dual-role ports.
Requiring it unconditionally forces fixed source-only or sink-only ports
(including the example below with power-role = "source") and dual-role
ports without a preferred role to specify an inapplicable property.

> +
> +required:
> +  - compatible
> +  - reg
> +  - '#address-cells'
> +  - '#size-cells'
> +  - interrupts

[Severity: Low]
Since the RTS5453H manages a single USB Type-C connector, should this
define a single "connector" object property in properties (and list
"connector" in required) instead of using patternProperties with unit
addresses?

Using '^connector@[0-9a-f]+$' with '#address-cells', '#size-cells', and
reg allows multiple connector child nodes at arbitrary unit addresses
while leaving the connector node itself optional on the controller.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261107011012.3655873-1-gary.yang@cixtech.com?part=1

  reply	other threads:[~2026-11-07  1:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07  1:10 [PATCH 0/4] usb: typec: add CIX Type-C PD controller driver Gary Yang
2026-11-07  1:10 ` [PATCH 1/4] dt-bindings: usb: add Realtek RTS5453H Type-C port controller Gary Yang
2026-11-07  1:23   ` sashiko-bot [this message]
2026-11-07 10:54   ` Krzysztof Kozlowski
2026-11-07  1:10 ` [PATCH 2/4] usb: typec: add CIX Type-C PD controller driver Gary Yang
2026-11-07  1:57   ` sashiko-bot
2026-11-07 10:56   ` Krzysztof Kozlowski
2026-11-09  5:43     ` Gary Yang
2026-11-07 13:11   ` kernel test robot
2026-11-07 18:05   ` kernel test robot
2026-11-07  1:10 ` [PATCH 3/4] arm64: dts: cix: fix I2C bus address and size cells on Sky1 Gary Yang
2026-11-07  1:58   ` sashiko-bot
2026-11-07 10:53   ` Krzysztof Kozlowski
2026-11-07  1:10 ` [PATCH 4/4] arm64: dts: cix: add RTS5453 PD controllers to Orion O6 Gary Yang
2026-11-07  2:03   ` sashiko-bot
2026-11-07 10:53   ` Krzysztof Kozlowski
2026-11-09  2:07     ` Gary Yang
2026-11-09  7:29       ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-202460@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gary.yang@cixtech.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.