Article View: linux.kernel.netdev
Article #1664[PATCH v3 3/8] net: stmmac: dwmac-meson8b: add support for the Amlogic T7
From: Lucas Tanure
Date: Sat, 10 Oct 2026 10:58
Date: Sat, 10 Oct 2026 10:58
81 lines
9514 bytes
9514 bytes
The glue registers on the T7 are laid out exactly as the G12A ones, RX
delay field included, so the T7 can reuse the G12A settings.
What it does not share is how the controller reaches memory. That path
runs through a pipeline stage with a gate of its own, and no other
device has any use for that gate. Nothing claims it, so it is switched
off as unused and a transfer that has started can never finish.
Without that gate the controller cannot do DMA at all, so it is
required rather than optional: a clear probe failure beats an
undiagnosable hang later.
Assisted-by: LLM
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
.../ethernet/stmicro/stmmac/dwmac-meson8b.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c
index e4d5c41294f4..450f7b4b29a6 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c
@@ -81,6 +81,7 @@ struct meson8b_dwmac;
struct meson8b_dwmac_data {
int (*set_phy_mode)(struct meson8b_dwmac *dwmac);
bool has_prg_eth1_rgmii_rx_delay;
+ bool has_pipeline_clk;
};
struct meson8b_dwmac {
@@ -384,6 +385,7 @@ static int meson8b_dwmac_probe(struct platform_device *pdev)
struct plat_stmmacenet_data *plat_dat;
struct stmmac_resources stmmac_res;
struct meson8b_dwmac *dwmac;
+ struct clk *pipeline_clk;
int ret;
ret = stmmac_get_platform_resources(pdev, &stmmac_res);
@@ -443,6 +445,13 @@ static int meson8b_dwmac_probe(struct platform_device *pdev)
if (IS_ERR(dwmac->timing_adj_clk))
return PTR_ERR(dwmac->timing_adj_clk);
+ if (dwmac->data->has_pipeline_clk) {
+ pipeline_clk = devm_clk_get_enabled(dwmac->dev, "pipeline");
+ if (IS_ERR(pipeline_clk))
+ return dev_err_probe(dwmac->dev, PTR_ERR(pipeline_clk),
+ "missing pipeline clock\n");
+ }
+
ret = meson8b_init_rgmii_delays(dwmac);
if (ret)
return ret;
@@ -479,6 +488,12 @@ static const struct meson8b_dwmac_data meson_g12a_dwmac_data = {
.has_prg_eth1_rgmii_rx_delay = true,
};
+static const struct meson8b_dwmac_data meson_t7_dwmac_data = {
+ .set_phy_mode = meson_axg_set_phy_mode,
+ .has_prg_eth1_rgmii_rx_delay = true,
+ .has_pipeline_clk = true,
+};
+
static const struct of_device_id meson8b_dwmac_match[] = {
{
.compatible = "amlogic,meson8b-dwmac",
@@ -500,6 +515,10 @@ static const struct of_device_id meson8b_dwmac_match[] = {
.compatible = "amlogic,meson-g12a-dwmac",
.data = &meson_g12a_dwmac_data,
},
+ {
+ .compatible = "amlogic,t7-dwmac",
+ .data = &meson_t7_dwmac_data,
+ },
{ }
};
MODULE_DEVICE_TABLE(of, meson8b_dwmac_match);
--
2.56.0
Technical Details
Message-ID:
<20261010105900.247342-4-tanure@linux.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344170-linux-kernel-netdev=dewy.ruReferences:
<20261010105900.247342-1-tanure@linux.com>Show 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-344170-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v3 3/8] net: stmmac: dwmac-meson8b: add support for the Amlogic T7
Date: Sat, 10 Oct 2026 11:58:55 +0100
Organization: Usenet Network
Message-ID: <20261010105900.247342-4-tanure@linux.com>
References: <20261010105900.247342-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1311478"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:btGlHct+XYJfBZLVePOyld1MhXo= sha256:5a1nh+NTfrKz9ApPbTaLzH2fLayZIFDGdHRVPtxnp3o=
sha1:kwXcZOBBwA4I7BIl80Dte17EsHE= sha256:oB8VpZxg+sB7PZeKoxDmVK5AOgBHirDQuVfgJNeWlV8=
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 0AFB510F289; Sat, 10 Oct 2026 14:00:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.449
X-Spam-Status: No, score=0.449 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
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 2blmVGFPxXkv;
Sat, 10 Oct 2026 14:00:35 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-344170-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id E048310F6C4; Sat, 10 Oct 2026 14:00:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id EA5652ED98; Sat, 10 Oct 2026 10:59:16 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CECE409129;
Sat, 10 Oct 2026 10:59:15 +0000 (UTC)
X-Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76DC440B6EE
for <netdev@vger.kernel.org>; Sat, 10 Oct 2026 10:59:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791629955; cv=none; b=YJQDRSciRU9AThV2zfgAHtltM6YdtOhiD3k7rEIshaxRRhOSTMmzRUyDJ+vkYIQpjMuB36W8uPjygi2vSGKOWedcJQM9udfVS8+W2z4xbwjlQXf2R460JEkfN21xfx7m2wUHoQTB7am4dq6WIlOHS2fHbAGYCRFY6M1VfRgqCAg=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791629955; c=relaxed/simple;
bh=XgobmVnmfw+VKO70t7w47aUKtQgvvletM9pYZJJk38s=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version; b=s0VRrSFUqXMVosiQmiJb5yQcXO0JkmuYTUMnu3e3FPUifJ05ARAa6tQ8/urPiNA7pvKn2pI5bC0v85JGPczk5TJ1oHp6d3rn1vesj/P86UWrBCMmpvo3Kmy/+Ivq8iWVJyzOl+LkbdOHlk1Ww5JJ3+EUYuIAeC2CTWiqQL4iq2Q=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.53
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-48b0ef9c76eso429106f8f.0
for <netdev@vger.kernel.org>; Sat, 10 Oct 2026 03:59:08 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791629946; x=1792234746;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=OAObO9x1QF4WrfdAIN5+rU7Yr3xIr5PVFD+T0h41GXs=;
b=nQ8md4udxqqeLTV4n67ULBcSwPi0RIfDFpW6hg9RKSZtoDt/FDfXwGallhmMixLUTt
yuEDlHINGGgZowRUfTlbLahTNhbpPnYZpXOadQE6mGUF4PkG/VBhtTnp4yXcogLrzKTp
lQjv/bEnOVDlrWecDtql3t6MKgITjHBOsvyRLX7ea0+MlASzYkrvGeJ5JeUbHK/Rdu7o
Rq1z8Q6LBz2ZIauH40G4WAvJV6ziZQsmaCClclCxFS6QR0SiLcLki1PYLJXnIgL4C5cH
aM2rTLd6Z/LcFf188v5wQx0YFrG9CfSX/8xcrXE4zTTwsd7eqKVrKSMjm0jMQPGXI1VS
cb2g==
X-Gm-Message-State: AFq9FYJ/2MK5XD08d2NX41HV8b5fCRoJ/bp99wQvnDD+J4EHOdRUmhZY
dvlVQVjmcyou/U4eN12saN9t3GROgqPxXv/oTIgg7+yKBWCdxHG8MhAG
X-Gm-Gg: AYBFou0//x5a28p9nMOhZrup3xvVYAdUh1mm/xkRA7U0BAaLIaBRi90JpzB6GmINTVH
QVs1mwXvjaGLZ6l+AMH58hYxDfqneGYwyetMb5zz6xYr3AZC2yCoNpa64El6/1PVn2A1F7cBf3T
exene9P7fIHrgJ3X+VKljVtBWIBAiMZNycqGhGDKCqIBOUM1c2b7JqhnVtB9GEPbRtr9KNxhhO6
7w/fhhP0tTpxu0dt++0LnWS0voksyaAczFZUBnL3n6rOsZkjyclpamNRrv2sKkWpif8KxJaxKwC
XCkbtUQmP26YzcZpbdcSqQ4eQBcFG7q5NN9lha53xsXodmPOEBYFwhZ0R3psc1teE2OHp7flTHr
wrqyAoXJj4WChGZDQl2fa1A2iYoM/PsX3gukEKm7VqZNzXmVqZKvzGDK5ncofhBfOzU/3Emhgwh
G0/rpPHB6vpXGFUZmRMybp7B5NMoj4a+tSixVIffi1cg/rAUTr48mONVEW2fS5hxNSxj4UvzeaJ
+UZ+oohzvSUkMTrcrOPJ2p4HLZ4vKzi7u4=
X-Received: by 2002:a05:6000:491c:b0:48c:4272:86b2 with SMTP id ffacd0b85a97d-48dba9bdcfemr8482673f8f.11.1791629946574;
Sat, 10 Oct 2026 03:59:06 -0700 (PDT)
X-Received: from threads.localdomain ([84.70.176.222])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48db9ae17e9sm8709526f8f.57.2026.10.10.03.59.05
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 10 Oct 2026 03:59:06 -0700 (PDT)
X-Cc: netdev@vger.kernel.org,
devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org,
linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.56.0
X-In-Reply-To: <20261010105900.247342-1-tanure@linux.com>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>