Article View: linux.kernel.netdev
Article #15808[PATCH v7 3/7] net: stmmac: dwmac-meson8b: add support for the Amlogic T7
From: Lucas Tanure
Date: Fri, 13 Nov 2026 12:18
Date: Fri, 13 Nov 2026 12:18
81 lines
12162 bytes
12162 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.
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.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 2ad70f0dc4a3..ad30730db57f 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.1
Technical Details
Message-ID:
<20261113121852.334604-4-tanure@linux.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362619-linux-kernel-netdev=dewy.ruReferences:
<20261113121852.334604-1-tanure@linux.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362619-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v7 3/7] net: stmmac: dwmac-meson8b: add support for the Amlogic T7
Date: Fri, 13 Nov 2026 12:18:48 +0000
Organization: Usenet Network
Message-ID: <20261113121852.334604-4-tanure@linux.com>
References: <20261113121852.334604-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1375458"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:p/VxxzDe51bkZXA3V9jeOl+DuLs= sha256:pyfnQ5xt3KdEUp9RKEn8uhkR4BI+MGOjAoah1Pktuo8=
sha1:NfkHWEL2jgjPEouhSWfPCnQB9/8= sha256:vyBXHPBZFaYRvvGtS0cc4c8OPY6eKjBvw/oGd7a9vro=
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 D746D114591; Fri, 13 Nov 2026 18:49:05 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.851
X-Spam-Status: No, score=-1.851 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,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham 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 512cvH3_BMUM;
Fri, 13 Nov 2026 18:48:55 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-362619-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 66EF5114576; Fri, 13 Nov 2026 18:48:49 +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 EA7FB2866A4; Fri, 13 Nov 2026 12:19:38 +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=1794572340;
b=1CHuLp6mRgMkVadbN5thcdMS0J6ri9MZ2eO5cYKw32CHKTdSds8kW7D+zQfiqp7fUXGd
YAgC26nVv4FlpCVDoiHAjmCSahNegSgHoneSp9hPzloMA8f1leA+GaG/7hjJEF2EKFHcT
PNU3m6MqYNdOEVDmzh9fiA7vlW6Y2My33e/s7lD1VJrKX4teopNBianh+tTALKciMhMMn
QkD3KvULW9383UczYE++N3MJtSVENsN91kCUXXzyQo5FR4zMxSdzcDCE2lUZgcCOCiOi/
4R6z/ig3M1wlMIQmRogxbxYsUhY+VTRFc1tu4XkwDmiL85fNV5669i7l/YvQAafju3Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794572340;
h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=Tb6BE0R49kXMcQ/rHy6An/pZJMM7XZOtIB+MBfpG+84=;
b=Y0hOKBhLTHw542WYQW4divurH5CmAfoP7WgOgnNZAFeMfRerFzhoMcn1kXCBbLrQB5q7
+YyLBLfUEZtE7Jpq4XXI5wp80FplmzS802OXzEWQg0Q4V+JQXJLAX5VUgs+yHQHXJ7QG6
E1ZrVzoZxluJb8e1/+dDr5dOEUlUl9Iw01RfuoD4Ma+MKMhw3XCFHf3K/gKCPEhebhvz0
tptP/XkQiNTTc5/DywUuolyLeiel2NRZNwTqLZgORIF8JQinCfSX7PgZvYTgXlp2cfM2/
lvNsYApXSHcL2LtUKs/I0usu4BCFYimLCjpaxx2le1FFtE1nJexvmBs4Cr7G4DnTeYg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=fail header.from=linux.com;
spf=pass smtp.mailfrom=gmail.com;
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 2031360A2619;
Fri, 13 Nov 2026 12:19:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794572339;
b=wLPPOK2492ZajEzh+1Xk8yulc7DqbamsIZGmYIpv1xGk2c4VkaystJik4Muh4JhNdZg8
BRD0pF2JvZdh3X0P6BqUAcC7d2bnvHomBkgxutP9mACKdhPX+O41PWKq/t4P2AQ1zpUVp
J66eatvqwa53S4qiNle4vYDJBHSLxcEBOfsod7N4FT70KRbwPVA47mK2IOFvrB4Tu3IPs
5FWQIsEUzAn1Al+LWKV8HDykxri6AWh/vKaVsseKaeJrBTJY/oY4bp2VeH6MTepdk/ZdS
XJLCnKEHQK+stEVpx+cM40uCBVS7I+5AiT1yALgvfBj+tsP0DyPKrkocAh/U2oWjKJw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794572339;
h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=Tb6BE0R49kXMcQ/rHy6An/pZJMM7XZOtIB+MBfpG+84=;
b=TKaIW5dtyNv0rFVajN3GAkMEZkk7CeAm1g5wo1AkxKuuvZ4CdG6U+LPhBN1NKQ5E7FBS
nejjNmNs23Ffthim8LRWEUw1DrXfc1Trz1FXMYvyTwPcNTep0XxCQHliX0ZmTwzwLUREQ
g4Gx4aDm0t6wNkDE3h7UQsRi3SQbHQgexyNJ5dRXlxLVjCT8FoINO41j68ijG6vY8vcDj
tJUoCOyNCacw3FN+hrLsjz52wIqaZPBn89RHXrqJD+A3Ua+n87jlUK1M+dCt/GKYaeMnz
PeIXFgZ9JghT9qZftETU2QNw6fCh7VlelIIGczb06vs9utNBmGTAtwKGWaDwt7nYZoA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=fail header.from=linux.com;
spf=pass smtp.mailfrom=gmail.com;
arc=none smtp.remote-ip=209.85.128.50
X-Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9266606A32A
for <netdev@vger.kernel.org>; Fri, 13 Nov 2026 12:18:57 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E9266606A32A
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-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4a2072b9832so11263125e9.1
for <netdev@vger.kernel.org>; Fri, 13 Nov 2026 04:18:57 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794572336; x=1795177136;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message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+Gk4qr0luO/wehvQcuOwM+epCg/
2Z8PpzZ0VRQxJKQr+aIjJtnIK+KQkHg63oNSFLC3R1mkB/8eL1m5y7hvzqov10J0jDN7xLyWpjJ
8+Ipu65K7X1qRO4btynUM568n8fXao50BNBIQRlIc6yGh+d4X5/zv0346nDYeLWG9IAW9BGISCW
qxwaJvT3cVn17ftLSLYLPwh/U
X-Received: by 2002:a7b:cc16:0:b0:4a1:d766:758 with SMTP id 5b1f17b1804b1-4bb4e2fc5eamr105768935e9.16.1794572336252;
Fri, 13 Nov 2026 04:18:56 -0800 (PST)
X-Received: from threads.localdomain ([84.70.166.92])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49c605e5b2fsm5167103f8f.40.2026.11.13.04.18.55
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 13 Nov 2026 04:18:55 -0800 (PST)
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.1
X-In-Reply-To: <20261113121852.334604-1-tanure@linux.com>
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