🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25348

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

#25348
From: Jisheng Zhang
Date: Tue, 01 Dec 2026 14:37
159 lines
11915 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: <20261201143753.13916-2-jszhang@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375187-linux-kernel-netdev=dewy.ru
References: <20261201143753.13916-1-jszhang@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375187-linux-kernel-netdev=dewy.ru
From: jszhang@kernel.org (Jisheng Zhang)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v3 1/2] dt-bindings: net: Add Synaptics SL2610 DWMAC
Date: Tue,  1 Dec 2026 22:37:52 +0800
Organization: Usenet Network
Message-ID: <20261201143753.13916-2-jszhang@kernel.org>
References: <20261201143753.13916-1-jszhang@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1741571"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:infJ6SEfrcksA9OS1r1VD16+uzA= sha256:pg+lA29n5ze883JnyhlwKMJ24BRT2VeiFLBG1w2LrD8=
	sha1:QWaWBPY0F/QW8N2EJcdLDFT2Vk8= sha256:rtBLcPq6bT64p5R6s1NeFTNor2dUFUtlZ8znhueCgrE=
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 1F5C61173F8; Tue,  1 Dec 2026 17:58:42 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[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 Tt6G92mBscyk;
	Tue,  1 Dec 2026 17:58:38 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375187-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 44684117363; Tue,  1 Dec 2026 17:58:30 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id B3DA32392F; Tue,  1 Dec 2026 14:58:27 +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=1796137106;
	b=OdpKeWoeuDU6u3TZUTdMsHrAOHoz1uU8N+EzLlnrNmeKC6GcnAUDtWUjTy6a+7E1yd57
	 YV26LAlh+PWgobtnWoeyrLm0n+KzXx7Tm9uQrhS8FQuxXjW4B6QCe7btVlgkXV+6z27U8
	 05qiqzD7ELPqV6OYUUeE7Yuu0mRkkMW78hgdSf4Iai0a1VPq+e38M/2294aiz7QBiQcf8
	 7uAuoDqhGvvWKNeO8C11QrG/ZUN66OLSzI3oXBln7omy7vq9eDEDgXUke2ZLTTzHW2qcT
	 6qzP1+iyYhWFS3I1ieTVN+xqIJcupDr0s0HbL62ffYScQkzu3RPxtRq9uacx4L6gvnA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796137106;
	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=fYSFpMw1sf2xEa3ZeX+ueZHbIXibzYzH7ox6owi+7id2oNm5RrPprwg0C4mhuAE2Dafe
	 qEu3hN83/LFlbPWECAPMhHL2/9o5B4se61Qo7I88vtmbY7F3wR0wr0nGK2AB1o05dtgJT
	 JO6MkWiXrLJjC+9omWyAZy5YZ1W/KRLy9pPwasZmR6q6orGy+2vpfSuYoe3hEdmpfqQjZ
	 ac1xRlMGYeftK4gYP6n4Ocj+2ZWFb8vXm+gKB13mrzr/eBXkSpjPYOMc8B+dkT0B0ViBI
	 Aj1I0DxuaB04fM96qVd49Eh83v3socOWXxUVyCSLalro7dj71yHQaSN/h3DumDvn42A==
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=ZcvwXiov;
	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 E7043606A327;
	Tue,  1 Dec 2026 14:58:25 +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=ZcvwXiov
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=1796137105;
	b=mpY98aF1Tj9mopj7I7I5sYV/0tRWyj6aAsNg55SJvU6/Km7CCOP4Q7XZTuZhJQ/B6yT4
	 NLbHWzQOC6w2ljgcrBXONQVzhOg1U80WDWgOo5s7/n5hKvNfyRvQkMyJw6SwcAlMIdTxp
	 3RVRyZnK5tk/+lkAVAWdJceiVjr0x30PfpumNaNtzpR0gBoevwLSxxBxS0fP+P3+ovj6z
	 3cfYgmJoV+Agqt//7tH8IslwuNHpa6hXNYywcHAw+F6PmIRlmAk386zONCcCm02x9XrDz
	 dY8X1CAlGnuAU2nYGGZcoB/ofaJ4cKI2avCciJrJFiavPr6VNaLPVNqhBLqFDmkZ5EA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796137105;
	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=b2NUBID73l5Zmu0rqkXU3/hvSCywXnuTRtX7xD4DUMDMlftUM9Wm3hBzz/aNOiP9TYZI
	 ScfGNMIXg+0DDDQ7rN/xvFsEMngu8GWZ6M5InzZ182RJLJAN51iflP59oJ1xiFR5IhGkL
	 bXipiotFdBFUQpIfEbGTSm0PqMBC+hupM+9JNHzK/Rgkq6TT+ldoIstt0pNT6Mxew5vRc
	 WNyDzVuiEJB7fWUWLW/ewFqh+gmyHcG5dD0zldUPG5LwlHsWoz/SethY1vi18arR0D1xq
	 IwdsGiguUIxmtcSsWpKC2Ajp1z+MWgfmI0XYnq41tM++nPD4dGXLi0lfL68y9nXa2hg==
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=ZcvwXiov;
	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 12EF6606A333;
	Tue,  1 Dec 2026 14:58:24 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 024F41F00919;
	Tue,  1 Dec 2026 14:58:18 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796137104;
	bh=qbRfGU1/IvdJnELsdtqB7T76LQCYmWPY1i1mKRuHZ/A=;
	h=From:To:Cc:Subject:Date:In-Reply-To:References;
	b=ZcvwXiovwc/GuOfoloEZPsoqgQnKP/5swmI1k0J+uqNrEFSMdPcQ+Y1Dyo7M43nlL
	 dVgjZEeZPLlDalsA1Xy5kJI6OeZ39A0C7myWQ4WMfrs57m+lOKteU3cXoF4pyPKTxE
	 cH9iGoBxfk4i4ID9ChSCJkAwXpgW695m7goOuxB9ayJ/nQV4/Td9K8tqX7c8DsXb6n
	 16nnIIrW01RmdcQTPgbWzDfXIYn4AFkgku31Ihc6Mg1RgDaOKjOx5wVh5X7x4uySzj
	 13D4zfQfLK0cnpDQ+idv+xIVYsOUrj1/TH8B8RHkXR0vkwapSVmgxpv/AGVA7lyzbD
	 9MEXQ8+dRKRKg==
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: <20261201143753.13916-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