Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Minda Chen" <minda.chen@starfivetech.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [net-next v4 3/5] dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 sgmii rx clk
Date: Sat, 30 May 2026 00:43:44 +0000	[thread overview]
Message-ID: <20260530004345.1F69F1F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260519101436.111476-4-minda.chen@starfivetech.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Relaxed dt-binding schema for older generations allows invalid configurations to pass validation.
--

commit f6b7d4c26e8b69a59239f5f0ceb9244961ac4979
Author: Minda Chen <minda.chen@starfivetech.com>

dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 sgmii rx clk

This commit adds a 6th clock, the SGMII RX clock, to the starfive,jh7110-dwmac
binding for the jhb100 SGMII interface. It updates the global clocks and
clock-names properties to allow up to 6 items.

> diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
> index 06aeaa0f6f009..fdcc61c65f87d 100644
> --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
[ ... ]
> @@ -39,20 +39,24 @@ properties:
>      maxItems: 1
>  
>    clocks:
> +    minItems: 5
>      items:
>        - description: GMAC main clock
>        - description: GMAC AHB clock
>        - description: PTP clock
>        - description: TX clock
>        - description: GTX clock
> +      - description: SGMII RX clock
>  
>    clock-names:
> +    minItems: 5
>      items:
>        - const: stmmaceth
>        - const: pclk
>        - const: ptp_ref
>        - const: tx
>        - const: gtx
> +      - const: sgmii_rx

Should the schema restrict older generations to a maximum of 5 clocks using
an allOf block?

Since the global list now contains 6 items, the schema implicitly allows up to
6 clocks for all compatible strings. If prior hardware generations or standard
RMII/RGMII variants only support 5 clocks, they could silently pass validation
even if an invalid 6th clock is mistakenly specified in their device tree node.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260519101436.111476-1-minda.chen@starfivetech.com?part=3

  parent reply	other threads:[~2026-05-30  0:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19 10:14 [net-next v4 0/5] Add StarFive jhb100 soc SGMII GMAC support Minda Chen
2026-05-19 10:14 ` [net-next v4 1/5] dt-bindings: net: starfive,jh7110-dwmac: Remove jh8100 Minda Chen
2026-05-19 10:14 ` [net-next v4 2/5] dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 support Minda Chen
2026-05-19 16:26   ` Conor Dooley
2026-05-30  0:43   ` sashiko-bot
2026-05-19 10:14 ` [net-next v4 3/5] dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 sgmii rx clk Minda Chen
2026-05-20  7:01   ` Krzysztof Kozlowski
2026-05-20  7:18     ` Minda Chen
2026-05-30  0:43   ` sashiko-bot [this message]
2026-05-19 10:14 ` [net-next v4 4/5] net: stmmac: starfive: Add jhb100 SGMII interface Minda Chen
2026-05-19 14:17   ` Andrew Lunn
2026-05-20  7:16     ` Minda Chen
2026-05-19 10:14 ` [net-next v4 5/5] net: stmmac: starfive: Add STMMAC_FLAG_SPH_DISABLE flag Minda Chen

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=20260530004345.1F69F1F00898@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=minda.chen@starfivetech.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