Article View: linux.kernel.netdev
Article #26401Re: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent
From: Benedikt Spranger
Date: Thu, 03 Dec 2026 13:27
Date: Thu, 03 Dec 2026 13:27
84 lines
14138 bytes
14138 bytes
On Wed, 2 Dec 2026 12:35:43 -0600
Rob Herring <robh@kernel.org> wrote:
> 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:
> > 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.
Vasilij mentioned the different IPs and I thought it was clear enough.
That's our fault...
> 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.
Here the things start to become *REALLY* messy:
The Switch IP itself is a shell. It contains different IPs:
The switch itself, an interrupt controller, the MDIO controller, the
MDIO mux, an I2C controller, and so on.
Some of these IP blocks need a runtime license to be enabled. The
license management is dealt in hardware, so no interaction is needed by
the linux driver. But to handle these IPs by a driver, we need to
enable/disable parts of the device tree at runtime. MFD cells are handy
here.
And there are variants. What makes it hard to handle is, that these
variants share same IPs on different addresses or even worse use the
same registers with different layout. Vasilij is working on that
(regmap). And there are PCIe cards with this switch...
> > 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?
Yes. In the config space (a RO register space) are information stored
about what IPs are available and unsable. BUT thre are also
informations whitch are needed by the individual drivers.
> Or the child drivers will access the config space?
As described above: Both need access.
> 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.
For now: yes. But we have to handle the variants and runtime license
stuff. With that in mind I am not shure.
> 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?
For now we are not talking about runtime reload or reconfiguration of
the FPGA. Therfore the config space is fixed during runtime.
Regards
Bene
Technical Details
Message-ID:
<20261203142727.00b19361@mitra>Path:
mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376631-linux-kernel-netdev=dewy.ruReferences:
<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> <20261202183543.GA4076212-robh@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376631-linux-kernel-netdev=dewy.ru From: b.spranger@linutronix.de (Benedikt Spranger) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 4/9] dt-bindings: mfd: Add SoC-e SWIP parent Date: Thu, 3 Dec 2026 14:27:27 +0100 Organization: Usenet Network Message-ID: <20261203142727.00b19361@mitra> 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> <20261202183543.GA4076212-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2501837"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:COhJIU1sxN4Dy/pO6j+k5C9Dt34= sha256:i6LbG4QHrKkRFCNUAmC69/4GU5pl3vXNfnCWwVxFKNQ= sha1:yplpwNDueLucxtY4LtDgt5qUJFw= sha256:3JK+ZwKu2FmDI+Vn5eF65UlJnvvPqVg6n7eZQBIjB6k= 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 C86EE117960; Thu, 3 Dec 2026 16:27:57 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.299 X-Spam-Status: No, score=-3.299 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.001, 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=KK8Aa7F5; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=cX8JcVQB 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 uul1YcLIuq3q; Thu, 3 Dec 2026 16:27:55 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376631-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id AE093117942; Thu, 3 Dec 2026 16:27:40 +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 492C52CCED; Thu, 3 Dec 2026 13:27:33 +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=1796304453; b=cdSEk5yPCZYkiy5ZeAEvO+tnjC8aAbI+Poa+ocEq7JP1ZmTYCKxABcEy39nIHhtt+BXu sfb7U9yMrpvHvlWAp7vkWYqtZuTyKiVQ3YY7g/Rz9aLgvlIlrx+a5R0dBS6wcWEp25j3h YOG7LI1ctfkFJJeHCOTK1L8ORAibSHwC2LC0TFPCpbFIju/SqixND8SpT8hcY/oGzyVbH TVxauVBaAwtCaW9C9sL89/lwoIKxVpuj73FQ/l3ztYYBH+X3Im12pHLrRZALsej4DdZpe 3uiZ4rJMgM4u+uNqO8ry3kuaqF2alaE2Nbx/+TQJeJF9A6u+gve90NmrbxnZmR9xGhQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796304453; h=X-Original-To:Received:DMARC-Filter:Date:DKIM-Signature: DKIM-Signature:From:To:Cc:Subject:Message-ID:In-Reply-To:References: Organization:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=RKV3QJpLr37TlPvoIP8yWXJlmrM5xdmBATQX3PC/Kt0=; b=FturX+AVtHmsK/IdYyAaWzP1p4Oa5oAnC5xlIicLNuddfs1KOpDtDRW75z5AU/zX7ryF Gk4Xl519m4VYpMGMRBuZwQJI4y/bzaKE7Y2Iuh/XSbZLDn82H6iE1Y1DVcnPT2nbt4j/e c+uJAohNm5lziFfjOYI3FGOuGQo4KrFWWDnUWC9kO8zEjZZiUK7ikMpi5fmsxChh3Eryv IZz+V6VGkr4HbKqJNAqPBvNBlJmJgk+NbfGf58HkQX40uGSxPbW+jBhDEEWJl5+XW5g2s dI8BbzFCsaTCy7iwT9nCQqIZBuw/sRcDBH71hfQHVI9ZxM0XP6i42zBiXBRouFkBLDg== 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=KK8Aa7F5; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=cX8JcVQB; 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 02C0C606A336; Thu, 3 Dec 2026 13:27:33 +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=KK8Aa7F5; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=cX8JcVQB 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=1796304452; b=IjSjR01/i/5L/4/uvfV5+wvNJ+Lzbbzpr0X1HGQCrdGnt0nRKY6KvTsvAdA/3r/mRUhu lkORCQvw+MLTyn5GhE0aFs5QJHFp08GgnzOkf1KaNJLtOfTlzRawcq/R5M4uNqvcz3wbo mkBTer9UAp10DMWPHVpVtxbppABuof8jxcMygIHqCdf4gxzVTfDIGnfQy9vAk6jqaNNH4 WhrskOOvFSyg3OqoMt3riwv1s0/f7zP8TR3rWjTcOdMG/P39JxaWnYoVUor7SblcXEC9X GSba3BHBzMFVQ91jtonRJjIZI7Sq4duQt6O88g/Zub6VKiqA9Sgnk1JUw5P6P6qz0HA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796304452; h=DMARC-Filter:Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject: Message-ID:In-Reply-To:References:Organization:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=RKV3QJpLr37TlPvoIP8yWXJlmrM5xdmBATQX3PC/Kt0=; b=UKpiQVWx6q4ocNMInLq4FrIFgPz31WLFv9BJhK9M/sDcIYp33YPDCZZIpzZrcB1phj3K 1DbjUWM5Aw+yXt5Eh1CWNlLLq8TagP1kcwM3cJfLOBhCeaXYM9GeVqEzK3yJYA8mW+bxA v3/6Q88CTSuoJ2M/K1PYZVdSGMunG5uc7sM/5Ipzae8k8mX+dPO6S2yLM72KbQKFAzMgv v+Hk96WS4fhJD6DNE8jIqTwr6g0Gp80ab1Z7wcMULUnBs1OBfHcHE+JjG5xa8KDh1qnba sdEtyLyUAUAJNMSzBp3Tyv5NYnZBth5qDCpo/m1zgfVRQ4To/HCPezLhQFI/L3fNbSw== 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=KK8Aa7F5; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=cX8JcVQB; 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 964C6606A33E; Thu, 3 Dec 2026 13:27:31 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 964C6606A33E 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=1796304449; 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=RKV3QJpLr37TlPvoIP8yWXJlmrM5xdmBATQX3PC/Kt0=; b=KK8Aa7F5RYC1a0x4a+ftYwbH0XVowPsH2si0gOktzVqXk4i2TSco7JVJbEVl0rPZ3TRjGw 1BJN+YBWNIrrAmMieIzQbF60tsya11HS904FafRoQzLVxC1BHBS7QmOW7W2OY19B+e3nHx gk4QKR86AnbwcZM/ssZBofuoBr+2BtUYP7PWYEj8g/hAJgCBWSHP6mRLkY+kIk5uuHPSyG sdIvidjJCZixURNcrLv99O5XcJyrYPQCxX5PGFvpB7BQ4Drc9AjNhRMyLmDPs3gjBgvtMT k6vaivzXzQeQpT+CZ/CoMd2uzo5ShfSWr2OMASLSKbhY48arwDc5WWeTolGOGg== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796304449; 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=RKV3QJpLr37TlPvoIP8yWXJlmrM5xdmBATQX3PC/Kt0=; b=cX8JcVQBd6HO3rL0P6+AKhfaKnW/MU5iwSPNhG/dWBv3Wa02KUtORry466eOv6OTckJIFM JeTlUnW2st9IlkAQ== 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-In-Reply-To: <20261202183543.GA4076212-robh@kernel.org> X-Organization: Linutronix GmbH 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