Article View: linux.kernel.netdev
Article #10835[PATCH net-next 0/2] net: stmmac: Add the Siflower SF19A2890 glue
From: Joseph Telaak via B4 Relay
Date: Wed, 04 Nov 2026 07:22
Date: Wed, 04 Nov 2026 07:22
55 lines
13250 bytes
13250 bytes
The Siflower SF19A2890, a MIPS SoC for home routers, has a DesignWare
GMAC 3.73a. Its interface type and RGMII clock delays are set in a
small configuration block next to its clock and reset manager. This
series adds a binding and the glue.
The glue is based on Chuanhong Guo's driver, which read the RGMII delays
from a factory flash cell in the delay line's own units and always
applied them. Here the delays come from rx-internal-delay-ps and
tx-internal-delay-ps and are applied only when those are present. The
interface type is set through set_phy_intf_sel.
The delay line's step is not documented, so I measured it: sweeping
each delay register over 0-255 with the link at 1000 Mb/s, the working
windows repeat every 145 steps (TX) and 144.5 steps (RX), which is one
8 ns period of the 125 MHz RGMII clock. So a step is about 55 ps. The
TX eye is about 3.1 ns wide and the RX eye about 1.75 ns; the delays the
bootloader programs, 17 and 10 steps (935 and 550 ps), sit inside both.
On the GL.iNet GL-SFT1200 the GMAC is the CPU port of a MaxLinear GSW150
switch over RGMII with no delays on the board; the GMAC adds both.
The MAINTAINERS entry that covers these files comes with the MIPS series
"MIPS: Add support for the Siflower SF19A2890"; this series applies on
its own. That entry is also why checkpatch's question about updating
MAINTAINERS for the new files is left unanswered here.
Tested on a GL-SFT1200 with the GSW150 driver:
- each of WAN, LAN 1 and LAN 2 links at 1000 Mb/s full duplex and
passes iperf3 both ways (160-205 Mb/s out, 262-273 Mb/s in, well
under line rate; I have not looked into where the limit is);
- 10 GB each way through LAN 1, after which every CRC, alignment,
error, drop, overflow and underflow counter on eth0 and lan1 is 0;
- 50 link down/up cycles, after which the link and traffic recover;
- the MAC address from the factory partition, and ethtool reporting the
link with no PCS workaround.
---
Joseph Telaak (2):
dt-bindings: net: Add Siflower SF19A2890 GMAC
net: stmmac: Add Siflower SF19A2890 glue
.../bindings/net/siflower,sf19a2890-gmac.yaml | 110 ++++++++++++++
.../devicetree/bindings/net/snps,dwmac.yaml | 1 +
drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
.../net/ethernet/stmicro/stmmac/dwmac-sf19a2890.c | 158 +++++++++++++++++++++
5 files changed, 281 insertions(+)
---
base-commit: 7b6ab4dbc156e2f96419715130b3d5738a306c93
change-id: 20261102-sf19a2890-gmac-4fb4808f869c
Best regards,
--
Joseph Telaak <joseph@telaak.dev>
Technical Details
Message-ID:
<20261104-sf19a2890-gmac-v1-0-a15965a49574@telaak.dev>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356251-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356251-linux-kernel-netdev=dewy.ru From: devnull+joseph.telaak.dev@kernel.org (Joseph Telaak via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next 0/2] net: stmmac: Add the Siflower SF19A2890 glue Date: Wed, 04 Nov 2026 02:22:23 -0500 Organization: Usenet Network Message-ID: <20261104-sf19a2890-gmac-v1-0-a15965a49574@telaak.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3347164"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:h3aYPp2XBj6jbkxMDr4lnAZ/3q0= sha256:/pRD/eg94DQG2Rh2VmfwCIxTenQgRHJxMFtKn7JJ5kk= sha1:TBfg0P7cJUZTV3hpBdscc0bfygI= sha256:RwvCLa/vrCYsXLfGzVb0O0upj7akv+P5wHhjLsnA0H8= 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 A0245112B1A; Wed, 4 Nov 2026 10:30:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.301 X-Spam-Status: No, score=-2.301 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 MUGXov1LGFn3; Wed, 4 Nov 2026 10:30:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-356251-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id EF709112B13; Wed, 4 Nov 2026 10:30:26 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id EC8E632615; Wed, 4 Nov 2026 07:23:28 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793776968; b=5P7udptNVjxCffvEw8Dl/kbARx78sEZA52bUjGy5b6v4dz2YFTZiFJG24A+w/K3PYJ8H GyJ5jd21vnBfuIq1CF26esfRAA2fdmSq+UnQLr5pXTquP42GPCUx5CaBv4+SgScsrVkBU rTZj4wNSkQoSBcEtiihTRS30xkXUEiOrzbAV3TYGenoy7cjkitSC/i4yBzcLG9tGtguZq i8F4klCJ+zIDKwq/DOD1NzY+jgV2hzAHwun6L0IzrCiyD6hRyP1wfpj8tvybfuLpR2VE5 nc0Fn9SLBgBtjSogFyQbe9En/ukHsmRG2H3345o1GCQWbbUKnlYhRSTnyBBB88F4lPg== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793776968; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Subject: Date:Message-Id:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=p8ts80LviUGClPDc+CzAUBQMvTPSUXFtWsdkH5RwrIQ=; b=L2xcBpx5vq66XrozuGOJjZx8J2uOaFOyW/n7wt+5Nbc+IhjZ4/DQQ+KS9grUoqYG90Zc qCRf1NUaZh5QF1t4X3Roe0o9Z0vv41jLcfPyQctvHXRmz3LokbWbxCX7HW3ZDArIZ+tjP xNUb53FXFU/+fucoAD020U66diNmW88HDv8EcjEt1gn3mb5oNudAJnAsc0Ik6PLRAkwZj /GJi7LF8pzonCm3J9s1w6if7NWR2jGIarKJ2nfg9hRvhkRAym58FfjIaSSLhJ7AtUVUMn wPaCiw0gDMJW40SAQIJvk16KD+bHZb4mcqLew24UiFwyHEcSXoWG0/OGW/CQRxZPFUQ== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BH14mN4R; 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 C7366606D805; Wed, 4 Nov 2026 07:22:48 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=BH14mN4R X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793776957; b=geihjqE3qzpbS+lHioC62Uq6yJ48ndo/n20tMF3nJ8CMrAjFfstp+i3GyAru8KfZoh8i Uif6HvbOF2agGZWNrpzYUmqsVvz54zqFzA28gQLGH3jg9DWHN5SJLbj/ALtJSy3YAEPgq Ks4HNrAUykYfXj3cPM/GCMkai79XOV2+MSPl17dTpV846LEvVruhR0QAomJK4OKizdsy1 3nABvlmQ3mhQNKEMis7mkXlX6ztDcJ6MI+GkoaV3YAviquXEKDnQhXO+sVm/8yXrlOQti SpDqn+JK1/hp0DtzYFV7ctdHs+6MOgdKgy4mAKboKIx7dS/xYopGbhZ8oCy9Z0hFKDA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793776957; h=Received:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key: X-Endpoint-Received:X-Original-From:Reply-To; bh=p8ts80LviUGClPDc+CzAUBQMvTPSUXFtWsdkH5RwrIQ=; b=v/WK46t82OXF5WDHGUTBSh2pquLMpDKesScx+oOnK5GKlhGVdd/dGZLRBhtkjdY6dNlO oJFszX8X9q3ZpuNjNim9OtLv4g36uK4XBPSt4luT1flWyWM7cJtUarQmrOs+1scBEhbYU U2CvGTFiZbnfULuj358SnmH6/A+mU+FRYARiLqK3KI/ec4h9nIA0BF8irX5uEr5xvqmC+ O745eK9d3p1MqlCgt+CwlQRRq/dXQ0cQ7Z5pVF/5dZ7HRJmdk9Q2EaXPfMrtcLvn7hbCs C8NIyI30iSrb5dqwKqsc7WQuil8+CG1+JUuTAA8vMnvtCHlksGXIMZzSx1KzoaWqOqg== 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=BH14mN4R; arc=pass header.oldest-pass=0 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 9DB52606A32F; Wed, 4 Nov 2026 07:22:37 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1793776957; b=wvbrLnFFA0rVbNM7t+6kR98FdKmUmHratE3rCQsn/IZdza031Uba9exO1f4Llv9JFfCc J1p3kUD9GoxFrucUYNpZLqnh1zC/PRCAO7i3vKzlPkH3EyCwDFqhIiylzU8MwdsdfiUnu k6yTxgMaPuN3FoQh562GN6Gc1OMzVUWOlfAfmMATxAE8r+c53awCSxBt3A3dEsj6OEiSl yiYejSWVQGVlWYG0Pjq5MqZ41nNpXeykAO79JtjpjoKjN+KgYbEjqAlRvQPlVx5apIxh1 46UEgYCGT/JcIMGZi7m2YigzMihlslxJOoR6sdcVLarFdTvJeQdMMmbDZTOt1mxjynw== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1793776957; h=DKIM-Signature:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To; bh=p8ts80LviUGClPDc+CzAUBQMvTPSUXFtWsdkH5RwrIQ=; b=gBugSeqlzO/ntwxlLkwNHD+QhPclr/sI5mm/oFk5XzsZEhU+er1B3DRYYA+AXAfnAd/w LqvUuEv9ra8OG3dStocmF72qMVuMO1DBhoR8c8t0Ekkj4lT1Ys9anDBod2dgMLAlc56G7 LRjqSygf0cNFm+ZO0EIq0CgtJU+tgvle0WOYx9D6IpP/zH3NM6jtgfgtym48SZEgEPy4r uSdLkoIbKSyqaGQRGRisDZ6QblboY/Tw7xv0tiEd1ZU/4+SVbdy6M3bBb/yYDHeBEyaeM WZZKHReUQO7KLmu+8JGf5rLvR7QDUJDVWqmfRpGtqt32cT8BCl1CPz7d6ET3tbdAzGw== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 8CF8D1F000C1; Wed, 4 Nov 2026 07:22:36 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793776957; bh=p8ts80LviUGClPDc+CzAUBQMvTPSUXFtWsdkH5RwrIQ=; h=From:Subject:Date:To:Cc:Reply-To; b=BH14mN4Rc/V+Rjt2J2qqDRJ7v6esZjCOYZVOEJPS0dkI+ooPIz2BTmsR0zMSGCBA5 7z+DcccTdfHB8thy714aPE+mjiv2hvJo9nsgXCaEVQswbzKo3mxQ81khJsPuNCZ0Xt 3hFmwhi3AhdsUCwqohB0S85cEK/BezgCZ6g27rdBG/lVQoNUK4Fq4mgCLFarQLFSEU wdm4SX8xtURrcWUUjyY7MrLc14+t/LcBxarBev6ScedvR1vtldbjW1OUbSLTff+Up0 +P5mz7vBBJFhqAvIK7gcYPXJaDqhOcNw2egJuCEVWClCPmOux88NU1ADoznt+1YCx3 /74BDjfcTw1Rw== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 2071146CED; Wed, 4 Nov 2026 07:22:36 +0000 (UTC) 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 X-B4-Tracking: v=1; b=H4sIAC/d6moC/y2NwQqDMBBEf0X23IUkiCT9leIhphu7gmmbjSKI/ 9609jjMvDc7CGUmgWuzQ6aVhZ+pBn1pIDx8Ggn5XjMYZTqtlUGJ2nljncJx9gHbOLRW2Wg7F6B Cr0yRt5/wBokKJtoK9GcjyzBRKF/ff5vpvdTPcgL9cXwAoL3q7ZEAAAA= X-Change-ID: 20261102-sf19a2890-gmac-4fb4808f869c X-Cc: Chuanhong Guo <gch981213@gmail.com>, Russell King <linux@armlinux.org.uk>, linux-mips@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Joseph Telaak <joseph@telaak.dev> X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1793776955; l=2659; i=joseph@telaak.dev; s=20261104; h=from:subject:message-id; bh=4aX1WuQkiEXgDzkE3OQjN92P69c1uJb0rksZC2QCI/c=; b=5W2C6p3JKlr/OYkYYzwVZ7Y5b/m53N4KDQeoxViOd9QSaRTx62D8T06k382412ER3M30amjJg EQ22G8hgj8LDsd9xPfExPXtkSI+BUGn7ruvO4K5Ikn+zcvgJNRsHte8 X-Developer-Key: i=joseph@telaak.dev; a=ed25519; pk=oQI+UfddlZ0wK2ac4WKOGNjUl1ZEN8j9ZVFSqEDoNP0= X-Endpoint-Received: by B4 Relay for joseph@telaak.dev/20261104 with auth_id=1404 X-Original-From: Joseph Telaak <joseph@telaak.dev> X-Reply-To: joseph@telaak.dev