Article View: linux.kernel.netdev
Article #10533[PATCH v5 2/7] dt-bindings: net: amlogic,meson-dwmac: add amlogic,t7-dwmac
From: Lucas Tanure
Date: Tue, 03 Nov 2026 16:37
Date: Tue, 03 Nov 2026 16:37
113 lines
13259 bytes
13259 bytes
The T7 has the same ethernet glue as the G12A but needs two clocks of
its own. The controller reaches memory through a pipeline stage with
its own gate; nothing else claims it, so it is switched off as unused
and transfers never finish. The glue registers sit in a block clocked
together with the MDIO multiplexer, which probes after the controller
has programmed them: the writes are lost and the port keeps the
bootloader's delays.
So the T7 gets its own clock list, without the timing adjustment clock
it never uses. Its delays follow ethernet-controller.yaml: the PHY adds
the 2ns, and only the receive delay line offers fine tuning, so only
rx-internal-delay-ps is valid here.
Assisted-by: LLM
Signed-off-by: Lucas Tanure <tanure@linux.com>
---
.../bindings/net/amlogic,meson-dwmac.yaml | 59 +++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
index e769c9bb70d8..6de013e3e8f6 100644
--- a/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/amlogic,meson-dwmac.yaml
@@ -23,6 +23,7 @@ select:
- amlogic,meson-gxbb-dwmac
- amlogic,meson-axg-dwmac
- amlogic,meson-g12a-dwmac
+ - amlogic,t7-dwmac
required:
- compatible
@@ -57,6 +58,59 @@ allOf:
- const: clkin1
- const: timing-adjustment
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: amlogic,t7-dwmac
+ then:
+ properties:
+ clocks:
+ items:
+ - description: GMAC main clock
+ - description: First parent clock of the internal mux
+ - description: Second parent clock of the internal mux
+ - description:
+ clock of the pipeline stage inserted in the bus path between
+ the controller and the DRAM. Without it, the controller cannot
+ complete DMA transfers.
+ - description:
+ clock of the register block holding PRG_ETH0 and PRG_ETH1.
+ Without it, the block reads as zero and ignores writes.
+
+ clock-names:
+ items:
+ - const: stmmaceth
+ - const: clkin0
+ - const: clkin1
+ - const: pipeline
+ - const: pclk
+
+ # The PHY adds the 2ns RGMII delays, see ethernet-controller.yaml.
+ # The RX delay line of this glue is fine tuning in 200ps steps,
+ # added on top of what phy-mode describes. The TX side has no fine
+ # tuning: its only step is a quarter of the clock period, the full
+ # 2ns at 1Gbit/s, so the TX property is not accepted.
+ tx-internal-delay-ps: false
+
+ # Deprecated: new SoCs use the standard *-internal-delay-ps
+ # properties instead.
+ amlogic,tx-delay-ns: false
+ amlogic,rx-delay-ns: false
+
+ # Delay definitions for Meson8b and newer
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - amlogic,meson8b-dwmac
+ - amlogic,meson8m2-dwmac
+ - amlogic,meson-gxbb-dwmac
+ - amlogic,meson-axg-dwmac
+ - amlogic,meson-g12a-dwmac
+ then:
+ properties:
amlogic,tx-delay-ns:
enum: [0, 2, 4, 6]
default: 2
@@ -106,6 +160,7 @@ allOf:
contains:
enum:
- amlogic,meson-g12a-dwmac
+ - amlogic,t7-dwmac
then:
properties:
rx-internal-delay-ps:
@@ -142,6 +197,10 @@ properties:
- items:
- const: amlogic,meson6-dwmac
- const: snps,dwmac
+ - items:
+ - const: amlogic,t7-dwmac
+ - const: snps,dwmac-5.10a
+ - const: snps,dwmac
reg:
items:
--
2.56.0
Technical Details
Message-ID:
<20261103163715.385394-3-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-355803-linux-kernel-netdev=dewy.ruReferences:
<20261103163715.385394-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-355803-linux-kernel-netdev=dewy.ru
From: tanure@linux.com (Lucas Tanure)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v5 2/7] dt-bindings: net: amlogic,meson-dwmac: add amlogic,t7-dwmac
Date: Tue, 3 Nov 2026 16:37:10 +0000
Organization: Usenet Network
Message-ID: <20261103163715.385394-3-tanure@linux.com>
References: <20261103163715.385394-1-tanure@linux.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3216972"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jFYeN93x1vSH+i4cqtHzPkEePDI= sha256:+X89YeOBpOR4u0U+4KGaVf25o3Vm+ABUwQwOnfKM49w=
sha1:CR+IBWmVLMX+T7uW/ZKh54T3vNg= sha256:b7D9J6Jr34XPjHv3lifz5eDEq0/WoSN8LMyC5WDf+E8=
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 24318112960; Tue, 3 Nov 2026 20:10:01 +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 agPNi57R5C4f;
Tue, 3 Nov 2026 20:09:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355803-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 635C411295E; Tue, 3 Nov 2026 20:09:52 +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 1C97EA6DC7; Tue, 3 Nov 2026 16:37:40 +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=1793723841;
b=j8bTzxloctj7SVehcRUZrssQldGQ4GIelZrHLQsSz/PCJy3XLTG9eHlhq0iwx1W2fL93
gLeG45ImvJs4ZuROmDuMI1LGNGDjFQh1n1ncKZ6qE9a4IqC+ehgNXAHuEjX2PlbPO9jVP
E625G8VwKWdH4AvcWG9QNmbEg9aiVnK++c91MMlhIsFEt11OiHHgRA7YMrA6mR9Eim++P
cB9A5kE0uEPU9h8KGt0ie58ESny3I35o3Ohshq9/lSuO0Tlrb+qWk3cnYcEX14BZCDZfy
Ey3iT1bdAxna23mIdI8VEcK2P3+9Z/WfYangIZ/4JgMviJFYgxfcqW92Cf1SXjc0vcA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793723841;
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=zl50UKdvdlW8XEIziu1Zq0cNn23HYvybJSqNilE3YHc=;
b=t6Qj/5Qz8avJvFDcbGN/HSBNKHze6ht8ZQdMXOBE6NwdHM3grNt3sO2osFfzxhjH+Oj0
Yjw78W2ODRYNeZlmtBFzKPv+5wub1zZyV7WufDCpPixRta/THH3zegtdTo2H8TYHjSu3v
qFwb4jKUXudrrBer2UC6quEa0EKX8/wDki1fA//pgZW9bMgF7aWFjG6VhVweZJ0YRtMcl
JU3Dg6froxoVPqc6PcVOM3CCrVZqRGdWTiGKegiNG6sf/QeVGJk1iZAwM21F2agh2zaIB
/O8rZYQtEyyxbGevuPunAC40xziwmVrrd3cdry0lmhBd9a5p8RClOAScZAasKGdPXxQ==
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 E1463606D836;
Tue, 3 Nov 2026 16:37:21 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793723841;
b=RHP+jxe+cJyFiSH4NKMSL4sWPZziPkaY/2VlWFX7LHM8tm4zXId//j9gOy2TVH2CxLXw
Wh5nYh/TCPayIglCU4wo1+scIznPfBM1z+I4DXZhDbfx+RUYDcz9LXb2QF0C7kGyvCP69
5mW/JZTTK1DipKXPegGjUkCm8UYuhujKNa/qpQP0Hxb/qNdKGGN9SNi3xo2RkMzd4K1K1
DF/XeDUjBFcNEQ2ljqFMLy99RbeBsMLGH3m+LpdO5nqYfl0ccaobUNDh0EfxAon3F4Ug1
1Ef4T6KfMERBDfIMXkqdCVW3OGGsiJ/jQBlQjF9aBFj0VkjYyAHTFnkbKuGtw8LV7VA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793723841;
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=zl50UKdvdlW8XEIziu1Zq0cNn23HYvybJSqNilE3YHc=;
b=trG7n7Fa1uGl1pSc1PrnqgzYHBJyrNFpsNQDa5iQIXdFpy2csWbQFOcmxttg396Wwhws
MI5cLsiPIy3ozDS2e4HUVCnVi6fEwxRRBAMaDTS96sGXTMJDIOzgcGzGrKi5nBxEYZCy+
syFcjhVUko3QpOfiDwFbp7mBx8TBrB6TJzE5Ig5jSK59mc47Li8+S/JRJLbmSYd7E9TZa
5QGyyAJNhSXG6Mb3NUsGebtMbNy9GBI5FkEmu7A+pjJN5bj24EKS6EwrCFcdcFjwrhxDd
t62OtEJ3gcpDzhkz+df8dlMD4tRbt0mBBlpHssWdzfo2HDSeTt1p6lydo78YD0CJwcg==
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.221.45
X-Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45])
(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 01BFB606D81D
for <netdev@vger.kernel.org>; Tue, 3 Nov 2026 16:37:20 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 01BFB606D81D
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-f45.google.com with SMTP id ffacd0b85a97d-48e0d1da913so759921f8f.1
for <netdev@vger.kernel.org>; Tue, 03 Nov 2026 08:37:20 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793723839; x=1794328639;
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=zl50UKdvdlW8XEIziu1Zq0cNn23HYvybJSqNilE3YHc=;
b=DaTy+wZU7KJRV5q2Qqxuqf5Hsq9g8PGgbWcCGvEzU9uej9XvLyzoqrSPxmaoMx9fWr
jR+63DefAJd/RfvBRzt/oOCL90Dab8vbSfWeTn5Url97djBALbZTqZASKF6EHGZa0N8H
UEpkQUgTLkdXaTVOmmqQ/CRL7Q059abTgLLfMRiTkCpSQ00E8t7r0F+OlTXUiyxBBNXi
K4zyrhyBaFsqm+dm/21WB78zevrvjJxj8yLk9foFXEqvz4LJsJLPU9WibjNR4Bm6a5D0
2hSypOhUlLVAmZVPoStTi1D/kQzQ0ivOVjqk6tVn5ch46z9icKPFbsHmXl0zLX07LEPz
WoIg==
X-Gm-Message-State: APuU4Z+z2QGiC7dHTdph/48C89NYFbPA2XJjq/hasWzMRiL27cBzv8bt
D2YzmH6rfgEaoXOpJJaGdxBwinpKKaYH+Y3hLbfk2dHlhdiAV0VZ+mh6
X-Gm-Gg: AYBFou2ESTx+KGyIPecBkwaCuSKsuuc9oN+zTxHH96tKlujS25U8ebswhnByPWPcame
ZNw4oUgL6RIgq5BISP7s6dBW/RbdN9KPivGQ9yHNcRR33omVf9l4+7edc4DkwYHlymi/o0mun6V
aiaVCLC/s/ukIWgZM94z1vvhIdN0HgPe8tKrctfhNMztM14Zg5kvKlZ4O9IK4U6cF+el8fhXaRj
/MGydrejOhWdvgyyYaX9y8WyiS25D01zYr5xdXT5c38kQ56lWequgi/DuVrZ4NJbB+LXwBhmKqJ
mewSP6/D44CVZkvPV1SvR9tc60oxDMFl6IGVydh5xv2x64vaHYHPJAS1eJa6BJdgzZmaj7jVpSj
SqwRVFld8gZx4/V48EDfmyaLdpplF43GZFGJtSw6G2XOHOpBmyj5Nkq63v8ZX+GP8BMQHE60ViF
9Rv8dsnLUCMQSI/LDSNJkKHjx3gdWPH3+24n9uZFnQZvJfrsA0hEXEJzXuGaKaQqi1ZvQ1gGOOC
8FvobyDYMK8BkYKhoUyXS3reH289Dg2DNXMwzd8QK2QXzfb1Kt8OQjoCB1/Hs9/TxTaK4fS8FbW
UpBcywI9VhzaHsFfBxVyqe3uzB4Bf/roZEPOvseTNcQAm5DrHxWH4J0aZFKP4sTOy8PkPuOD0Uo
cbXMoGzuZ1/3kfoKtWuVxs1LZbA==
X-Received: by 2002:a05:6000:2082:b0:487:13a9:80d with SMTP id ffacd0b85a97d-48e6e2cb572mr32349416f8f.10.1793723839219;
Tue, 03 Nov 2026 08:37:19 -0800 (PST)
X-Received: from threads.localdomain ([90.254.187.36])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71a4d3e9sm29044772f8f.6.2026.11.03.08.37.18
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 03 Nov 2026 08:37:18 -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.0
X-In-Reply-To: <20261103163715.385394-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