From: sashiko-bot@kernel.org
To: "Jacky Chou" <jacky_chou@aspeedtech.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH net-next v6 2/7] dt-bindings: net: ftgmac100: Add AST2700 compatible
Date: Fri, 13 Nov 2026 08:39:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-212429@kernel.org> (raw)
In-Reply-To: <20261112-support_ast2700-v6-2-238020bf46cf@aspeedtech.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] dt-bindings: net: ftgmac100: requiring phy-mode on AST2700
breaks use-ncsi
- [Low] dt-bindings: net: ftgmac100: split schema instead of adding more
if-thens
--
commit d4c79ebecc8b3f53e3b3064e58bdd5d5f51b3ece
Author: Jacky Chou <jacky_chou@aspeedtech.com>
dt-bindings: net: ftgmac100: Add AST2700 compatible
This commit adds the standalone aspeed,ast2700-mac compatible to the
Faraday FTGMAC100 Device Tree binding schema along with its clock, reset,
and phy-mode rules.
> diff --git a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> index 9d352e3686aaf..613d4f1caa4fa 100644
> --- a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
> +++ b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
[ ... ]
> @@ -79,12 +80,21 @@ allOf:
> contains:
> enum:
> - aspeed,ast2600-mac
> + - aspeed,ast2700-mac
> then:
> properties:
> resets: true
> else:
> properties:
> resets: false
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: aspeed,ast2700-mac
> + then:
> + required:
> + - phy-mode
[Severity: Medium]
Does unconditionally requiring phy-mode on aspeed,ast2700-mac break
dtbs_check validation for nodes configured with use-ncsi?
The binding allows use-ncsi without an MDIO PHY or phy-mode (as shown in
the schema's first example), and ftgmac100_probe_dt() handles use-ncsi
via ftgmac100_probe_ncsi() with PHY_INTERFACE_MODE_RMII directly without
reading phy-mode.
Also, the commit message explains this rule as matching the driver's
probe-time requirement, whereas bindings should describe hardware
constraints, and the check added in commit "net: ftgmac100: Require
phy-mode for AST2700" is in ftgmac100_mii_probe(), which is only reached
for legacy MDIO bus scanning on AST2400/AST2500/Faraday.
> - if:
> properties:
> compatible:
> @@ -105,6 +115,7 @@ allOf:
> enum:
> - aspeed,ast2500-mac
> - aspeed,ast2600-mac
> + - aspeed,ast2700-mac
> then:
> properties:
> clocks:
> @@ -124,6 +135,7 @@ allOf:
> - aspeed,ast2400-mac
> - aspeed,ast2500-mac
> - aspeed,ast2600-mac
> + - aspeed,ast2700-mac
> then:
> properties:
> clocks: false
[Severity: Low]
Now that commit "dt-bindings: net: ftgmac100: Make Aspeed compatibles
standalone" decoupled the Aspeed variants from faraday,ftgmac100, allOf
uses five per-compatible if-then blocks to partition resets, phy-mode,
clocks, and clock-names across the variants. Should the Aspeed bindings
be split into a separate schema document instead of adding more
per-compatible conditionals here?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261112-support_ast2700-v6-0-238020bf46cf@aspeedtech.com?part=2
next prev parent reply other threads:[~2026-11-13 8:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 8:39 [PATCH net-next v6 0/7] net: ftgmac100: Add AST2700 support Jacky Chou
2026-11-12 8:39 ` [PATCH net-next v6 1/7] dt-bindings: net: ftgmac100: Make Aspeed compatibles standalone Jacky Chou
2026-11-12 18:43 ` Conor Dooley
2026-11-13 8:39 ` sashiko-bot
2026-11-12 8:39 ` [PATCH net-next v6 2/7] dt-bindings: net: ftgmac100: Add AST2700 compatible Jacky Chou
2026-11-12 18:44 ` Conor Dooley
2026-11-13 8:39 ` sashiko-bot [this message]
2026-11-12 8:39 ` [PATCH net-next v6 3/7] net: ftgmac100: Add AST2700 compatible support Jacky Chou
2026-11-13 8:39 ` sashiko-bot
2026-11-12 8:39 ` [PATCH net-next v6 4/7] net: ftgmac100: Enable AST2700 RMII support Jacky Chou
2026-11-12 8:39 ` [PATCH net-next v6 5/7] net: ftgmac100: Require phy-mode for AST2700 Jacky Chou
2026-11-13 8:39 ` sashiko-bot
2026-11-12 8:39 ` [PATCH net-next v6 6/7] net: ftgmac100: Add AST2700 upper DMA address support Jacky Chou
2026-11-12 8:39 ` [PATCH net-next v6 7/7] net: ftgmac100: Allow building on ARM64 Jacky Chou
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-212429@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jacky_chou@aspeedtech.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.