From: Jakub Kicinski <kuba@kernel.org>
To: inochiama@gmail.com
Cc: Jakub Kicinski <kuba@kernel.org>,
boon.khai.ng@altera.com, rmk+kernel@armlinux.org.uk,
linux-arm-kernel@lists.infradead.org, davem@davemloft.net,
andrew+netdev@lunn.ch, joabreu@synopsys.com,
linux-stm32@st-md-mailman.stormreply.com, looong.bin@gmail.com,
maxime.chevallier@bootlin.com, siyanteng@cqsoftware.com.cn,
conor+dt@kernel.org, wens@kernel.org, krzk+dt@kernel.org,
mcoquelin.stm32@gmail.com, pjw@kernel.org, edumazet@google.com,
palmer@dabbelt.com, alex@ghiti.fr, spacemit@lists.linux.dev,
prabhakar.mahadev-lad.rj@bp.renesas.com,
devicetree@vger.kernel.org, robh@kernel.org,
aou@eecs.berkeley.edu, vladimir.oltean@nxp.com, dlan@kernel.org,
me@ziyao.cc, peppe.cavallaro@st.com,
alexandre.torgue@foss.st.com, pabeni@redhat.com,
weishangjuan@eswincomputing.com, netdev@vger.kernel.org,
linux-riscv@lists.infradead.org, dlan@gentoo.org,
quentin.schulz@cherry.de, richardcochran@gmail.com,
linux-kernel@vger.kernel.org
Subject: Re: [net-next,v9,1/4] dt-bindings: net: Add support for Spacemit K3 dwmac
Date: Thu, 12 Mar 2026 19:34:17 -0700 [thread overview]
Message-ID: <20260313023417.1577310-1-kuba@kernel.org> (raw)
In-Reply-To: <20260312012232.373713-2-inochiama@gmail.com>
This is an AI-generated review of your patch. The human sending this
email has considered the AI review valid, or at least plausible.
For local reproduction steps see https://netdev-ai.bots.linux.dev/ai-local.html
---
dt-bindings: net: Add support for Spacemit K3 dwmac
The GMAC IP on Spacemit K3 is almost a standard Synopsys DesignWare MAC
(version 5.40a) with some extra clock. This patch adds the necessary
compatible string for this device, along with a new binding document
defining the required properties.
> diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
> index 38bc34dc4f09..98ebb6276bc6 100644
> --- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
> +++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
> @@ -109,6 +109,7 @@ properties:
> - snps,dwmac-5.10a
> - snps,dwmac-5.20
> - snps,dwmac-5.30a
> + - snps,dwmac-5.40a
> - snps,dwxgmac
> - snps,dwxgmac-2.10
> - sophgo,sg2042-dwmac
[ ... ]
> @@ -656,6 +657,7 @@ allOf:
> - snps,dwmac-5.10a
> - snps,dwmac-5.20
> - snps,dwmac-5.30a
> + - snps,dwmac-5.40a
> - snps,dwxgmac
> - snps,dwxgmac-2.10
> - st,spear600-gmac
Is snps,dwmac-5.40a missing from the select block? The binding document has
a comment at lines 14-17 stating:
# Select every compatible, including the deprecated ones. This way, we
# will be able to report a warning when we have that compatible, since
# we will validate the node thanks to the select.
Every other snps,dwmac-* version from 3.40a through 5.30a appears in all three
locations: the select block (lines 19-43), the properties.compatible enum
(lines 95-118), and the allOf conditional block (lines 643-673). However,
snps,dwmac-5.40a only appears in the properties.compatible enum and the allOf
block.
Without the entry in the select block, a device tree node using
'snps,dwmac-5.40a' as a standalone compatible (without a vendor-specific first
entry like 'spacemit,k3-dwmac') would not be selected by this schema for
validation.
[ ... ]
next prev parent reply other threads:[~2026-03-13 2:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-12 1:22 [PATCH net-next v9 0/4] riscv: spacemit: Add ethernet support for K3 Inochi Amaoto
2026-03-12 1:22 ` [PATCH net-next v9 1/4] dt-bindings: net: Add support for Spacemit K3 dwmac Inochi Amaoto
2026-03-13 2:34 ` Jakub Kicinski [this message]
2026-03-12 1:22 ` [PATCH net-next v9 2/4] net: stmmac: platform: Add snps,dwmac-5.40a IP compatible string Inochi Amaoto
2026-03-12 1:22 ` [PATCH net-next v9 3/4] net: stmmac: Add glue layer for Spacemit K3 SoC Inochi Amaoto
2026-03-13 2:38 ` Jakub Kicinski
2026-03-13 2:43 ` Inochi Amaoto
2026-03-12 1:22 ` [PATCH net-next v9 4/4] MAINTAINERS: add entry for SpacemiT DWMAC glue layer Inochi Amaoto
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=20260313023417.1577310-1-kuba@kernel.org \
--to=kuba@kernel.org \
--cc=alex@ghiti.fr \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=aou@eecs.berkeley.edu \
--cc=boon.khai.ng@altera.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=dlan@kernel.org \
--cc=edumazet@google.com \
--cc=inochiama@gmail.com \
--cc=joabreu@synopsys.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=looong.bin@gmail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=me@ziyao.cc \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=palmer@dabbelt.com \
--cc=peppe.cavallaro@st.com \
--cc=pjw@kernel.org \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=quentin.schulz@cherry.de \
--cc=richardcochran@gmail.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=robh@kernel.org \
--cc=siyanteng@cqsoftware.com.cn \
--cc=spacemit@lists.linux.dev \
--cc=vladimir.oltean@nxp.com \
--cc=weishangjuan@eswincomputing.com \
--cc=wens@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox