All of lore.kernel.org
 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 v5 2/4] dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 support
Date: Sat, 30 May 2026 00:49:48 +0000	[thread overview]
Message-ID: <20260530004948.E8E531F00898@smtp.kernel.org> (raw)
In-Reply-To: <20260527084108.121416-3-minda.chen@starfivetech.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Missing conditional constraints for `clocks` and `clock-names` allows invalid clock configurations to silently pass schema validation.
--

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

dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 support

This commit adds support for the jhb100 GMAC, introducing a new compatible
string and corresponding single reset and interrupt properties. It also adds a
new SGMII RX clock to the global clocks list to support the jhb100 hardware.

> diff --git a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
> index 0d1962980f57f..fdcc61c65f87d 100644
> --- a/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/starfive,jh7110-dwmac.yaml
[ ... ]
>    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

[Severity: Medium]
Since the global definition of clocks and clock-names now implicitly allows
6 items for the new sgmii_rx clock, do the conditionals for older generations
need updates?

Without explicitly adding maxItems: 5 to the existing if-then blocks for
starfive,jh7110-dwmac and starfive,jh7100-dwmac, it appears device trees
for older hardware can now specify 6 clocks and silently pass validation.

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

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-27  8:41 [net-next v5 0/4] Add StarFive jhb100 soc SGMII GMAC support Minda Chen
2026-05-27  8:41 ` [net-next v5 1/4] dt-bindings: net: starfive,jh7110-dwmac: Remove jh8100 Minda Chen
2026-05-27  8:41 ` [net-next v5 2/4] dt-bindings: net: starfive,jh7110-dwmac: Add jhb100 support Minda Chen
2026-05-30  0:49   ` sashiko-bot [this message]
2026-05-27  8:41 ` [net-next v5 3/4] net: stmmac: starfive: Add jhb100 SGMII interface Minda Chen
2026-05-27  8:41 ` [net-next v5 4/4] net: stmmac: starfive: Add STMMAC_FLAG_SPH_DISABLE flag Minda Chen
2026-06-02  3:10 ` [net-next v5 0/4] Add StarFive jhb100 soc SGMII GMAC support patchwork-bot+netdevbpf

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=20260530004948.E8E531F00898@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 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.