🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25929

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

#25929
From: Rob Herring
Date: Wed, 02 Dec 2026 18:35
71 lines
11894 bytes
On Wed, Dec 02, 2026 at 11:26:44AM +0100, Benedikt Spranger wrote:
> On Tue, 1 Dec 2026 16:48:03 -0600
> Rob Herring <robh@kernel.org> wrote:
> 
> > > I will describe the individual register regions for switch in the
> > > next version:
> > > 
> > >     reg = <0x0 0x50>, <0xb00 0x1200>,
> > >           <0x3000 0x14>, <0x3200 0x400>;
> > >     reg-names = "global", "switch", "ports", "statistics";
> > 
> > I still don't think this is correct. Correct me if I'm wrong, but
> > your MDIO controller/mux is not a separate h/w block from the switch.
> Depends on the definition of "separate". If the question is: "Can I use
> the MDIO controller standalone?" The answer is yes.
> 
> On the other hand, the MDIO controller, the switch-IP, the I2C
> controller, etc. are behind the same address decoder and part of the
> same FPGA bitstream blob. And these IP blocks can be separately switched
> on and off by the FPGA build configuration, i.e. they can be compiled
> in and out.

Thank you for the more complete picture.

> Our goal is to handle the different IPs inside the FPGA by there own to
> be able to share as many driver code as we can.
> 
> > So again, "soce,swip" and "soce,swip-switch-00-04-0c-10" nodes should
> > be merged. For mdio mux, either it can be a child of the switch or
> > not in DT at all and instantiated from the switch driver.
> OK. We can do that. And the I2C controller, the interrupt controler or
> the future 507th incarnation of the D-CAN IP, which someone compiled in?
> 
> To enlighten this:
> The board we are working with is a PLC. This PLC has an extension bus.
> There are modules available for this extension bus, like analog
> IO, digital IO, power measurement, PWM, and also some communication
> modules. This bus is capable of transporting a CAN signal, so why not
> add some glue logic and a transceiver in the module? The heavy stuff
> can be done by putting a D-CAN IP in the FPGA behind the existing
> addressdecoder. Should that D-CAN IP be part of the switch?

No, those are clearly separate components from what you describe. MDIO 
is very often just part of some larger block and your register layout 
makes it seem that way here. So only knowing about switch and mdio IP 
steers us in one direction.

Plus, the MFD says it is for the 'ethernet switch core' which in no way 
sounds like it is just some generic infrastructure in your FPGA.

> Hopefully this example makes clear that we can look at our FPGA like a
> breadboard. The base part (MFD) simply contains an addressdecoder and
> some configuration space to detect what is on our breadboard. The
> "chips" on our breadboard are the different IPs, which can be
> individually used in that bitstream.
> 
> Therefore: different "chip" (IP) -> different MFD cell

Does instantiating the child devices depend on this config space? Or the 
child drivers will access the config space? I'm guessing it is the 
former because your driver only reads a version register. So can't the 
switch, mdio, d-can, etc. parent just be a simple-bus? (Lee is asking 
basically the same question.) Are there resources for the FPGA that 
need to potentially be managed? Clocks, regulators, etc.

Is what's in the config space itself fixed or discoverable? It's not 
clear what the actual config space is given it all just overlaps with 
the switch. How would you handle config space changing?

Rob
Technical Details
Message-ID: <20261202183543.GA4076212-robh@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-375999-linux-kernel-netdev=dewy.ru
References: <20261120-devel-vstrassheim-soce-dsa-ml-v5-0-5de9225715e6@linutronix.de> <20261120-devel-vstrassheim-soce-dsa-ml-v5-4-5de9225715e6@linutronix.de> <20261121-lurking-bulky-crab-b9619f@quoll> <4d56bd92d27429c3ac2cbcefac74c0327b3b3af8.camel@linutronix.de> <20261201224803.GA3882869-robh@kernel.org> <20261202112644.483fd845@mitra>

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-375999-linux-kernel-netdev=dewy.ru
From: robh@kernel.org (Rob Herring)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent
Date: Wed, 2 Dec 2026 12:35:43 -0600
Organization: Usenet Network
Message-ID: <20261202183543.GA4076212-robh@kernel.org>
References: <20261120-devel-vstrassheim-soce-dsa-ml-v5-0-5de9225715e6@linutronix.de>
 <20261120-devel-vstrassheim-soce-dsa-ml-v5-4-5de9225715e6@linutronix.de>
 <20261121-lurking-bulky-crab-b9619f@quoll>
 <4d56bd92d27429c3ac2cbcefac74c0327b3b3af8.camel@linutronix.de>
 <20261201224803.GA3882869-robh@kernel.org>
 <20261202112644.483fd845@mitra>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2031525"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VvR260ok/Xd4LjO5GFY+82FFm74= sha256:lQybAXUWTmwFHPZu590uCH2II1qsnmchlHs+Pbwaq6s=
	sha1:6ZTVw2jSHEa7ck/9J5Xm8cqBjGE= sha256:F7kaX7Jt2so6evUDD7kD6pzQaxEx73STZSYL8C4OpPc=
Content-Disposition: inline
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 019FD1176F4; Wed,  2 Dec 2026 21:36:07 +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 ZF9rbAAEpvIl;
	Wed,  2 Dec 2026 21:36:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375999-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 7486D1176E5; Wed,  2 Dec 2026 21:35:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id DE22D2E77D; Wed,  2 Dec 2026 18:35:48 +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=1796236548;
	b=XYDOfxwuYIxcFw4j4gIC7neQLi2qrje4amRVFSRJMYibycfEv/swEfsJPu9p6vmipcw+
	 3d2GWir7ATlPlUg/6uVgnVk99IJiCoz2BFGnIwy8pAEe27D1tzCIoYsjAU8NqS8PRjVlD
	 OTrKP4BSOfUadxocC6pG1D0GLp6rC+L3NUY9pYXhderwHyX0ZzV3Ra1bbM/ttAYFVa+GT
	 PFkrE8+0MHrq8rjO8QIL9i7N+ap6O3qSiT4IUCm8d3jFMzaCV4zJw/TT17SSy4EhAvYOh
	 FSB4H+5LgKF09YALEiF5ITpMHQrYLHnLljEkaUBswJQt8vV3+q1rau0Eo0jj6HeZ1gQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796236548;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=mtPR9399hCWKgXhlSlWtq0F0mIlEt1pm4QPYDDEgptI=;
	b=l9h9Lo5kvnpob4rSP0Acsu7WVmX6hGWjieBcs44lZu711rGYfNuyvZKgcWa6R7uWdcjg
	 FztuFp53e4UcHnTlP0nc7yLlVmeFLHnDJDkRen7WBmyQPD4sQm9iRnyysySkUGBoZPyZ+
	 6U4OIl8lfdULlf22EBs0PIvmBuGtxCmjWLJ76sF8K0+M6if7gMPEQ5wxjInJQvCiiiZWb
	 xF0NC2gxUGfkk8s0tdbYZPh9a1jRAkMU+jHjGzaxatNZfpYBPSbWjIV0xEBwm3W7sGMoZ
	 YTJkaVjsjNFMYGjwMm/0gWFfvShjZ3c/JgGUIvERxcvdz+/8gYN+/HTDHHXW6IHbpOg==
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=cYLQ3iBq;
	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 47B8A606A33B;
	Wed,  2 Dec 2026 18:35:48 +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=cYLQ3iBq
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=1796236547;
	b=b14R6J9aO1FOArzCy7/csSN+jUP3t8usaZZhGt0txmOEYgH04eh1PGGlDa3ghymbfLmu
	 324XotfMIvyGnMiCOygUxLGLUmHX+ki9KnRT6gmWepgyxob2m6iWxiVH7Dawdl+uGv1tD
	 AfvX6xzW+NlWGybsaEnX2B6wMshdM9HZfzMbIxUjL9A8w11nGo36GBpARRicv9tcVtw5P
	 v6B0iw7Avfo2FediivPucchQxjTVlyCoTWlZ5izAuHWM0kW4KO4ermYtQ95bMNp7uf137
	 A+Oy4OXRjOMG+hdeNFAnaZTxOGktm2+aMztYOLRj1csurqdBAncTz7OQmUl1j2Yc2zQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796236547;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=mtPR9399hCWKgXhlSlWtq0F0mIlEt1pm4QPYDDEgptI=;
	b=kjc5lI1HtHA9hArAjQCzSeqcEuFJ7w1Ly+/XcZYb/Ju85Ht08Ijq6Oj771L5p15HnzCi
	 0iQPDrjIMJgVvbgMaj/Sf+rcM2roAEg6JHdReWVEqjz3fWN9/VNAuhMbnnACPObHDqg8D
	 9t4Erl4GxEcdTdxf9UKOy0En/Xda3eltW2a1Unfktm4BElmByQhpJUB6WywRCK2XyY4cI
	 20fpGZq6dqriCwxwLksOV6fw9M05TCQVdsD0qxjtLmdSzwUQBT/JhYN0dKA7R5jRX/AR6
	 6P9wjXu3+wK52s4je2ZBj6HGqYwQ3M4MhKt21KyOY6i0Dm8DfIxu6PCHSjYqnJ4vn0w==
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=cYLQ3iBq;
	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 5C877606A69B;
	Wed,  2 Dec 2026 18:35:47 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 547FF1F0089A;
	Wed,  2 Dec 2026 18:35:46 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796236546;
	bh=mtPR9399hCWKgXhlSlWtq0F0mIlEt1pm4QPYDDEgptI=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=cYLQ3iBqRu6+LR2McLSGiKAX5sXH076JPI/kztIxCeGIFy9Xo0OnKqYB5Eb9Jn/CV
	 iOu9U6ggTJD0ywNcO/03DxCmvErY6Jf5A9/ywSweTmAL5rsljmC7+Xb5EYsLYKdmuD
	 Q39PkqtPG18OCdQzazHg58FBjHs/gu03oEBNuTPf/+zfUuzTaLShKG8hs4Q7P4zUGl
	 n49lotzdw5dA1vBw/4fQT9/4gBXqSFTmmArx04BVjImfTyeGc6GbihQU82sIIiA1DP
	 3Paz2xgZ0AuNTrryfRHQ38bJvOXQgjlEWfSthXWIyGvwHAK0knFXUWpq4ZdUy4/OJv
	 VD92ogkTzNwoA==
X-Cc: Vasilij Strassheim <v.strassheim@linutronix.de>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	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>,
	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>,
	Eric Dumazet <edumazet@kernel.org>, Lee Jones <lee@kernel.org>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org, mfd@lists.linux.dev,
	Martin Kaistra <martin.kaistra@linutronix.de>
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: <20261202112644.483fd845@mitra>