All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Gary Yang" <gary.yang@cixtech.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
	neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY
Date: Thu, 03 Dec 2026 11:04:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-247641@kernel.org> (raw)
In-Reply-To: <20261203104915.231202-2-gary.yang@cixtech.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: phy: cix,sky1-usbdp-phy omits x4 PHY reference
  clock
--

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

dt-bindings: phy: add CIX Sky1 USB/DP combo PHY

This commit adds the Devicetree binding schema for the CIX Sky1 USB/DP
combo PHY, describing its registers, clock, resets, Type-C switch
properties, S5 syscon reference, and OF graph ports.

> diff --git a/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml
> new file mode 100644
> index 0000000000000..0dd518768f339
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml
> @@ -0,0 +1,148 @@

[ ... ]

> +  clocks:
> +    maxItems: 1
> +    description: PHY APB clock.

[Severity: Medium]
Should clocks also describe the per-instance x4 PHY reference clock along
with clock-names?

include/dt-bindings/clock/cix,sky1.h defines four x4 reference clocks
(CLK_TREE_USB3C_DRD_PHY_x4_REF and CLK_TREE_USB3C_H0..H2_PHY_x4_REF)
matching the four USB/DP combo PHY instances alongside their
CLK_TREE_USB3C_*_PHY3_GATE APB clocks.

Because clocks is capped at maxItems: 1 with no clock-names property and
additionalProperties: false, DTS nodes cannot describe this reference
clock.  If a driver later needs to control or query the reference clock
rate, expanding an unnamed single-clock binding will complicate DT ABI.

If CLK_TREE_USB3C_*_PHY_x4_REF feeds this PHY block, listing both clocks
with clock-names now avoids that ABI break; otherwise it would help to
document why it is omitted.

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

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Gary Yang" <gary.yang@cixtech.com>
Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
	neil.armstrong@linaro.org, olteanv@gmail.com
Subject: Re: [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY
Date: Thu, 03 Dec 2026 11:04:40 +0000	[thread overview]
Message-ID: <sashiko-outbox-247641@kernel.org> (raw)
In-Reply-To: <20261203104915.231202-2-gary.yang@cixtech.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: phy: cix,sky1-usbdp-phy omits x4 PHY reference
  clock
--

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

dt-bindings: phy: add CIX Sky1 USB/DP combo PHY

This commit adds the Devicetree binding schema for the CIX Sky1 USB/DP
combo PHY, describing its registers, clock, resets, Type-C switch
properties, S5 syscon reference, and OF graph ports.

> diff --git a/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml
> new file mode 100644
> index 0000000000000..0dd518768f339
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml
> @@ -0,0 +1,148 @@

[ ... ]

> +  clocks:
> +    maxItems: 1
> +    description: PHY APB clock.

[Severity: Medium]
Should clocks also describe the per-instance x4 PHY reference clock along
with clock-names?

include/dt-bindings/clock/cix,sky1.h defines four x4 reference clocks
(CLK_TREE_USB3C_DRD_PHY_x4_REF and CLK_TREE_USB3C_H0..H2_PHY_x4_REF)
matching the four USB/DP combo PHY instances alongside their
CLK_TREE_USB3C_*_PHY3_GATE APB clocks.

Because clocks is capped at maxItems: 1 with no clock-names property and
additionalProperties: false, DTS nodes cannot describe this reference
clock.  If a driver later needs to control or query the reference clock
rate, expanding an unnamed single-clock binding will complicate DT ABI.

If CLK_TREE_USB3C_*_PHY_x4_REF feeds this PHY block, listing both clocks
with clock-names now avoids that ABI break; otherwise it would help to
document why it is omitted.

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

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  reply	other threads:[~2026-12-03 11:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 10:49 [PATCH v8 0/2] phy: cix: add Sky1 USB/DP combo PHY support Gary Yang
2026-12-03 10:49 ` Gary Yang
2026-12-03 10:49 ` [PATCH v8 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Gary Yang
2026-12-03 10:49   ` Gary Yang
2026-12-03 11:04   ` sashiko-bot [this message]
2026-12-03 11:04     ` sashiko-bot
2026-12-03 16:21   ` Rob Herring
2026-12-03 16:21     ` Rob Herring
2026-12-04  3:01     ` Gary Yang
2026-12-04  3:01       ` Gary Yang
2026-12-03 10:49 ` [PATCH v8 2/2] phy: cix: add Sky1 USB/DP combo PHY driver Gary Yang
2026-12-03 10:49   ` Gary Yang
2026-12-03 11:12   ` sashiko-bot
2026-12-03 11:12     ` 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-247641@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gary.yang@cixtech.com \
    --cc=linux-phy@lists.infradead.org \
    --cc=neil.armstrong@linaro.org \
    --cc=olteanv@gmail.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /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.