From: sashiko-bot@kernel.org
To: "Yu-Chun Lin" <eleanor.lin@realtek.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: soc: realtek: Add Realtek DHC I/O level detector
Date: Thu, 04 Jun 2026 11:26:01 +0000 [thread overview]
Message-ID: <20260604112601.9D7261F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260604111821.975624-2-eleanor.lin@realtek.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The binding models a software routine as a virtual hardware node, improperly hijacking pin control from disjoint peripherals.
--
commit fcf36e305148fab2c941a519260634bf6fcea792
Author: Tzuyi Chang <tychang@realtek.com>
dt-bindings: soc: realtek: Add Realtek DHC I/O level detector
This commit adds device tree binding documentation for the Realtek DHC
I/O level detector. The block detects I/O signaling levels and applies
pad configurations via pinctrl states.
> diff --git a/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1625-io-detect.yaml b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1625-io-detect.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/realtek/realtek,rtd1625-io-detect.yaml
[ ... ]
> +properties:
> + compatible:
> + const: realtek,rtd1625-io-detect
> +
> + pinctrl-names:
> + items:
> + - const: rgmii_1v8
> + - const: rgmii_3v3
> + - const: sdio_1v8
> + - const: sdio_3v3
> + - const: csi_1v8
> + - const: csi_3v3
> + - const: sd_1v8
> + - const: sd_3v3
> + - const: uart1_1v8
> + - const: uart1_3v3
> + - const: aio_1v8
> + - const: aio_3v3
> + - const: emmc_1v8
> + - const: emmc_3v3
[Severity: High]
Does this centralized approach prevent the actual peripheral drivers from
managing their own pins dynamically?
For example, MMC/SDHCI drivers typically need to switch between 1.8V and
3.3V pinctrl states during UHS enumeration. By statically claiming all
these disjoint states (RGMII, SDIO, eMMC, etc.) in a single node, does
this strip the individual peripheral drivers of their pin ownership and
break standard subsystem-level pin management?
> +
> + realtek,iso-pinctrl:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description:
> + Pinctrl phandle containing I/O detection registers.
[Severity: High]
Does this binding describe a software routine rather than actual
hardware topology?
Since there is no reg property and the node accesses registers via the
realtek,iso-pinctrl phandle, this appears to model a virtual device node.
Device tree principles typically require describing hardware topology.
Could the I/O detection logic be modeled within the actual pinctrl
hardware node or peripheral nodes instead?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260604111821.975624-1-eleanor.lin@realtek.com?part=1
next prev parent reply other threads:[~2026-06-04 11:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 11:18 [PATCH 0/3] soc: realtek: Add Realtek DHC I/O level detector support Yu-Chun Lin
2026-06-04 11:18 ` [PATCH 1/3] dt-bindings: soc: realtek: Add Realtek DHC I/O level detector Yu-Chun Lin
2026-06-04 11:26 ` sashiko-bot [this message]
2026-06-04 12:49 ` Krzysztof Kozlowski
2026-06-04 11:18 ` [PATCH 2/3] soc: realtek: Add driver for " Yu-Chun Lin
2026-06-04 11:28 ` sashiko-bot
2026-06-04 11:18 ` [PATCH 3/3] arm64: dts: realtek: Add " Yu-Chun Lin
2026-06-04 11:33 ` 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=20260604112601.9D7261F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=eleanor.lin@realtek.com \
--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