🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12147

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

#12147
From: Krzysztof Kozlowski
Date: Fri, 06 Nov 2026 11:13
105 lines
11315 bytes
On Thu, Nov 05, 2026 at 03:16:48PM +0100, Vasilij Strassheim wrote:
> Add a binding for the SoC-e SWIP multifunction FPGA IP core.
> 
> Describe the shared MMIO address space and address translation for
> the required Ethernet switch child and the optional integrated MDIO
> controller and MMIO-controlled MDIO multiplexer.
> 
> Signed-off-by: Vasilij Strassheim <v.strassheim@linutronix.de>
> ---
>  .../devicetree/bindings/mfd/soce,swip.yaml         | 137 +++++++++++++++++++++
>  1 file changed, 137 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/mfd/soce,swip.yaml b/Documentation/devicetree/bindings/mfd/soce,swip.yaml
> new file mode 100644
> index 000000000000..625be299e262
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/soce,swip.yaml
> @@ -0,0 +1,137 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/soce,swip.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SoC-e SWIP multifunction Ethernet switch FPGA IP core
> +
> +maintainers:
> +  - Vasilij Strassheim <v.strassheim@linutronix.de>
> +
> +description:
> +  SoC-e Switch IP (SWIP) cores integrate Ethernet switching logic, an
> +  MDIO controller, and an MDIO bus multiplexer in one memory-mapped device.
> +  The MDIO bus multiplexer is wired to the integrated MDIO controller.
> +
> +properties:
> +  compatible:
> +    const: soce,swip
> +
> +  reg:
> +    maxItems: 1
> +
> +  '#address-cells':
> +    const: 1
> +
> +  '#size-cells':
> +    const: 1
> +
> +  ranges: true
> +
> +  mdio@204:
> +    $ref: /schemas/net/soce,swip-mdio.yaml#
> +    unevaluatedProperties: false
> +
> +  mdio-mux@202:
> +    $ref: /schemas/net/mdio-mux-mmioreg.yaml#
> +    unevaluatedProperties: false
> +
> +  ethernet-switch:

Why are you mixing children with and without bus addresses? This is
discouraged and shows that device is not correctly represented, e.g. if
the ethernet-switch does not have resources, then THIS device is the
ethernet switch.

> +    $ref: /schemas/net/dsa/soce,swip-switch.yaml#
> +    unevaluatedProperties: false
> +
> +required:
> +  - compatible
> +  - reg
> +  - '#address-cells'
> +  - '#size-cells'
> +  - ranges
> +  - ethernet-switch
> +
> +dependentRequired:
> +  mdio-mux@202:
> +    - mdio@204
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    ethernet-switch@80020000 {
> +        compatible = "soce,swip";
> +        reg = <0x80020000 0x10000>;
> +        #address-cells = <1>;
> +        #size-cells = <1>;
> +        ranges = <0x0 0x80020000 0x10000>;
> +
> +        mdio_parent: mdio@204 {
> +            compatible = "soce,swip-mdio";
> +            reg = <0x204 0xc>, <0x200 0x2>;
> +            reg-names = "data", "control";
> +            #address-cells = <1>;
> +            #size-cells = <0>;
> +        };
> +
> +        mdio-mux@202 {

Nodes are ordered by unit address.

Best regards,
Krzysztof
Technical Details
Message-ID: <20261106-judicious-penguin-of-enhancement-b28c8b@quoll>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357946-linux-kernel-netdev=dewy.ru
References: <20261105-devel-vstrassheim-soce-dsa-ml-v4-0-02f3cde2afa1@linutronix.de> <20261105-devel-vstrassheim-soce-dsa-ml-v4-4-02f3cde2afa1@linutronix.de>

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-357946-linux-kernel-netdev=dewy.ru
From: krzk@kernel.org (Krzysztof Kozlowski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v4 4/8] dt-bindings: mfd: Add SoC-e SWIP parent
Date: Fri, 6 Nov 2026 12:13:50 +0100
Organization: Usenet Network
Message-ID: <20261106-judicious-penguin-of-enhancement-b28c8b@quoll>
References: <20261105-devel-vstrassheim-soce-dsa-ml-v4-0-02f3cde2afa1@linutronix.de>
 <20261105-devel-vstrassheim-soce-dsa-ml-v4-4-02f3cde2afa1@linutronix.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="3858560"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:XWuPLWoEd1n52wV19+4l7ZO6Rhk= sha256:9rVXwMXHtE0E8A9v+aJiJZCYo+9jELFO/fBFEkc7M8s=
	sha1:poxjmsbGOzIPyvCSaHR/nVmZQ/4= sha256:2hKBBWtzgNzjr1XwQtOi8xUx0f928V0bUIb0dJpuIZU=
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 D46C811321C; Fri,  6 Nov 2026 14:18:14 +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 i6dooEjkW82h;
	Fri,  6 Nov 2026 14:18:07 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357946-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 9B2BC113216; Fri,  6 Nov 2026 14:17:57 +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 C4BFF2E1AB; Fri,  6 Nov 2026 11:14: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=1793963640;
	b=UVcNUunKChF0tDMZ4GtSjHTlNzpJjy9xeHumgk8n0jdfvCQ4IKfiXIk5n1sRoafXdPvB
	 1TDa76LIlsPIrJnDtemUv3YW8BsZhZR70G7Qm3xlb1p3ZFo6ncbTQCnSgUApCT11OsCQT
	 erGJsZ1S9yV8oG/I85eGf9z3/JgWssQXWMcApHUCFyalEr1DLO1DjD/UfnYmtcqs5n1Po
	 CLmmYKYwKhrBuuhYZGn2ZkNO2P79yp/tIVg/CXSsXJ+SHpMV+m1dNBlFHRLKijCeeluJ6
	 6U8livptVSYUXnE1OJLWFHQWMYwBUgQWDfi6zdDL60AsoQCBmuOpb1u+KkunQHJX/SA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793963640;
	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=FPW9YYdTNv+IQvXzFfrnGgMOfUMAXGequJy/ZFKNWxE=;
	b=hiX0pmrPbW0Kl8VBN49ZQJ8JHt2Bm1264mrJG5RLYCq6b86sa/KnfYIhm3a+vOit06AA
	 NHrmn4/3IbipRs8RQ76CJgOVHHAhACShCrubJED9ZY7JQ56XbUAkVUwUIvKvoD9GlYpjX
	 GctKdh+YNHxEjf3B2hQI0XFiVTDLmekzyuE6S/ddD30NoTu6u4M1UjgFmOy83KixSLWMh
	 C+23TJIH6bjTaKtBNlXz7vlYyI3dBWVpP2yuGK9ZU+L2WCHOXY6qp6TiJ7V4PGqJkRyeu
	 k/o3Dkj+HPqmDWjczMnEULEPX8zodT3muqVyGuTpsjKyIA3l8AYHH8ubbkgfRUEWS/A==
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=UCty0Lx5;
	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 9E37B606A334;
	Fri,  6 Nov 2026 11:14:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=UCty0Lx5
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=1793963634;
	b=GG/VcVAkCd/sYB5wyJagtksnRw88N6pF951lJCxikAOHr4QuD7YmV3ydX3qDICH7Zetx
	 AHA2lhC0EWc7UdRkcm6qM5eo/CpxazRtmjljgv0nW3+51F/OQ5qVVVPDwUPHoQXvGiAnh
	 vEcEiVMZXpl1kHqiyx7SsGqSBCzMa88wAbAO3Q6JSTR+GiMAKoUSM/x2cKNrY+Aw0+7lR
	 66NZDTO5YLIc4EBYuD38SaUnVscOEKTJaZsqrklpkyBCayUm2kH6Jp+EpY/L3mup0We0u
	 dZtDTsU8LU4hZiBbJsXsEOaStf8p35iqEpXRQ5QRAz0EYBgyhIN3dwYSRA/ESukh8Vw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793963634;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=FPW9YYdTNv+IQvXzFfrnGgMOfUMAXGequJy/ZFKNWxE=;
	b=CRAJFWmNyLh/h0p+M1lItfqK0VYVoA6ivliFXGm6Gborz8E0yqMy0MRv2HVkayE2N+3D
	 6PaM8bzxX0UPHwxaPClvdZM7a+hvxb8LxWhR/8kB3wSjQsOByGtrZ2uwbK2Izlw2ULtsE
	 cJp0Jnwy61fFaXF5z5vC59djRQHwWNIXc47ADYSrZM77I/Bte2dO9ZcUPSDxmP3n3AC3+
	 hK91rjcbmH28i1FdYf5P+oj4TVnSIkuOzMZ5CoEuds1NE9EYOh7N+3/+gu3xmGm2SmA0d
	 mBRDTb2P9QwRZvgTQwG/8uyPmGXeHgEhLaGc89LzYNbTzloDgiqmWuylr5E+vkFKBLA==
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=UCty0Lx5;
	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 A144C606A32E;
	Fri,  6 Nov 2026 11:13:54 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DD841F008A2;
	Fri,  6 Nov 2026 11:13:53 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793963634;
	bh=FPW9YYdTNv+IQvXzFfrnGgMOfUMAXGequJy/ZFKNWxE=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=UCty0Lx5o5olONYrBwCIaVsiO8Ee6vuN1ogVF+XlJL+KPZCCZn4xmkabhgc4v8Zl7
	 jDjm9CxxzUioazAvPpEF2K44ed+PcGdnlV1eSp2BxKI/Dc4ZYxEDLtB+L48jhP7TT6
	 UWvdHfh9K0EKsxwkTey1TvB0V2KC+mBxuvjIkMaurbMIaUfDPys2k0YnY9NzgiabVg
	 OCHV9OLrQHsGRWTIrD3cd54YbnYq91A2hy8fs7XyOzd05SDHvN3oiWX17UUUiBMfb9
	 lPEvbP+eVBz2wnB9iVwm6jD4A644OgmNpq8zu9rT4HTp6NcpkLt5CeW3oKxi488A+m
	 KOupkyN+7YPMg==
X-Cc: Rob Herring <robh@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: <20261105-devel-vstrassheim-soce-dsa-ml-v4-4-02f3cde2afa1@linutronix.de>