Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Svyatoslav Ryhel" <clamor95@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: connector: Document ASUS Transformer's Dock
Date: Fri, 04 Dec 2026 06:52:58 +0000	[thread overview]
Message-ID: <sashiko-outbox-249259@kernel.org> (raw)
In-Reply-To: <20261204063414.63617-2-clamor95@gmail.com>

Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] dt-bindings: connector: invalid USB HCD and OF-graph topology
  for dock USB
- [Medium] dt-bindings: connector: generic device-family compatible
  asus,transformer-dock
- [Low] dt-bindings: connector: usb-connector pattern allows three nodes
  simultaneously
- [Low] dt-bindings: connector: commit message omits USB port, hub, and
  connectors
- [Low] dt-bindings: connector: i2c-parent description calls dock a
  multiplexer
--

commit 23017faaeccc7305b09d4187274fdced8e9a001f
Author: Svyatoslav Ryhel <clamor95@gmail.com>

> dt-bindings: connector: Document ASUS Transformer's Dock
>
> Document a hardware configuration that uses a GPIO signal to determine the
> presence and state of devices on the bus, allowing the system to
> dynamically configure a predetermined set of I2C devices as they are
> plugged in or removed used in Tegra based ASUS Transformers.
>
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>

[Severity: Low]
Should the commit message also describe the USB port, USB hub container,
and USB connectors added by this binding?  Right now it only mentions
GPIO-detected hot-pluggable I2C devices, leaving out the rationale for
the USB portion of the schema.

> diff --git a/Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml b/Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml
> new file mode 100644
> index 0000000000000..ce9730b558e5b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/connector/asus,transformer-dock.yaml
> @@ -0,0 +1,171 @@

[ ... ]

> +properties:
> +  compatible:
> +    const: asus,transformer-dock

[Severity: Medium]
Should compatible use model-specific strings with a fallback instead of
the device-family name asus,transformer-dock?

writing-bindings.rst forbids device-family names in compatibles.  A single
family string cannot distinguish hardware differences across Tegra docks
(such as one vs. two USB ports), unlike sibling bindings such as
asus,tf201-ec-pad.yaml which define model-specific compatibles.

[ ... ]

> +  i2c-parent:
> +    $ref: /schemas/types.yaml#/definitions/phandle
> +    description:
> +      The phandle of the I2C bus that this multiplexer's master-side port is
> +      connected to.

[Severity: Low]
This description looks copied from i2c-mux-gpio.yaml and refers to the
dock as a multiplexer, even though it is a detachable bus extension rather
than an I2C multiplexer.

[ ... ]

> +  port:
> +    $ref: /schemas/graph.yaml#/properties/port
> +    description:
> +      OF graph link modeling a connection from HOST USB node to Dock.
> +
> +  usb:
> +    $ref: /schemas/usb/usb-hcd.yaml#
> +    description:
> +      Container for USB devices found in the dock.
> +    unevaluatedProperties: false

[Severity: Medium]
Is referencing usb-hcd.yaml and linking the dock via an OF graph port
valid for a passive downstream USB hub?

usb-hcd.yaml models a USB host controller and exposes HCD/PHY properties,
whereas the dock only contains a downstream USB hub attached to the SoC's
host controller.

In Linux, usb_of_get_device_node() (used by usb_alloc_dev() and
onboard_dev_create_pdevs()) only matches direct children of the HCD or
parent hub by reg, and never traverses an OF graph port into a separate
dock/usb container, so hub@1 and device@3 will never bind.

On Tegra ASUS Transformers, chipidea,usb2-common.yaml also requires
usb-role-switch whenever a port node is present, so adding a port to a
host-only Tegra EHCI controller fails dtbs_check.  The dock hub should
instead be described directly under the parent USB host controller node.

> +patternProperties:
> +  "^usb-connector(-[01])?$":
> +    $ref: /schemas/connector/usb-connector.yaml#
> +    description:
> +      USB connectors exposed on the dock.
> +    unevaluatedProperties: false

[Severity: Low]
Can this pattern allow three USB connector nodes (usb-connector,
usb-connector-0, and usb-connector-1) to appear at the same time?  There
is no mutual-exclusion rule preventing the unnumbered form from coexisting
with the numbered ones, exceeding the stated one-or-two port limit.

Separately, port and usb are both optional with no dependency tying them
together, so a node can declare usb without port or vice versa.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204063414.63617-1-clamor95@gmail.com?part=1

  reply	other threads:[~2026-12-04  6:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:34 [PATCH v2 0/2] platform/asus: Add driver for ASUS Transformer's Dock Svyatoslav Ryhel
2026-12-04  6:34 ` [PATCH v2 1/2] dt-bindings: connector: Document " Svyatoslav Ryhel
2026-12-04  6:52   ` sashiko-bot [this message]
2026-12-04  6:34 ` [PATCH v2 2/2] platform/asus: Add driver for ASUS Transformer's Dock of Tegra based devices Svyatoslav Ryhel
2026-12-04  7:08   ` sashiko-bot

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-249259@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=clamor95@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox