🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19843

[PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent

#19843
From: Vasilij Strassheim
Date: Fri, 20 Nov 2026 14:52
166 lines
14067 bytes
Add a binding for the SoC-e SWIP multifunction FPGA IP core.

Describe the shared MMIO address space and address translation for the
required addressed ethernet-switch child and the optional integrated
MDIO controller and MMIO-controlled MDIO multiplexer.

The parent is represented as an IP core, while the Ethernet switch is a
separate ethernet-switch@0 child with its own reg resource.

There are additional synthesis options like an integrated I2C controller
for SFPs, but these are not documented yet. The MFD representation makes
it easier to instantiate such subfunctionalities in future bindings.

Signed-off-by: Vasilij Strassheim <v.strassheim@linutronix.de>
---
 .../devicetree/bindings/mfd/soce,swip.yaml         | 138 +++++++++++++++++++++
 1 file changed, 138 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/soce,swip.yaml b/Documentation/devicetree/bindings/mfd/soce,swip.yaml
new file mode 100644
index 000000000000..69bb9eae379f
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/soce,swip.yaml
@@ -0,0 +1,138 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/soce,swip.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SoC-e SWIP multifunction Ethernet switch FPGA IP core
+
+maintainers:
+  - Vasilij Strassheim <v.strassheim@linutronix.de>
+
+description:
+  SoC-e Switch IP (SWIP) cores integrate Ethernet switching logic, an
+  MDIO controller, and an MDIO bus multiplexer in one memory-mapped device.
+  The MDIO bus multiplexer is wired to the integrated MDIO controller.
+
+properties:
+  compatible:
+    const: soce,swip
+
+  reg:
+    maxItems: 1
+
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 1
+
+  ranges: true
+
+  ethernet-switch@0:
+    $ref: /schemas/net/dsa/soce,swip-switch.yaml#
+    unevaluatedProperties: false
+
+  mdio-mux@202:
+    $ref: /schemas/net/mdio-mux-mmioreg.yaml#
+    unevaluatedProperties: false
+
+  mdio@204:
+    $ref: /schemas/net/soce,swip-mdio.yaml#
+    unevaluatedProperties: false
+
+required:
+  - compatible
+  - reg
+  - '#address-cells'
+  - '#size-cells'
+  - ranges
+  - ethernet-switch@0
+
+dependentRequired:
+  mdio-mux@202:
+    - mdio@204
+
+additionalProperties: false
+
+examples:
+  - |
+    ip-core@80020000 {
+        compatible = "soce,swip";
+        reg = <0x80020000 0x10000>;
+        ranges = <0x0 0x80020000 0x10000>;
+        #address-cells = <1>;
+        #size-cells = <1>;
+
+        ethernet-switch@0 {
+            compatible = "soce,swip-switch-00-04-0c-10";
+            reg = <0x0 0x10000>;
+
+            ethernet-ports {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                ethernet-port@0 {
+                    reg = <0>;
+                    phy-handle = <&switchphy0>;
+                    phy-mode = "rgmii-id";
+                };
+
+                ethernet-port@1 {
+                    reg = <1>;
+                    phy-handle = <&switchphy1>;
+                    phy-mode = "rgmii-id";
+                };
+
+                ethernet-port@2 {
+                    reg = <2>;
+                    ethernet = <&eth0>;
+                    phy-mode = "gmii";
+
+                    fixed-link {
+                        speed = <1000>;
+                        full-duplex;
+                    };
+                };
+            };
+        };
+
+        mdio-mux@202 {
+            compatible = "mdio-mux-mmioreg", "mdio-mux";
+            reg = <0x202 0x2>;
+            mux-mask = <0x07ff>;
+            mdio-parent-bus = <&mdio_parent>;
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            mdio@0 {
+                reg = <0>;
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                switchphy0: ethernet-phy@1 {
+                    compatible = "ethernet-phy-ieee802.3-c22";
+                    reg = <1>;
+                };
+            };
+
+            mdio@1 {
+                reg = <1>;
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                switchphy1: ethernet-phy@1 {
+                    compatible = "ethernet-phy-ieee802.3-c22";
+                    reg = <1>;
+                };
+            };
+        };
+
+        mdio_parent: mdio@204 {
+            compatible = "soce,swip-mdio";
+            reg = <0x204 0xc>, <0x200 0x2>;
+            reg-names = "data", "control";
+            #address-cells = <1>;
+            #size-cells = <0>;
+        };
+    };

-- 
2.39.5
Technical Details
Message-ID: <20261120-devel-vstrassheim-soce-dsa-ml-v5-4-5de9225715e6@linutronix.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367979-linux-kernel-netdev=dewy.ru
References: <20261120-devel-vstrassheim-soce-dsa-ml-v5-0-5de9225715e6@linutronix.de>

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-367979-linux-kernel-netdev=dewy.ru
From: v.strassheim@linutronix.de (Vasilij Strassheim)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent
Date: Fri, 20 Nov 2026 15:52:21 +0100
Organization: Usenet Network
Message-ID: <20261120-devel-vstrassheim-soce-dsa-ml-v5-4-5de9225715e6@linutronix.de>
References: <20261120-devel-vstrassheim-soce-dsa-ml-v5-0-5de9225715e6@linutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3185276"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Hr2oIBytERxvJmtU2EPZTnAGuNk= sha256:DKpy+RaCALvQ9mA2eFCITmCVDlOuIRevlgAqiVz4ZB8=
	sha1:kwNMOf4i0kCFCBumpY07iYg5PQc= sha256:H01xZgET1TgQjgYZylNkszNs+5DpX85NJ0TdIJfdM/U=
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 672791159CD; Fri, 20 Nov 2026 17:53:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=linutronix.de header.b=Mr6JOjTp; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=2jPMGBXM
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 Q_H4J-WWhJnW;
	Fri, 20 Nov 2026 17:53:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367979-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linutronix.de
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id B44A11159CE; Fri, 20 Nov 2026 17:53:22 +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 10A24A1B05; Fri, 20 Nov 2026 14:53:19 +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=1795186392;
	b=ZpqIDqYgXadKDh8EvV3JXwartGrvYLYDoL8sPjLDvOBX3/8cDTzV3FeK/lBZn98cKYwD
	 mslSa/ZDGfl4S/+vd+ldv+4lF7RMBZRAd129A7WYeRl+vzCb/VqnMnKVPUOqRpjxKXrxR
	 Zwb60LSAhGHG/gG+sDP+gCyaom3ZuBbHN0otqk6YCy4pe/+yPx0+AKgv+dLSDXnAs6qZ7
	 DQHBF2VGUlW+6+UohNnB+ekCbHQ+7fcLJ1On2g2gOmsVYJ15A7MlmGUbosxcpagHlOx5+
	 wnN0cCe1Mi3m/3f8RjMTu9811u3VSQbbFJJ6PfuJ71oYhsQPJ98AalnH2VdUUhPbxHw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795186392;
	h=X-Original-To:Received:DMARC-Filter:From:DKIM-Signature:
	 DKIM-Signature:Date:Subject:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:
	 References:In-Reply-To:To:Cc;
	bh=rByWdJJ+ZBeZxrDyTuD4YogNyB5OhHS8SzzLgtP4q6w=;
	b=HFa6pvqKPvNML85GGMg+zg0NaYX6g9K/+gEQ176WjMLwyxMUcTTjZkBLqMX+6jP46fl6
	 b5vYncK47jOVz0kzkYr2u19ahO5Za9kR91Hs4fQgnfmkNn4BRIzmcs3LgLb9Iv0iSjPpD
	 mrbgxFNYczk87FRDXx7CVo1GV/8tJ4x8LHThR1mXPYyXpkCbGyPhFyYprzeOz4putUNRz
	 a714PNZpzkoNHnScunKLeWi6niRIj4hHXCKxjjkQHLixvnVcaxIMMHTRLMgTdgqGR/wlX
	 d9zT0yUg5OUVD/ftUeORgzMXLBi1ZirhFws96glV8ZQXBpAPpHB72q6Pl1Mkn+T34Yw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=Mr6JOjTp;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=2jPMGBXM;
	dmarc=pass header.from=linutronix.de;
	spf=pass smtp.mailfrom=linutronix.de;
	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 C9E5260A260B;
	Fri, 20 Nov 2026 14:53:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=Mr6JOjTp;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=2jPMGBXM
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795186392;
	b=Bt+K7X6KgaTapUxIrZYC8OokkxB+tL5T7/xz4QJDmGDfCghW64XkUShWwip/PgcMfjp+
	 XWiqlxs61mOTb+olGQd9koQlI9TtX0H1Abrnv6/zUVm3dAJ9mVTXbLB62KGxiesyZMSaX
	 o4e0+EY8WTXg8CMo8EjCaupXz8v3mhaRZyMMeLIGbmCvuEN940/Qrs1F4bI/oMUGHTuDO
	 pu6+SKegfalyqf/9q8Q5/wpuWY4b4NRT2OxYR18eru/VkVi2Egi8geYTym4j3M1zN36kq
	 RcUOc0orXhTwTb1+0w8VrpRdKiCGAT4Xkd43r+qvGa9XAmkUjmfau4+6VBfIgjEKkxw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795186392;
	h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:Date:Subject:
	 MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:
	 References:In-Reply-To:To:Cc;
	bh=rByWdJJ+ZBeZxrDyTuD4YogNyB5OhHS8SzzLgtP4q6w=;
	b=ZgFY6KSAO1TUONqQvQJL4kKPOeGxQ42RsQl1CzbxjdxbCvQzU/4Ao4Ij8GZQEaltEvfN
	 OJm5/3noSHWTqVJdGcCtlAm7RBWSxQLQqDcraXbS8NQsyby5s+O4sDVBRRoowVqdo+rVo
	 ru/b7OiiLKSWWmZ3lyiEFR8ryRYXjBxf4uMyk6v2Mf6Rm+zhPQzJD8/N9Ip5h0rU+FFJW
	 zPoEIkho2ofoFqZHqXRGrbN5oLVSR57ZCYOMYnF3E23pMnJYRWPb6BDNGuS3W4+UdSrh6
	 K6WEpWKLfa2N9rb2bo5ixIrbr4x5JrTczpFD2DsAASln7qCxzvTWzfrcwVgYU+fbiLQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linutronix.de;
	spf=pass smtp.mailfrom=linutronix.de;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=Mr6JOjTp;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=2jPMGBXM;
	arc=none smtp.remote-ip=193.142.43.55
X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55A8B60A2628;
	Fri, 20 Nov 2026 14:53:11 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 55A8B60A2628
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020; t=1795186390;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=rByWdJJ+ZBeZxrDyTuD4YogNyB5OhHS8SzzLgtP4q6w=;
	b=Mr6JOjTpgH+EDY7DPxVZPRXidWCLxmRjxreInzdltvzij3LTzhAwkNrWqvLygsOqksMcsb
	6euvQqosfsYixFDhLv/YaANPN+V3z0g++jExA9SJKVAUWMEjiNgLzU9wtVgD35gX8R/vGD
	Erc4pDR1RwHlaxORScFb3xvMQ3n/VSDuZ6wiW1/DW6X3ya+eLg6zMevNTFUsjGKssQDq9y
	OFzOcdFhBL1LpmKF18UHE1iunw+2OP+Z8+i8QgKvz91Gz4AslIGi3DkMDvn2xCJfD7I/qT
	CI3mynIC8xkKmk6j15VOWIriVDYtodQ2plfN3n4i4y1nlPdvu+8vDVOGvdZXtw==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1795186390;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=rByWdJJ+ZBeZxrDyTuD4YogNyB5OhHS8SzzLgtP4q6w=;
	b=2jPMGBXM9TNYOctH5mhJQy07DvzsAyOaPqgKio4DJC08dFcgrKvFwieAMiwBGDlJdTuxys
	/8Tht0MmsaKfJNCg==
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
X-In-Reply-To: <20261120-devel-vstrassheim-soce-dsa-ml-v5-0-5de9225715e6@linutronix.de>
X-Cc: Vasilij Strassheim <v.strassheim@linutronix.de>, 
 devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 
 netdev@vger.kernel.org, mfd@lists.linux.dev, 
 Martin Kaistra <martin.kaistra@linutronix.de>, 
 Benedikt Spranger <b.spranger@linutronix.de>