🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25863

[PATCH net-next v4 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC

#25863
From: Jisheng Zhang
Date: Wed, 02 Dec 2026 15:15
159 lines
12034 bytes
Describe the Synaptics SL2610 integration of DWMAC 5.20. The PHY
interface mode and the routing of the shared MDC/MDIO signals are
controlled through system-controller registers.

Add the compatible to the common DWMAC schema and show a PHY connected
to MAC1's MDIO bus in the example.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
---
 .../devicetree/bindings/net/snps,dwmac.yaml   |   1 +
 .../bindings/net/syna,sl2610-dwmac.yaml       | 124 ++++++++++++++++++
 2 files changed, 125 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml

diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index 69d88a9b1925..619c389d8838 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -120,6 +120,7 @@ properties:
         - sophgo,sg2044-dwmac
         - starfive,jh7100-dwmac
         - starfive,jh7110-dwmac
+        - syna,sl2610-dwmac
         - tesla,fsd-ethqos
         - thead,th1520-gmac
         - ultrarisc,dp1000-gmac
diff --git a/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml
new file mode 100644
index 000000000000..37f91fdfddb1
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml
@@ -0,0 +1,124 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/syna,sl2610-dwmac.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Synaptics SL2610 DesignWare Ethernet MAC
+
+maintainers:
+  - Jisheng Zhang <jszhang@kernel.org>
+
+description: |
+  The Ethernet controllers share one external MDC/MDIO interface. Only
+  one controller may contain an enabled MDIO child node, describing all
+  devices on the shared bus. Other controllers reference those devices
+  through phy-handle and omit or disable their MDIO child nodes.
+
+select:
+  properties:
+    compatible:
+      contains:
+        const: syna,sl2610-dwmac
+  required:
+    - compatible
+
+allOf:
+  - $ref: snps,dwmac.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: syna,sl2610-dwmac
+      - const: snps,dwmac-5.20
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-names:
+    const: macirq
+
+  clocks:
+    items:
+      - description: MAC clock
+      - description: Peripheral register interface clock
+      - description: PTP reference clock
+
+  clock-names:
+    items:
+      - const: stmmaceth
+      - const: pclk
+      - const: ptp_ref
+
+  resets:
+    maxItems: 1
+
+  reset-names:
+    const: stmmaceth
+
+  power-domains:
+    maxItems: 1
+
+  syna,syscon:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - items:
+          - description: Phandle to the SL2610 system controller.
+          - description: Offset of the Ethernet interface control register.
+    description:
+      Phandle and register offset used to configure the Ethernet PHY
+      interface mode.
+
+  phy-mode:
+    enum:
+      - rmii
+      - rgmii
+      - rgmii-id
+      - rgmii-rxid
+      - rgmii-txid
+
+required:
+  - compatible
+  - clocks
+  - clock-names
+  - syna,syscon
+  - phy-mode
+
+dependencies:
+  resets: [reset-names]
+  reset-names: [resets]
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    ethernet@f7a06000 {
+        compatible = "syna,sl2610-dwmac", "snps,dwmac-5.20";
+        reg = <0xf7a06000 0x2000>;
+        interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-names = "macirq";
+        clocks = <&clk 13>, <&clk 45>, <&clk 15>;
+        clock-names = "stmmaceth", "pclk", "ptp_ref";
+        resets = <&rst 6>;
+        reset-names = "stmmaceth";
+        phy-mode = "rgmii-id";
+        syna,syscon = <&chip 0xa3c>;
+        phy-handle = <&phy1>;
+
+        mdio {
+            compatible = "snps,dwmac-mdio";
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            phy1: ethernet-phy@2 {
+                reg = <2>;
+            };
+        };
+    };
+...
-- 
2.55.0
Technical Details
Message-ID: <20261202151531.28480-2-jszhang@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375911-linux-kernel-netdev=dewy.ru
References: <20261202151531.28480-1-jszhang@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375911-linux-kernel-netdev=dewy.ru
From: jszhang@kernel.org (Jisheng Zhang)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v4 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC
Date: Wed,  2 Dec 2026 23:15:30 +0800
Organization: Usenet Network
Message-ID: <20261202151531.28480-2-jszhang@kernel.org>
References: <20261202151531.28480-1-jszhang@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2000753"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0wYC5fVq4ev/SuRW9SgTcYpTQQ0= sha256:FH4JYx+tRFcfUY/KL/ssZ7SIiEvmJWJL31gyJ+D/YuY=
	sha1:DHzFxAhp2/z7qDakVPxCH08RRb8= sha256:5Oj2hdy9y8vDoztRNl7s1JpXHZnqgmqDl+3e5pEfplw=
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 D1A78117634; Wed,  2 Dec 2026 18:36:38 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.3
X-Spam-Status: No, score=-2.3 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, URIBL_BLOCKED=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 IZekz7kVrtUk;
	Wed,  2 Dec 2026 18:36: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-375911-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 062EF11769A; Wed,  2 Dec 2026 18:36:26 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 7C31A2BFA6; Wed,  2 Dec 2026 15:36:20 +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=1796225774;
	b=pEtBxnqdC3UVEfS33MoywwuPI/Ho3jge+wTy6n+JfBKQi9XMOtTFgCRJ3g6btQ5lbWyv
	 +8hFS8rEX4tsAJY19xdx1teAKMqe+laVPm7FKGpK5LIEzICeM6tX2JxmZYiUCG6g/G/69
	 2iVWiy3et2xH1YUjHfyhENt/KI3oIvk1OyRzJO1apC37R9bKyF+KeGdhZ4yosw7uhMTbh
	 ne42fDMsYP1YAjx2AmA0GkGenjec+JfKwZ4WIqhWJ2flBb0034/FlPSQ/SA6opcDljp9U
	 RryWTExVhBFzriM3tTUG6S7NdI/Eef3PShY+jyIvJS+FDksu3KE1F7pHoIOtBCoo54A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796225774;
	h=X-Original-To:Received:Received:DKIM-Signature: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=qbRfGU1/IvdJnELsdtqB7T76LQCYmWPY1i1mKRuHZ/A=;
	b=g2Vhy86uLlBUJ+MKuJ58bdqSCt/eiWYLReaqeFYJazLn/cwHoQMNYY5fMl6AGTd7N3Pi
	 T3t98dkzdCDZuML44/bm2+4Js67znlJTljyoz5rumBckz1gmAA1gfB/wINyS4egHb6lt8
	 6Z50mdAf1UVR8Jbw5x+WRUPZahPPbnteSQCrPH7P3WKq1Upvmn/EW9sMn7TBeRirJpzu2
	 jv8qpvbEu1UI7aGxkUrQa1DaSPVKn6C1C5kQP/GvrP5qcyl4/al05VBEbVV1D1R1zsY8K
	 W7aElFgrQRsjCpBHjEgU/c0UJV/9d2gow7aEF13kXF+UDBQ04E0tXTIrWjIKEL4qK7Q==
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=kIh41qc2;
	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 5657F606A683;
	Wed,  2 Dec 2026 15:36:14 +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=kIh41qc2
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=1796225763;
	b=we5zYQiRDoV+qxt+Ni9/K9easlX6ke8i5lh/423u72uLFYvvnVNA2Qj1DlH4vl5lklSS
	 WvjiHYYO2i+Ewb95sMq85HL8VJyj3TxZfqDh10fONzYPbTjibtwyFW+yxEGSkKjVMNwOK
	 jNb8ecqzpoj7k9zz6mEVXOl7jyaHq928w/9VITE6ZrwHvYoe/3d7kYY2eo0+qy0F3eG8f
	 bYxCfR5rAjbL5OQAKerqtSWXudT6zKv+ixN1kozWILAYGaNJDw3WoATCBj2uqxTJGJD3z
	 wXGtnlU2wEc53qDuqbnfggeqmk+Gb78vDGaOuTVm9wMsIG8gMf5omhVVB1o6Bj2wm+Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796225763;
	h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Transfer-Encoding;
	bh=qbRfGU1/IvdJnELsdtqB7T76LQCYmWPY1i1mKRuHZ/A=;
	b=vxD7SAx4ToCearWF98ZOZVYMul52Res7/9rAEzGBwU2hSUkMxAT23ATnaimP1A8QUwGB
	 qsHcrAi8XDQUZ8yPOvD/iQuXhS/fOcmXbETTknoqoFn1qSZBwkjWHgyfwudSicYHa/0Wi
	 VoGhlZ78XgvwgMzb+7Kc4qmiforSxTm5+jXNhD9monjN6noe8KkrVWanOcS7wFUWEC3Cu
	 5P9Nqd8VyR2ZqrhiZXlgkip5Vuw8GcgUmUW6ciIIaVtRsl9YQfIZdTBT+0ebGJKwVyUpv
	 BIvvUSuqjv4SMBvSf2ckeouJ/0wyBiWZOezIByV4rgTKuDwnBU8VOgTvndOhhnWqdcg==
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=kIh41qc2;
	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 7211F606A32D;
	Wed,  2 Dec 2026 15:36:03 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE7A01F000C1;
	Wed,  2 Dec 2026 15:35:57 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796225762;
	bh=qbRfGU1/IvdJnELsdtqB7T76LQCYmWPY1i1mKRuHZ/A=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=kIh41qc233lmL2RHH0LQcdNrrC55dajlbKH+fVQTQQQitG3wZTaJdTw6TnzJLGQMp
	 mWU6Dv14dHpNqpBE1mrjR/SPBHpRZiNYu138c3WbNkrbwWxC0zNVgaNMErHlCpfN0A
	 at1RDUaUUIib/PHNN0yF6MZ8Es1OQnI1OoYocvksrpV3uuqIGRL8nHP8qmZBCUtSZY
	 VwEJyWrpBlHxECxNKaBSPtjDoQx1nHCagc+7OgPQragQDRkOOb7Kr8fZcuewEXg2J/
	 F8yWJ1D3dRgCNQi1iuTZ9RzrtJLaQhGWKePXMStG43K0Prn+mcUZ5HtmJUqPGYggbQ
	 HJLOv5iboZc8w==
X-Cc: netdev@vger.kernel.org,
	devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
X-Mailer: git-send-email 2.55.0
X-In-Reply-To: <20261202151531.28480-1-jszhang@kernel.org>
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