Article View: linux.kernel.netdev
Article #19846[PATCH net-next v5 3/9] dt-bindings: net: dsa: Add SoC-e SWIP switch function
From: Vasilij Strassheim
Date: Fri, 20 Nov 2026 14:52
Date: Fri, 20 Nov 2026 14:52
119 lines
12750 bytes
12750 bytes
Add a binding for the Ethernet switch function integrated into SoC-e
SWIP cores as an addressed MFD child.
Signed-off-by: Vasilij Strassheim <v.strassheim@linutronix.de>
---
.../bindings/net/dsa/soce,swip-switch.yaml | 101 +++++++++++++++++++++
1 file changed, 101 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/dsa/soce,swip-switch.yaml b/Documentation/devicetree/bindings/net/dsa/soce,swip-switch.yaml
new file mode 100644
index 000000000000..55232c0f3675
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/dsa/soce,swip-switch.yaml
@@ -0,0 +1,101 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/dsa/soce,swip-switch.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SoC-e SWIP FPGA Ethernet switch function
+
+maintainers:
+ - Vasilij Strassheim <v.strassheim@linutronix.de>
+
+description:
+ Ethernet switch function of the SoC-e Switch IP (SWIP) FPGA core. The port
+ count and presence of VLAN and STP register blocks depend on the FPGA
+ synthesis configuration.
+
+$ref: dsa.yaml#/$defs/ethernet-ports
+
+properties:
+ compatible:
+ const: soce,swip-switch-00-04-0c-10
+ description:
+ This compatible identifies the register layout; its suffix gives
+ the offsets of the core version and feature identification
+ registers (0x00, 0x04, 0x0c, and 0x10). Port counts and optional
+ features depend on the FPGA synthesis configuration and are
+ detected at runtime using this register layout.
+
+ reg:
+ description:
+ Register window of the IP core. Switch register blocks are located at
+ offsets defined by the compatible. The MDIO controller and bus
+ multiplexer occupy separate subregions described by sibling nodes.
+ maxItems: 1
+
+ ethernet-ports:
+ type: object
+ patternProperties:
+ '^ethernet-port@[0-9a-f]+$':
+ type: object
+
+ properties:
+ reg:
+ maximum: 30
+ description: Switch port index, from 0 through 30.
+
+ phy-mode:
+ enum:
+ - mii
+ - gmii
+ - rmii
+ - rgmii
+ - rgmii-id
+ - rgmii-rxid
+ - rgmii-txid
+
+ required:
+ - reg
+ - phy-mode
+
+required:
+ - compatible
+ - reg
+ - ethernet-ports
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ 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 = <ð0>;
+ phy-mode = "gmii";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
+ };
+ };
+ };
--
2.39.5
Technical Details
Message-ID:
<20261120-devel-vstrassheim-soce-dsa-ml-v5-3-5de9225715e6@linutronix.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367978-linux-kernel-netdev=dewy.ruReferences:
<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!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367978-linux-kernel-netdev=dewy.ru From: v.strassheim@linutronix.de (Vasilij Strassheim) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v5 3/9] dt-bindings: net: dsa: Add SoC-e SWIP switch function Date: Fri, 20 Nov 2026 15:52:20 +0100 Organization: Usenet Network Message-ID: <20261120-devel-vstrassheim-soce-dsa-ml-v5-3-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="3185463"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:vilm3u6NuY57n9XPhU7C4HPhltc= sha256:KZuMsKeZslR7J7xiKtWuD4bvHwcUxbSISMh2m/trzUI= sha1:lSnl2TcXXNnULfGKP2FrU/pWdv4= sha256:yPcPCD05LpEGpqOVf82HFwFPPF9a/Eg7CQU6J2umxUs= 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 7564C1159D4; Fri, 20 Nov 2026 17:54:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.951 X-Spam-Status: No, score=-1.951 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, 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] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=linutronix.de header.b=FZgWNMAf; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=bBjihSmI 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 pjR7503IAnqc; Fri, 20 Nov 2026 17:54:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-367978-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 7E65D1159CF; Fri, 20 Nov 2026 17:53:48 +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 D0143A3A69; Fri, 20 Nov 2026 14:53: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=1795186397; b=mqgX7RiLp8byAgHLwPXnI7vFNW03o8+BXbwzGWinIit5cEL720ngm7LtJdXKYJTzSSjp NuJgWn2XK+76Mel3hicC6XGE89dSWmv+2Ou3hRRoNVepT2EWOqzeVLK2q7wTPFqt9W6X/ kJhmDnysL2JieURvRPOb+zc5Gziu4ad5BMh1cB54lzocBgmeD2OWEQ3MCdcspne2/g4Eq 4qix7mvP6Ivt+y7Coc8L4+UzPXC8j6MVwJkq4LUuxmt4W+OSNz01BX6DaPF+e63HS8Crq xV/0SpvplNmBxSnJTdXRKtCBnoN4NDSBYBTg/1nx7xjhjvxu1kLQkPIIkN/909G96Rg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795186397; 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=94inkeJy4LjwOcfHpl+KRLrbPNahiIQcWA/vLQy/r54=; b=PXwEtVWf3RI3JTrqz0GllNdA0o3ESiBkV19hESVo7CtfoBkSTq1zdYB7gt9xygkperjz enHK9wvRANLyRt9/dLq+gBBuqcYLIKgoaXPwhVOac0SAcgxbaW3/RrH50bDpcE4LWaM/1 fUh6r3m+jz8kHzzzAI4t0g+ExwsIOEU4/WcZ0Ao7mLm91NaeMGyEpYwhb8IQPUFRcp/IX IGYJzXfWlElYUNBoQ/Dipg6ccUAJyw5toZULUUkXEODK1GqbrXZiWuOmTVcG8M6+GBqx1 tmYDkYR4awmDeYXbjq3HvnpIdws0aFYMK1ndDC/z1s7GWvN0gX+Ky72dnfZH0YkLX0Q== 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=FZgWNMAf; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=bBjihSmI; 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 F178460A2617; Fri, 20 Nov 2026 14:53:16 +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=FZgWNMAf; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=bBjihSmI 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=1795186391; b=JW2qxcQoKB6XGus7UnUaAdkJat8FxN0wPx3Ptn0MBdgCIUf5mhGKp7JXeoej79FPVqLl 9V/LNw02xYUuS/lQ3YntQG4EHKdn93+L7Xj/9OL5RiRAkGFJVNYKvtqUds2qO3r7GOyge QXbjSidvH9wqBbCv12ftzAXrTpbJWI7G0gIhDJT6xlwwigaUiSed3tEgzguEWEuECQISV ig1QJdqZpWGzI/s6ioxR1ULfGC4sQpod7QrwvSZSqi41Q+t79WohpM8jui45GRJM84uMl c8Xz6TnVCDI747TWnOL1v5sJemN4Hdogid0b78b6zRBly1TdkzY7XiVU1D7i9fenOjA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795186391; 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=94inkeJy4LjwOcfHpl+KRLrbPNahiIQcWA/vLQy/r54=; b=mXrEziOXmZFSA4riOk4C/lDo9SLoblyXzMjA/Hjrl3HRlEuwVxDt25dEryNNBp/Tkkz2 KxSuAX6Q4zULoZAkNk2gWOnjCCEqLmllEdWtPROHMw6/s7DoW+62dppDVuWmG/3ddeipD nogrJrcnbjUx+XjPqXnt6Q6fN6BB8LP/vEEhX06A0O0IIuA7cPlc19DIoT9rFlIpE7dsk wKvYowAaVYixDuqLznanLfVYAxaXTjk1ZTgFI+bSfDkYIzEPBir2YlTwr1qZom5E5bY8s N1WtXj971UrhRGpk0gCWOEVj1OvwDClsVrQAUPpShXz1WWYIrHczguZfe9uFf0e8yhQ== 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=FZgWNMAf; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=bBjihSmI; 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 A62BE60A2607; Fri, 20 Nov 2026 14:53:10 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A62BE60A2607 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=1795186389; 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=94inkeJy4LjwOcfHpl+KRLrbPNahiIQcWA/vLQy/r54=; b=FZgWNMAfgWq3oMpmXEhLs4WDG+AyR3hm2+5rObOlHKsFU9YXmFHawa/ZieqpyU6WkFfWPO c1dqxN/dJrU0LHKi5HJDxIs5zTQErepCEK8sYEgKAIdqZ47dVuX6gRwx0/NfC1rytBsSlj RTjKmQ8WFaz2yYmCAj7Vw+cNvrvynnOZDskp+baOBky2XuVyGSzsFg499PQVBbWS6oDWZ5 e82zoiXl8Pfw99b0ExsEhJfPHB6vHKCs990i5xVpUvzU0OoFdD7/0JOT7dtAu1ekpYd1AK ybCpRaPt6hfTgX85kxFmE0FO0ZAEYVqDzH+Aignaf6WiY1Nav1RTKO7Y1PA0qw== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1795186389; 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=94inkeJy4LjwOcfHpl+KRLrbPNahiIQcWA/vLQy/r54=; b=bBjihSmISCdyeDrGL2Q8OW4NUiNfBsuOGzgFR6tV1xvKxeJhT87Boer2BHQm9bt60NDJ4f +txTFdpa1TVdVMBA== 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>