From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796367179; b=lRnwAakcZj6ink1vPtIkmQGq3LNcPcypeG/3SlPUqW2UevtHcDcbbybDaQOJKArvN8QS fv8W89GGDRJ+jxWqZNGcnmYTcp6shFyAaIWTO9tWe3lqp1gJPccLqQXOdmhIDVGAqmE6/ BI5yKNZnFUZ1tOtqXxa07ACfsWKdnqotdvXHW/iLe1a1+3xmVD9qRtLeK0VcL0vUEvjKa Ag7YHER0oBNHykWZvduDn20Q4IrtjKCkxWF9PGX49l3hcG5n9DqDR7X4nAXK4+1tkpe8w WRcf88ljpY/5IQ4EnBrFQwZ36pbthgQIoReo6YyYERo7mwbYwwVLCdcGW+8idjKZMkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796367179; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Oh6Kyie+74rDycNuuRFd126DUxI26ozP+x6HMFC4hwo=; b=kC1EV5sPws8kZ0W32exeQeOEbPd3Qt5D7N5PDJ7pmYv4rJrA8aAuly5al/Oaqgy3hsGH YrKtKg1QldFrNKhmTT9q6iTHYuTu+PIBIF9ZADRJD2IHqRMuTCe91GKjvyEj/TmVM+fhN JgFAS3OOgCJJmZXJ8lGOZchyJeD9tN/qPJO7P5GLRXExX7AeaUYcH0gIHUC7SyWArJ3Yx DYWGS2wziX6/KS1rVb1WqtBE4+aNz5r45BhGibcJwz3hsFKjf6PopEzed7TiXZhVRCKER MpKuoZUIYFXrj5EWd6AVTp8j/0i7MVm1B+i6JyfG0QZvNutLXgq27KMyg+ALr6cFZlQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CCEVaCsf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A99C0606A322 for ; Fri, 4 Dec 2026 06:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CCEVaCsf Received: by smtp.kernel.org (Postfix) with ESMTPSA id 318CE1F00897; Fri, 4 Dec 2026 06:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796367179; bh=Oh6Kyie+74rDycNuuRFd126DUxI26ozP+x6HMFC4hwo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CCEVaCsfgoc2WBn5JeSU3WRIDsZFm6ZxKAYoGihkbMmIoDzphjslY4XosWK4jYkQm iEdHi/vYyiFmPkbXS/YVvkFvIpf0Kks27jnjwXZQob8S61g3372qXfMUEswRP2G6cK 8u5dIEqCGvYM3gDb88bpMuANkJNF7NYfoaaassYi2q1Fwt3GKO03QhuEs6lillnJDL 53u/G0B0EkPMBzx2ubrMkhFP9pSaC5cOCSOG9ppeIa0AAyjYMJVzDkpKvoTtbNjaQz cdDEQB4nZ14QUEbk7pMYEId9FlaTlBaq0xaonJhQjLRYcoY5u9/WIOhjQp8Bj3jVDN f/zX9cqoXXRQg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: connector: Document ASUS Transformer's Dock Reply-To: sashiko-reviews@lists.linux.dev To: "Svyatoslav Ryhel" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204063414.63617-2-clamor95@gmail.com> References: <20261204063414.63617-1-clamor95@gmail.com> <20261204063414.63617-2-clamor95@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 06:52:58 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 > 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 [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-d= ock.yaml > new file mode 100644 > index 0000000000000..ce9730b558e5b > --- /dev/null > +++ b/Documentation/devicetree/bindings/connector/asus,transformer-dock.y= aml > @@ -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 por= t 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204063414.6361= 7-1-clamor95@gmail.com?part=3D1