Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: joseph@telaak.dev
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org,
	richardcochran@gmail.com, alexandre.torgue@foss.st.com,
	joabreu@synopsys.com, maxime.chevallier@bootlin.com,
	mcoquelin.stm32@gmail.com, gch981213@gmail.com,
	linux@armlinux.org.uk, linux-mips@vger.kernel.org,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH net-next v2 2/3] dt-bindings: net: Add Siflower SF19A2890 GMAC
Date: Thu, 03 Dec 2026 22:01:15 +0000	[thread overview]
Message-ID: <179633527571.3146.14559066829679788140@kernel.org> (raw)
In-Reply-To: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev>

Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The rgmii-delay calibration cell can only be given if a mac-
  address nvmem cell comes first.
- [Low] The reason given for banning rx-internal-delay-ps covers only the
  TX line.
- [Low] The concern says no SF19A2890 glue driver exists, so nodes would
  bind to dwmac-generic through the "snps,dwmac" fallback, and that…

--

dt-bindings: net: Add Siflower SF19A2890 GMAC

This adds a binding for the DesignWare GMAC 3.73a in the Siflower
SF19A2890. The binding has a second reg region for the interface
configuration block, a fourth clock (byp_ref), and an rgmii-delay nvmem
cell that holds the factory delay calibration. It rejects
rx-internal-delay-ps and tx-internal-delay-ps, and it also adds the
compatible to snps,dwmac.yaml and adds a MAINTAINERS entry.

> diff --git a/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml b/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml
> new file mode 100644
> index 0000000000000..f42276c25d2c2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/siflower,sf19a2890-gmac.yaml
> @@ -0,0 +1,119 @@

[ ... ]

> +properties:
> +  compatible:
> +    items:
> +      - const: siflower,sf19a2890-gmac
> +      - const: snps,dwmac

[Severity: Low]
With only this patch applied, nothing in the tree matches
siflower,sf19a2890-gmac. A node would bind to dwmac-generic through the
snps,dwmac fallback, so nothing would use the second reg region, byp_ref
or the rgmii-delay cell. The new MAINTAINERS entry also lists only the
binding file.

The next patch in the series, "net: stmmac: Add Siflower SF19A2890 glue",
seems to cover both points. It adds dwmac-sf19a2890.c, which maps reg[1],
enables byp_ref, reads rgmii-delay and programs PHY_INTF_SEL. It also adds
the driver file to the MAINTAINERS entry.

The snps,dwmac fallback needs to stay. devm_stmmac_probe_config_dt() only
sets the GMAC core type and pmt when the node matches snps,dwmac or one of
the versioned 3.x compatibles:

drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:devm_stmmac_probe_config_dt() {
    ...
	if (of_device_is_compatible(np, "st,spear600-gmac") ||
		of_device_is_compatible(np, "snps,dwmac-3.50a") ||
		of_device_is_compatible(np, "snps,dwmac-3.70a") ||
		of_device_is_compatible(np, "snps,dwmac-3.72a") ||
		of_device_is_compatible(np, "snps,dwmac")) {
    ...
		plat->core_type = DWMAC_CORE_GMAC;
		plat->pmt = true;
	}
    ...
}

Two smaller points are left. The fallback does not record the 3.73a IP
version.

Also, if the glue is built as a module and dwmac-generic is built in,
could dwmac-generic bind to this node first? Other glue bindings with a
fallback that dwmac-generic matches behave the same way.

[ ... ]

> +  nvmem-cells:
> +    minItems: 1
> +    maxItems: 2
> +
> +  nvmem-cell-names:
> +    minItems: 1
> +    items:
> +      - const: mac-address
> +      - const: rgmii-delay

[Severity: Low]
Because the order is fixed, can rgmii-delay ever be given without a
mac-address cell in front of it? A node with only this would fail
validation:

    nvmem-cell-names = "rgmii-delay";

The companion change "dt-bindings: net: ethernet-controller: Allow a
device-specific nvmem cell" also fixes item 0 to mac-address:

Documentation/devicetree/bindings/net/ethernet-controller.yaml:
  nvmem-cell-names:
    minItems: 1
    items:
      - const: mac-address
      - description: Named by the device's own binding

A board might get its MAC address another way, such as a mac-address or
local-mac-address property set by the bootloader, or a random MAC. That
board would have no way to describe its factory delay calibration. Per
this binding, the MAC then adds no delays, and in the glue driver it keeps
whatever the bootloader programmed.

The driver looks the cell up by name with
devm_nvmem_cell_get(dev, "rgmii-delay"), so the order only matters to the
schema. Could the schema allow rgmii-delay on its own?

> +    description:
> +      rgmii-delay is the factory calibration of the RGMII clock delay
> +      lines, four ASCII hexadecimal digits giving the TX setting and then
> +      the RX setting, in the lines' own steps.
> +
> +  # The delay of the TX delay line at its lowest setting is not known, so
> +  # the delays cannot be given in picoseconds.
> +  rx-internal-delay-ps: false
> +  tx-internal-delay-ps: false

[Severity: Low]
The comment here and the commit message both give a reason that applies
only to the TX line:

  The delay of the TX line at its lowest setting is not known, so
  rx-internal-delay-ps and tx-internal-delay-ps are not accepted: a value
  in picoseconds could not be honored.

Why is rx-internal-delay-ps rejected as well? If the RX line's offset or
step size is also unknown, could the comment and the commit message say
so?

ethernet-controller.yaml describes these properties as the standard way
to fine-tune MAC delays. Reviewers will probably ask why they can't be
used here instead of a vendor ASCII-hex nvmem format, so the reason for
RX matters too.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261201-sf19a2890-gmac-v2-0-8d2c513db496%40telaak.dev

  reply	other threads:[~2026-12-03 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  7:00 [PATCH net-next v2 0/3] net: stmmac: Add the Siflower SF19A2890 glue Joseph Telaak via B4 Relay
2026-12-01  7:00 ` [PATCH net-next v2 1/3] dt-bindings: net: ethernet-controller: Allow a device-specific nvmem cell Joseph Telaak via B4 Relay
2026-12-03 22:01   ` netdev-bot+sashiko
2026-12-01  7:00 ` [PATCH net-next v2 2/3] dt-bindings: net: Add Siflower SF19A2890 GMAC Joseph Telaak via B4 Relay
2026-12-03 22:01   ` netdev-bot+sashiko [this message]
2026-12-01  7:00 ` [PATCH net-next v2 3/3] net: stmmac: Add Siflower SF19A2890 glue Joseph Telaak via B4 Relay
2026-12-03 22:01   ` netdev-bot+sashiko

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=179633527571.3146.14559066829679788140@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=gch981213@gmail.com \
    --cc=joabreu@synopsys.com \
    --cc=joseph@telaak.dev \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maxime.chevallier@bootlin.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=richardcochran@gmail.com \
    --cc=robh@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