πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26593

Re: [PATCH net-next v2 2/3] dt-bindings: net: Add Siflower SF19A2890 GMAC

#26593
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 22:01
145 lines
13586 bytes
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
Technical Details
Message-ID: <179633527571.3146.14559066829679788140@kernel.org>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376891-linux-kernel-netdev=dewy.ru
References: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376891-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v2 2/3] dt-bindings: net: Add Siflower SF19A2890 GMAC
Date: Thu, 03 Dec 2026 22:01:15 +0000
Organization: Usenet Network
Message-ID: <179633527571.3146.14559066829679788140@kernel.org>
References: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2608401"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iH8yVm4UH+Vgen92Xg7xhnGnNOg= sha256:PE4aP6jLNmx5TMUHpSA9VB0EUoEabkANu2j27iQf16Q=
	sha1:lhk/+tXbCPdJX67giW7toDcp8Ok= sha256:Xj6KL4viEmlzkKPUgG1Yk3VOz4JLTeSxXfD51/kfFfI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 46918117A48; Fri,  4 Dec 2026 01:01:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id USCGxhpVGlLG;
	Fri,  4 Dec 2026 01:01:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-376891-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id A3019117A08; Fri,  4 Dec 2026 01:01:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 45C202494B; Thu,  3 Dec 2026 22:01:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796335278;
	b=L1oamIwe48quv8gYsGdpA4vdmpr1NC88eUBgBB3kz6Va59HtFXBEaVmqI/tBvYA8S/C0
	 sOPFBpqwNcbeFRP3zpnfwqg/b0Rj3n6pKU2W+Drv+7bG1+72kQjj9UQTevsG3SzRwa7EO
	 LC9JIYBc/0jKE5wfgD0tmyN778uMPILKdM89MxrfH3toErPnAu6DyBgEw9fE9Tl1RGeGv
	 VxPO3IDHos19/qmwoBb7KSMtTl3Vn/wszeN0Etpoxo1CskrEjHC7onnxIWT7MrW2Ouddi
	 52OIYamou0+ktDzucAKr6k3zNARl/igp6X9Pcbr+er9KGc3lRCa4nJF+1vn40Q+4OPg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796335278;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=B7n5NYWmeOB44NpiROO0YT6LubEvB22ES4mFcT8PQos=;
	b=ddfHJGG2m/TgVJjSje6q3kAKNpDvlvYFwp6YvuT/+PvZSKCiBPfsUqjgmLvz3YCNPM95
	 07iV229XlOYyj7V8mO8uOPHY2RgHKxgHwJsII5JCd7+RNSjG1U54JReyuvR7fCquw1fa0
	 wSE1kRTMm6Q42V21pg6Xp3+Hp3+DW5DC+s+jXD5SakRk+Z2mdPH6qH5eshMBFZNerOemZ
	 JxFpG5LarrRZW3PeSq84U/CMtvkUlT1fn6JrK4LP1qrTB+yQQlQ7TdCFVmKckrpBT9YK0
	 V2TgcdXTtN2KU8VLbhdV54U52CcEGrcPIE7vk3tktLf0tz6TD7HKtFu+gbcw8CshQhg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ia1sdzVH;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 78DE0606A691;
	Thu,  3 Dec 2026 22:01:18 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ia1sdzVH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796335277;
	b=XRZhlnqpyYu7TM7j7Zo+G2kKzktAn/Sp3iRnsLMCOSYd36W1RKOKw6Hh+eE8gIVuOUWN
	 R9lXm83VK8AAM95kw3iw8mvsrVhGkLBmtHwdy35HJMzMo6VRBcxKVyJw+KTK3uRXZkW8j
	 hYBWtn1CjqHFwFzlHOFWBad4JE9Gtkloz0UintgNXiXeqhbqbBcHIykC4uHdIvXsqO9cP
	 L5Xs4rzpvR/dhlL1vr8tuPvHVwlw1mc+RSNv5V0+BlxHi2W0b7uefa5Q4UNi7BT+KKHYW
	 rdYZhYAjp+Yq0ozYK12e1t2CMYxVK8t/hkYyWPN+yrBaL6UDcX4eycWzaFgqtrnW/VA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796335277;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=B7n5NYWmeOB44NpiROO0YT6LubEvB22ES4mFcT8PQos=;
	b=AmCkjllGVF8wWrEYz6IGL2mwX+PolLGcsNgLb4+2AACCF9ZJx1SMF8y1mFnQnWUjN9ZK
	 OiwE6vem8Gd4QWrRWbArrH62Nn/jwqk2Oz99xoxd81BO6Dng9uIHxEZQddPjxred892ue
	 zHtZZqL3he2UmCQ4aQXDY/wXFzfcf5ENeDeNZK2Qm64un4koT3PFRVyuuye1PQYjB15cw
	 1obrkweKq8YtX4XD5yh9AF3uIFv4YLADPXDo3/NgouFkdmbT3Dp+VQN4SDsSI+keJYT03
	 XafclrEkvhQMpgwMKQ6KRyv3ah23/kKHZO7ZyGAqpVszHDOQ9aDMrPdaqsa00o/b3IA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ia1sdzVH;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99FD4606A681;
	Thu,  3 Dec 2026 22:01:17 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B3131F00931;
	Thu,  3 Dec 2026 22:01:16 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796335277;
	bh=B7n5NYWmeOB44NpiROO0YT6LubEvB22ES4mFcT8PQos=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=Ia1sdzVH6TGaHps0Ksc5g4kgHfDPMxtW6kfVKQE0XRA+H5ALHi4yVZ0sIKyruNT9X
	 JD+/PVqJVN7SRHtirW+lWRFl7UX0RVg4M2evxSigkyZpVVfMTuvuKTpYFGxXOOoMhV
	 XJekZXDioHrbyzkLa37P6HVJRySLkbQsSEm9WqN48yLKD296fz2v0cxvK04XBGU9zW
	 bMKv6PEik7rsrfdZkp5iguWZR7St+j+bVKsvL81sarweBpijc54iiAZuUFI/J6yEL+
	 1q+gQazF9tLvJaGcyDe9pSzXW/yPfmzGYJiJCd3dLxEd6vQgb3R/p5lzxyPbn2UZV1
	 0MBWUoHGL/DTw==
X-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
X-In-Reply-To: <20261201-sf19a2890-gmac-v2-2-8d2c513db496@telaak.dev>
X-sashiko-severity: Low
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list