Article View: linux.kernel.netdev
Article #590Re: [PATCH net-next v3 3/8] dt-bindings: net: dsa: Add SoC-e SWIP switch
From: Vasilij Strassheim
Date: Thu, 08 Oct 2026 09:50
Date: Thu, 08 Oct 2026 09:50
77 lines
9999 bytes
9999 bytes
On Wed, 2026-10-07 at 15:54 -0500, Rob Herring wrote: > On Wed, Sep 23, 2026 at 12:39:30PM +0200, Vasilij Strassheim wrote: > > Add a binding for SoC-e FPGA-based Ethernet switch IP cores. > > > > The compatible identifies a register layout characterized by the core > > and feature identification registers at the encoded offsets. The > > concrete synthesis-time configuration is then autodetected from these > > registers. > > > > Describe the Ethernet ports and the optional integrated MDIO controller > > with its generic MMIO mux and child buses. > > > > Signed-off-by: Vasilij Strassheim <v.strassheim@linutronix.de> > > --- > > .../devicetree/bindings/net/dsa/soce,swip.yaml | 162 +++++++++++++++++++++ > > 1 file changed, 162 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml b/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml > > new file mode 100644 > > index 000000000000..d614fb2a29d3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/dsa/soce,swip.yaml > > @@ -0,0 +1,162 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/net/dsa/soce,swip.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: SoC-e ethernet switch IP core for FPGAs > > + > > +maintainers: > > + - Vasilij Strassheim <v.strassheim@linutronix.de> > > + > > +description: > > + SoC-e Ethernet switch IP cores are FPGA-based switches whose features > > + and number of ports are selected at synthesis time. Ports can connect > > + to CPUs, external PHYs, FPGA logic, or other switch cores. An integrated > > + MDIO controller accesses the per-port external buses through a mux. > > + > > +$ref: dsa.yaml# > > Doesn't look like you use any DSA properties. Can you use > ethernet-switch.yaml instead. Also, if you don't have any custom > properties, you need to ref "dsa.yaml#/$defs/ethernet-ports" instead. Yes, I will use dsa.yaml#/$defs/ethernet-ports. This will also make the local dsa-port.yaml reference and unevaluatedProperties: false redundant, so I will fix this as well. > > > + > > +properties: > > + compatible: > > + const: soce,swip-00-04-0c-10 > > + description: > > + Register layout with the core version register at offset 0x00 and > > + feature identification registers at offsets 0x04, 0x0c, and 0x10. > > Do you expect these to change? Kind of an odd compatible, but okay... No, I don't expect them to change. But since this is FPGA IP which is easy to be changed, I would not rely on them either. Anyway, I haven't found a better solution yet. MV88E6xxx has a similar approach. More generic compatible is not a viable option. Thanks, Vasilij
Technical Details
Message-ID:
<35b4bc5dcd6a6340e98361570d304fedb099ae86.camel@linutronix.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342870-linux-kernel-netdev=dewy.ruReferences:
<20260923-devel-vstrassheim-soce-dsa-ml-v3-0-ddebafcb9ba7@linutronix.de> <20260923-devel-vstrassheim-soce-dsa-ml-v3-3-ddebafcb9ba7@linutronix.de> <20261007205457.GA244932-robh@kernel.org>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-342870-linux-kernel-netdev=dewy.ru From: v.strassheim@linutronix.de (Vasilij Strassheim) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3 3/8] dt-bindings: net: dsa: Add SoC-e SWIP switch Date: Thu, 08 Oct 2026 11:50:10 +0200 Organization: Usenet Network Message-ID: <35b4bc5dcd6a6340e98361570d304fedb099ae86.camel@linutronix.de> References: <20260923-devel-vstrassheim-soce-dsa-ml-v3-0-ddebafcb9ba7@linutronix.de> <20260923-devel-vstrassheim-soce-dsa-ml-v3-3-ddebafcb9ba7@linutronix.de> <20261007205457.GA244932-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="848054"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:jnnjD++RuPNce0iJrYjLT7pa9WA= sha256:ynqS+4cNnM2r7BvQ4iHofANnxjTM2vTkmMphQP42Zss= sha1:nKZQMqwV1WHEqwCBRVtFYi8cWlw= sha256:/eTcwVaPQmrPSCJzYgEdt7oplKwtDt1CZO6ICQyTb9Q= 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 4CC6210F37D; Thu, 8 Oct 2026 12:50:27 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.85 X-Spam-Status: No, score=-0.85 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, 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=pt7fEFK5; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=LN3VNVJj 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 IsWr29opmPI5; Thu, 8 Oct 2026 12:50:22 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-342870-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id F084210F335; Thu, 8 Oct 2026 12:50:17 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sto.lore.kernel.org (Postfix) with ESMTP id 527BC603671; Thu, 8 Oct 2026 09:50:16 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 192CB485CCF; Thu, 8 Oct 2026 09:50:15 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pt7fEFK5"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LN3VNVJj" X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8ACD484883; Thu, 8 Oct 2026 09:50:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791453015; cv=none; b=dGT3gWrVWLjAeUT39VxNj8T5oL9WkzbYxLHxQcxNylj+eAKJg2PTVmCAKiAq0l6kmIZFUK4qg7hT56JszghOZGjnKYPQ2mzLtgl9BtI96qugosjBf8wrbwA8RGpgm5N7RFxferztZr337KjDPVGqIYjrvcnKHBe7xd9sUf24XEA= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791453015; c=relaxed/simple; bh=weeyI+U/YPol1iP2qAwQITPUDIdQbfMYarxc3t+6YMA=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=kgH0R+SCy1J/CtDBAI+F7WhBwedmFfSyHcFmfPTCiqOCgxNgYYPHrRn3sA9alQ9x5w0WHBfKNmgWlOSn3MHy1TYGRpQzzrBa57jN3T0f3SyKsjTXWUMc5OMRz0v7CHtqc/M6Rg+3VLwh3k4BPQQQ5CfbuYv5oBrLosS4T42W7BE= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=pt7fEFK5; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LN3VNVJj; arc=none smtp.client-ip=193.142.43.55 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=1791453011; 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=ko2mDoLtJha0Y2zjgpnISDGHYPySL+44YDXgqu0NN/g=; b=pt7fEFK5gShPCrHARjhafhmT8R22KQNOg5RxhHv3cMFFmUlZOOaQqsFGRtaMmAL76ALr4a kIvN+VlOq+etg9mLP4lQYs66NL9mNRJadWYn+R5W8T/045i7iw43BVAFJ///Y6k/sKNT/U vHgUK2ULFYaNPHSj189G0VZ09Ug/TuDIMGjbHe9TjA7iLr71MjGtJu9SWSFcrIL27XWpVF yol4ZiXSW1wloeAAbsLHOoMeHLjPueFtuDPdJzTdQ1E4HHcx9yj1FZ1xOS0tCE0KOXt+5u 69S4wII0a1+NeKlHCht8W9ZOTdjFs4cya29hB7ruJALhQmKEleUezsGrrAGE7w== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1791453011; 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=ko2mDoLtJha0Y2zjgpnISDGHYPySL+44YDXgqu0NN/g=; b=LN3VNVJjLsScd/fVUptjuUhNOkM4O3nEr2LGUIRoc5cy7g5E4IsCpthRXbWcFuSlXLqWlG tUiOARBFnYyuZpAg== X-Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Russell King <linux@armlinux.org.uk>, Andrew Lunn <andrew+netdev@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Martin Kaistra <martin.kaistra@linutronix.de>, Benedikt Spranger <b.spranger@linutronix.de> X-In-Reply-To: <20261007205457.GA244932-robh@kernel.org> X-Organization: Linutronix GmbH X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>