🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25499

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

#25499
From: Rob Herring
Date: Tue, 01 Dec 2026 22:48
44 lines
10221 bytes
On Mon, Nov 23, 2026 at 06:59:48PM +0100, Vasilij Strassheim wrote:
> On Sat, 2026-11-21 at 11:19 +0100, Krzysztof Kozlowski wrote:
> > On Fri, Nov 20, 2026 at 03:52:21PM +0100, Vasilij Strassheim wrote:
> > > +examples:
> > > +  - |
> > > +    ip-core@80020000 {
> > > +        compatible = "soce,swip";
> > > +        reg = <0x80020000 0x10000>;
> > > +        ranges = <0x0 0x80020000 0x10000>;
> > > +        #address-cells = <1>;
> > > +        #size-cells = <1>;
> > > +
> > > +        ethernet-switch@0 {
> > > +            compatible = "soce,swip-switch-00-04-0c-10";
> > > +            reg = <0x0 0x10000>;
> > 
> > You have conflicting address spaces - this covers all other children -
> > which suggests this is artificial split of device nodes. Basically
> > comments from last version are valid. If some split of device nodes
> > makes your driver easier, it might be fine, but only under the
> > constraint of proper hardware representation. It's not proper hardware
> > representation anymore.
> 
> Yes, there is a conflicting address space here. I used the full IP-core
> range for the switch child as a shortcut, because the switch registers
> are interleaved with register areas belonging to other child functions.
> 
> However, that does not properly represent the hardware. Sorry for that.
> 
> 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. 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.

Rob
Technical Details
Message-ID: <20261201224803.GA3882869-robh@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375392-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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375392-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: Tue, 1 Dec 2026 16:48:03 -0600
Organization: Usenet Network
Message-ID: <20261201224803.GA3882869-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>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1836155"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Lm5o1vHeuqIFuiGt2hsWz/2yja8= sha256:0onQXsEKnpCn1C6VQ75KrZVeKb7wHlScpiYGsu7xyXg=
	sha1:seVJVGcwyuHceJpu4MxSpgqTbAc= sha256:rlaCg54WvgB7kCjinYXInp1Kn1AE4WXu2LcaWl7fOBs=
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 C73641174C9; Wed,  2 Dec 2026 01:48:28 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[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 gjK4kKJTxsFI;
	Wed,  2 Dec 2026 01:48:25 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375392-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 0A56E11747B; Wed,  2 Dec 2026 01:48:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 3F5EA298C4; Tue,  1 Dec 2026 22:48:12 +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=1796165291;
	b=E1OhY0fuaiSbTtZnbvAMwApELElm73iU7ehHL2Q01Ly9doi0r59VC4HHeEbXomQqdsXQ
	 7/R5mLsPUFlhHoelBfy+v38chyU7ZG/Hz6lOpA3DAWhd0NrTHJmoF8POefjrjDblZwjtE
	 zK0dC6Iu7Bf5vUIij2RPvbSNjqxMgcey4iDwm1upmOH8+5ZQg5sWT06M2S+iOSXDKjftM
	 MM9y7Ksy0XZHIFwsql2VmOIBrP+0gSyhBNUmbFuYk3RX4Hz+9JVfXHcWEBi8F+wvDBDMy
	 3WHEKtdTpx48qiktB/hprB0nz6NzZzo87aSxA3m2qH+BD1DNzLAjRtKraSdnlVlDTlw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796165291;
	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=hoBa6LR9GIZcIr0OmzJK+i1iIpu9sIMzb9IfsE9IrvA=;
	b=cv2QJQtMlKJUFHs2sb76XdXhoUVht9FROABu1nCzpkE9fuqQbzbLV1bcwxJ0QMsvTggv
	 opJeK+mtADb8hdjn55xYYpaCOjQsBURvhh3b01aOgpRnTfE5Zz4L+UqQb+FYtJ7Vf/s/C
	 Lm3GHd/Yqd9vfjrz10tqXK3vtrV6ygc9L0J4bfdHwlAHXrbFVkcAG96xg1unMN8/ytqhB
	 Z9uiZYbBDZWYSXyVkroHJ9BobVUtv6jH33BlS4MNp6dwX6vF6mp3X6dOwH+rRuHU0i2m7
	 MyxqhKBt2/B3P9k9MNHgQD8pih8DP4158yPXaMxPMcERtPdnqMpK4CHLs6u5rsdRK8Q==
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=RhlOmHSX;
	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 30305606A332;
	Tue,  1 Dec 2026 22:48:11 +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=RhlOmHSX
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=1796165290;
	b=fZomGB6/2q3n5Px0pe+MsfULZRLGkp/isze+zsNHyCN4q8bRef0y0X7znUCJDg5DCKdx
	 hcX31FXT5CnfOnYCLpDhU8zdxklVVt4kKN13PiC9AZsWqq9BJ0dduQSDSIeCMojfjyvUy
	 pwPrZBNV9DPKUPSsWNmUEnX/CTBN5ZRoBimGshzVcMz8UkcamNOV/dQlxZkPBdg7VrNDW
	 yGKnXGGtkAHTw3wPaerZWXzI0ISesZDvCXXgNK2pHd/mXVT/7nXgVNnOp8l0dr7zOZRbm
	 kr9GZZoi+1ha49+wrwmoOPxLh3WB7QjEuWlRfH1EA9qs2VW88e7zCJ+JNm5NFuDAIyA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796165290;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=hoBa6LR9GIZcIr0OmzJK+i1iIpu9sIMzb9IfsE9IrvA=;
	b=EZlg+iUDy1iHXBRWwMCZhorSQ4C+9vlNfiNLEEkaIQ8R3dR4Rn/HHGDUvYHt3FhLZ04F
	 bJSTkYDbo1rWWnk9KjrfXSiXiERvUAmjOaZdtaW1DkiDvosXCkS9ncd/fjuwUKHHA3q8d
	 nQqPAO8GGeB9cxBN6LKARVZNwVMfaWpW9aEdXSVS7nzVUyYZYczBu5H7qW/DWzUu1tfKE
	 FMNCN0wSbvZcsmWHTCaVQN9/rDzqPVzPk5j4633v0x5SwsPTO1g1i1nxnjKX7bqthjrMC
	 fhjGhi+8e1ODGhlFyGgrMTgE6Aw2iqoDpL0a8l/CNW6bzKIrA3AlRav3tT/rgnwkk8g==
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=RhlOmHSX;
	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 4D83C606A31A;
	Tue,  1 Dec 2026 22:48:10 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A93601F00893;
	Tue,  1 Dec 2026 22:48:09 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796165289;
	bh=hoBa6LR9GIZcIr0OmzJK+i1iIpu9sIMzb9IfsE9IrvA=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=RhlOmHSXrOFGY5sPkQjFnlsiW3sFH+BYU5htgW+rBPtRHirAnwZfrwAgid950zyQB
	 8uxIdjkxfBtwdav0haMFIqlYTx2VJkvqONcenpFVf41nRA2ztp8x685Q4Kofdd8XXx
	 n38qlXv+nQJ2qnd2W6i987hbq5+9DOqzSGdUQ1Fl6NlpNv9959E6di20L1yCB+wyzb
	 BGTqABbzdfphZYfeSInFTLD4/ON6V2uDGrUnblhMHI+rB4HACfT2eoEsNkEVDlLP1I
	 FkT8WNI+AZc7fUwFbi2IhAzgKcS8fohymf7wa62j4xQG6DUpeJUsjmX/sbVmWXkYRq
	 7Qh2DXZ8UR+4w==
X-Cc: 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>,
	Benedikt Spranger <b.spranger@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: <4d56bd92d27429c3ac2cbcefac74c0327b3b3af8.camel@linutronix.de>