From: sashiko-bot@kernel.org
To: "Marek Vasut" <marek.vasut+renesas@mailbox.org>,
linux-phy@lists.infradead.org
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
vkoul@kernel.org, neil.armstrong@linaro.org, olteanv@gmail.com,
wsa+renesas@sang-engineering.com
Subject: Re: [PATCH v3 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H
Date: Tue, 01 Dec 2026 00:32:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-242268@kernel.org> (raw)
In-Reply-To: <20261201002008.413380-1-marek.vasut+renesas@mailbox.org>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: phy: rcar-gen5-mpphy clocks and power-domains
mismatch MDLC
- [Low] dt-bindings: phy: rcar-gen5-mpphy redundant ref-clock and rigid
phy-type
--
commit 88d7d44bbf37b3514c5bb6530abe54d77b9d4d8a
Author: Marek Vasut <marek.vasut+renesas@mailbox.org>
dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H
This commit adds the Device Tree binding schema for the Renesas Multi-Protocol
PHY (MP-PHY) present in the R-Car X5H (R8A78000) SoC.
> diff --git a/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml b/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml
> new file mode 100644
> index 0000000000000..7aa8fe18e151c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/renesas,rcar-gen5-mpphy.yaml
> @@ -0,0 +1,151 @@
[ ... ]
> + clocks:
> + items:
> + - description: PHY0 module STOP clock gating
> + - description: PHY1 module STOP clock gating
> + - description: PHY2 module STOP clock gating
> + - description: PHY3 module STOP clock gating
> + - description: MPPHY common part module STOP clock gating
> +
> + clock-names:
> + items:
> + - const: mpphy01
> + - const: mpphy11
> + - const: mpphy21
> + - const: mpphy31
> + - const: mpphy02
> +
> + power-domains:
> + items:
> + - description: PD_MPP0 power domain
> + - description: PD_MPP1 power domain
> + - description: PD_MPP2 power domain
> + - description: PD_MPP3 power domain
> +
> + power-domain-names:
> + items:
> + - const: mpp0
> + - const: mpp1
> + - const: mpp2
> + - const: mpp3
[Severity: Medium]
How does this clocks and power-domains layout fit the R-Car X5H Module
Controller (renesas,r8a78000-mdlc)?
In upstream r8a78000.dtsi and renesas,r8a78000-mdlc.yaml, the Module
Controller (such as mdlc_hscn) is not a clock provider and has no
#clock-cells. Instead, it exposes #power-domain-cells = <2>, where the
first cell selects the power domain (MPDG index or always-on R8A78000_MDLC_PD_*
domain) and the second cell selects the module standby (module STOP clock
gating) index.
Requiring five clocks for module STOP gating while limiting power-domains to
four entries (omitting the fifth module standby domain for the mpphy02
common part) prevents an r8a78000.dtsi MP-PHY node from using mdlc_hscn
without failing schema validation. The example below also references
scmi_clk, scmi_devpd, and scmi_reset rather than the MDLC provider.
[ ... ]
> + renesas,phy-type:
> + description: PHY multiplexing configuration for each PHY within the MP-PHY.
> + $ref: /schemas/types.yaml#/definitions/uint32-matrix
> + minItems: 4
> + maxItems: 4
> + items:
> + items:
> + - description: PHY mode (PCIe, USB, Ethernet)
> + enum: [2, 4, 7]
> + - description: PHY mode index (PCIe 0 or 1, USB 0 or 1, Ethernet 0..3)
> + minimum: 0
> + maximum: 3
> +
> + renesas,external-ref-clock:
> + description: |
> + PHY external reference clock select for each PHY within the MP-PHY.
> + In case PHYn clock input is supplied from external pad, set position
> + n to 1. In case PHYn clock input is supplied from repeated PHY(n+1)
> + clock inside the MP-PHY, set position n to 0.
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + minItems: 4
> + maxItems: 4
> + items:
> + enum: [0, 1]
> +
> + renesas,output-repeat-ref-clock:
> + description: |
> + PHY repeat reference clock select for each PHY within the MP-PHY.
> + In case PHYn clock input is tied to ground, and PHYn clock should
> + be supplied from repeated PHY(n+1) clock inside the MP-PHY, then
> + set position (n+1) to 1 make PHY(n+1) repeat clock toward PHYn
> + inside the MP-PHY.
> + $ref: /schemas/types.yaml#/definitions/uint32-array
> + minItems: 4
> + maxItems: 4
> + items:
> + enum: [0, 1]
[Severity: Low]
Are both renesas,external-ref-clock and renesas,output-repeat-ref-clock
needed, and how should an unused PHY sub-block be represented in
renesas,phy-type?
Setting renesas,external-ref-clock at index n to 0 already states that PHYn
takes its reference clock repeated from PHY(n+1), which implies
renesas,output-repeat-ref-clock at index (n+1) must be 1. Requiring both
arrays duplicates the same clock routing information and allows contradictory
DT configurations.
In addition, requiring four entries in renesas,phy-type with the mode
restricted to enum: [2, 4, 7] leaves no valid value (such as PHY_NONE) for
boards that leave one or more of the four IO blocks unpopulated.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201002008.413380-1-marek.vasut+renesas@mailbox.org?part=1
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
prev parent reply other threads:[~2026-12-01 0:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:19 [PATCH v3 1/3] dt-bindings: phy: Document Renesas Multi-Protocol PHY driver for R-Car X5H Marek Vasut
2026-12-01 0:19 ` [PATCH v3 2/3] phy: renesas: Add " Marek Vasut
2026-12-01 0:34 ` sashiko-bot
2026-12-01 0:19 ` [PATCH v3 3/3] phy: renesas: rcar-gen5-mpphy: Document how to obtain firmware Marek Vasut
2026-12-01 0:32 ` sashiko-bot [this message]
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-242268@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=neil.armstrong@linaro.org \
--cc=olteanv@gmail.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=vkoul@kernel.org \
--cc=wsa+renesas@sang-engineering.com \
/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