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 v9 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY
Date: Fri, 04 Dec 2026 11:54:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-249737@kernel.org> (raw)
In-Reply-To: <20261204113906.563606-2-gary.yang@cixtech.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: phy: cix,sky1-usbdp-phy omits x4 PHY reference
  clock
- [Low] dt-bindings: phy: cix,sky1-usbdp-phy: unconstrained
  cix,s5-syscon PHY index
--

commit 8df421299a83951ea515bb67e5f13ae3de756438
Author: Gary Yang <gary.yang@cixtech.com>

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

This commit adds the Device Tree binding schema for the CIX Sky1 USB/DP
combo PHY, covering its registers, clock, resets, S5 system controller
reference, and Type-C switch 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..20027e923b4e1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml
> @@ -0,0 +1,150 @@

[ ... ]

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

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

include/dt-bindings/clock/cix,sky1.h defines four x4 PHY reference clocks
(CLK_TREE_USB3C_{DRD,H0,H1,H2}_PHY_x4_REF) for the four combo PHYs.
Capping clocks at maxItems: 1 with additionalProperties: false prevents
DTS nodes from describing that hardware input and locks in the ABI.

Also, scmi_clk_ops_init() registers SCMI clocks without CLK_IGNORE_UNUSED.
Unless firmware explicitly forbids state control on those IDs, leaving a
default-enabled reference clock unreferenced risks clk_disable_unused()
gating it off at boot.

Either add the x4 reference clock and clock-names to the schema and
example, or document the firmware-controlled contract in the binding.

[ ... ]

> +  cix,s5-syscon:
> +    $ref: /schemas/types.yaml#/definitions/phandle-array
> +    items:
> +      - items:
> +          - description: phandle to the S5 system controller
> +          - description: PHY instance index within the system controller

[Severity: Low]
Should the PHY instance index cell in cix,s5-syscon be constrained to
0..3 (for example with minimum: 0 and maximum: 3)?

Sky1 has four USB/DP combo PHY instances (SKY1_USB_DP_PHY0..3_RST_N in
include/dt-bindings/reset/cix,sky1-s5-system-control.h), and commit
"phy: cix: add Sky1 USB/DP combo PHY driver" rejects indices >= 4 with
-EINVAL at probe time.

Without a schema constraint, dtbs_check accepts out-of-range values or
register offsets, and the binding does not document the valid range.

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

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

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 v9 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY
Date: Fri, 04 Dec 2026 11:54:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-249737@kernel.org> (raw)
In-Reply-To: <20261204113906.563606-2-gary.yang@cixtech.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: phy: cix,sky1-usbdp-phy omits x4 PHY reference
  clock
- [Low] dt-bindings: phy: cix,sky1-usbdp-phy: unconstrained
  cix,s5-syscon PHY index
--

commit 8df421299a83951ea515bb67e5f13ae3de756438
Author: Gary Yang <gary.yang@cixtech.com>

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

This commit adds the Device Tree binding schema for the CIX Sky1 USB/DP
combo PHY, covering its registers, clock, resets, S5 system controller
reference, and Type-C switch 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..20027e923b4e1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/cix,sky1-usbdp-phy.yaml
> @@ -0,0 +1,150 @@

[ ... ]

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

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

include/dt-bindings/clock/cix,sky1.h defines four x4 PHY reference clocks
(CLK_TREE_USB3C_{DRD,H0,H1,H2}_PHY_x4_REF) for the four combo PHYs.
Capping clocks at maxItems: 1 with additionalProperties: false prevents
DTS nodes from describing that hardware input and locks in the ABI.

Also, scmi_clk_ops_init() registers SCMI clocks without CLK_IGNORE_UNUSED.
Unless firmware explicitly forbids state control on those IDs, leaving a
default-enabled reference clock unreferenced risks clk_disable_unused()
gating it off at boot.

Either add the x4 reference clock and clock-names to the schema and
example, or document the firmware-controlled contract in the binding.

[ ... ]

> +  cix,s5-syscon:
> +    $ref: /schemas/types.yaml#/definitions/phandle-array
> +    items:
> +      - items:
> +          - description: phandle to the S5 system controller
> +          - description: PHY instance index within the system controller

[Severity: Low]
Should the PHY instance index cell in cix,s5-syscon be constrained to
0..3 (for example with minimum: 0 and maximum: 3)?

Sky1 has four USB/DP combo PHY instances (SKY1_USB_DP_PHY0..3_RST_N in
include/dt-bindings/reset/cix,sky1-s5-system-control.h), and commit
"phy: cix: add Sky1 USB/DP combo PHY driver" rejects indices >= 4 with
-EINVAL at probe time.

Without a schema constraint, dtbs_check accepts out-of-range values or
register offsets, and the binding does not document the valid range.

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

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

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 11:39 [PATCH v9 0/2] phy: cix: add Sky1 USB/DP combo PHY support Gary Yang
2026-12-04 11:39 ` Gary Yang
2026-12-04 11:39 ` [PATCH v9 1/2] dt-bindings: phy: add CIX Sky1 USB/DP combo PHY Gary Yang
2026-12-04 11:39   ` Gary Yang
2026-12-04 11:54   ` sashiko-bot [this message]
2026-12-04 11:54     ` sashiko-bot
2026-12-04 15:14   ` Rob Herring (Arm)
2026-12-04 15:14     ` Rob Herring (Arm)
2026-12-04 11:39 ` [PATCH v9 2/2] phy: cix: add Sky1 USB/DP combo PHY driver Gary Yang
2026-12-04 11:39   ` Gary Yang
2026-12-04 12:17   ` sashiko-bot
2026-12-04 12:17     ` 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-249737@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.