🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25735

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

#25735
From: Benedikt Spranger
Date: Wed, 02 Dec 2026 10:26
53 lines
12445 bytes
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.

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?

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

If that is not the intended view on how to deal with this kind of
hardware devices, please let us know.

Regards
    Benedikt Spranger
Technical Details
Message-ID: <20261202112644.483fd845@mitra>
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-375719-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>

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-375719-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: Wed, 2 Dec 2026 11:26:44 +0100
Organization: Usenet Network
Message-ID: <20261202112644.483fd845@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>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1948025"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GL/VKszMLmORWy8Bj6GEYtD5SAI= sha256:EKdexX8ZkC0+QpW+MidO7G59Dn3xg8XkjHwcLkA3B4I=
	sha1:Vy9GWsrvMpd7+SvpoQKWn3U9SWU= sha256:guoJMdlPMOIb+XrKrrPcPkRKNBbatzDK5mndXyRwHhY=
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 51E5A1175F7; Wed,  2 Dec 2026 13:27:20 +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=KEeaYU14; dkim=neutral
	reason="invalid (unsupported algorithm ed25519-sha256)"
	header.d=linutronix.de header.b=4/p1hiNS
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 XvtizFXBDX2H;
	Wed,  2 Dec 2026 13:27:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375719-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 B020A11759C; Wed,  2 Dec 2026 13:27:02 +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 4B95F3454F; Wed,  2 Dec 2026 10:27:00 +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=1796207219;
	b=VzwX3ixbt+Ye4jstWIN2Zirej0umR8jGjaXwP4AtbIkOWr2E7JJMJcSA9GeUQgFj0xsj
	 zRmNjH9o/PpsBYM3FkNPn06WKJI4RfGYGowh1UdBaEaEd+K99QHcHCCdyL2A+p1es+lJS
	 pGEQRbUeJedZpl9CSCig+3Ar7YxBJM4e6qA5qkpZmarfeQriN/6D9Oy1Nola70FAHW43k
	 MmRSSVKdtM+b72v7YNrMcisWcEX0+FrM9YCKpg0GxHVGE60rZ7K+CBgejxkklmYDlqIUs
	 FqgRgUtxHqRYBpIiz4UQaPO9f4RVn+sWgKOVZtfKp3553nHlo7Jwl8vccoeWAIGeNxQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796207219;
	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=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=;
	b=Di7mHG2SVZkB9YQw9U1daN7++F7Y6JBo+X3hwoyWxTTLRcoYIytaQ/jgB5NvRT/LP8gG
	 xgmcuTC0LNSvwEHXglBIE3bdwsWNNVfauD2En7twEymvHdVDytwXxdjXms0Yu5pKI9UYH
	 pcveyW0EcNvDrfWDB/vOrkftKQn9Y8XJGJv/VG6w3aiJOcFzff7LxAemU2u57EGmco0kE
	 UuUd+grYMFJRDXewYZTqs9mnz1fVcYKld9tCQv+WqmEMBjhjp/duHOJNW5KHbCvysz7Dx
	 nOu/OyqabzA3h0VpGVYsw+Gv37RSxouo5krTev5SnvKsIvI7Aau/9c35+PsaoK/h5YQ==
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=KEeaYU14;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="4/p1hiNS";
	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 C642A606A330;
	Wed,  2 Dec 2026 10:26:59 +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=KEeaYU14;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=4/p1hiNS
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=1796207209;
	b=M+pcz9GU9YI6jMruXfiPFuEayKNij25rVNA7C9Se0A04UdE3btP14ARCqiwIQ7A+MBRB
	 oAblSSCjNDthafUE3X+SW83etcAZNS5kUmqe2ok8yOrIS+XQetjOp8MPxpVKFRnaQcHzx
	 IYytbNTWGccnvJ3Q8JeZRpAT3pPZfvIlYYTkMgHDQ88Sczppdpe5HXZpeN1PfioDAc3WW
	 kH9Gq40f8NgH7qYIPVuQD4KNwr7FAYGQIhsUUHogyVsHFFdb2E8IfgmeHPeaHLqDtyfcj
	 j+/iI+CqOMReMwMjpXfJ39j4fUrfilHzvwnC2qGj/yJd0WJtuonM4ypU/qWPCOtAPXQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796207209;
	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=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=;
	b=sp5kMWPDogBDTMcx3ljf/X5cKYAM9IVZ9tkqJQ3zePlnCGiW2aJq+izHwSf8NN6754VX
	 ZeTmzz4N7jEnBQ6nx3eMbKHVmZZnHhvPqfg4NcnsLcjkIR0Js9rf8ueoO987m7R2Zjb2g
	 XVxHWDA3vpIMwVjwKEBVM0uwEQq6/cweHDnSp8r3LQP82exda5ieHMNJ3mw4QziEZIRAM
	 B8ox1ZOQ0tSygsQOVkUQFbFlO130UYxt/uI2w650Vp2ROn1z3NGv6hnk7BwvH1qcjNFbt
	 h3y04iNFOvK40n77Ors3ltYnNggqdWQOXfTKgQfPA3YuTtF/YLkXKjJmv9T9MYfLScw==
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=KEeaYU14;
	dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b="4/p1hiNS";
	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 62D2F606A322;
	Wed,  2 Dec 2026 10:26:48 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 62D2F606A322
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=1796207205;
	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=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=;
	b=KEeaYU14H2BJr8TU9bZKgwNpv/vv0ysUpqglXQ3Z8PByyAWY+znlIS7BIKSfzO6fNX2N03
	PWDrb+sa3XFeVxLX7jG3D31AChpoQKa+UrMHciKxwIxYejaEczCwQyS6XgcjQDh/eEJli1
	sDS6m5WsPTIh90gihmNLbS9KJc7JJ7paT/FuMfS40y6LptEzqsfOC/aELa2n4CBncVpdLr
	d8Pvg2NxXn3aHLdQf6jLcWJnGTuwGBdMcltfJcv6uRjOgmm5aB4PaSSWVWcgRltLH11BdF
	JnNX8vmvI9Ic8pQWBMANMBJfIox6pGIOV3h8GGPZm8vgkANBfOp07Zgd5mdTaA==
X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de;
	s=2020e; t=1796207205;
	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=odtDkPPK7b6RZZnrPLVWGzUAY5P3mY4m3lU9XPKv+6o=;
	b=4/p1hiNSMrrYhziVSZ8uDXaoGCXXCoOiarCzltYuvYps5Z5v74PHABz4pdOBoA0YnJ0lKY
	ByHWNnF35VbRSJAg==
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: <20261201224803.GA3882869-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