From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39C291073CBC for ; Wed, 8 Apr 2026 13:43:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Fxn/SE4idi6R+P8P55VqxVaXio9KzyvR3eDsoiQUFGg=; b=wznKcDMQ8sNt/8OrPeGNblwjwd Rho6KgVGKuHgGkZ6U+02vTxfoKR1ZAo6sRuVWWBIv8Gb3qEXOdS0RPaQQIOj9vNjqUY3B7K3ZH2Ls 6jttYZ3BoV47aVFHVZGAWzgrXeWRsdDRGZHJ6i7M2yGhrD7Ib4/xHgUsduV/B1kdGXz05+Pno2GAA fUU1xvCGNzMUQ5OfFscGU+6bo6Wji5eF06YpPXMgszpmYgz71LHaob8Bgo7ouN6Szb9drpRnGkGBD Lk6uv7yuz4Li+/TCc62oZm3mWfO2czczD6M9yRU0zI/O8b9czCEwIakfFVbSpnlb3AuNpGznkJS9e cvSrH6Ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wATBy-00000008w0o-1mKi; Wed, 08 Apr 2026 13:43:38 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wATBv-00000008vzp-49Ac for linux-arm-kernel@lists.infradead.org; Wed, 08 Apr 2026 13:43:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id F0008403CA; Wed, 8 Apr 2026 13:43:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A10FEC19421; Wed, 8 Apr 2026 13:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775655813; bh=Jnf+ozIJ0XTw1JCMnYaJZUZHhfGsLNJN8+qXwRREUr8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mt3bC8Xe9YNXi3EsiPIIrgv1kM+5SxXDvsMb9MUTEOGB3pT07SjJYGbg9+3EoDK1j vKdq+5bCpanKobBYgd/O41JfRtzIxnnxjZ+u76vIZnvcYXJd1BCeU9JjjwYZevpHJp rCjgAuUQl1uVWtuiIKsPteMb8rQhG2JjkFSUHfqzX4mafdhXqtJFeN+XldMJd0keDJ fPcUqM25T50HfFxuR68n0h7bi9HqtKYa5jcJ43na8sX3duRMt8BmntVQPT8mwJb2Jg LGGfYOvAw8/wkpAO5CNSVSYHBvve9NR+cSpXeQ3zJwNhldH0IC4E5lq2EXOt0v3qq8 4e8sJieQoD/WA== Date: Wed, 8 Apr 2026 08:43:31 -0500 From: Rob Herring To: Wei Fang Cc: claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, xiaoning.wang@nxp.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, krzk+dt@kernel.org, conor+dt@kernel.org, f.fainelli@gmail.com, frank.li@nxp.com, chleroy@kernel.org, horms@kernel.org, linux@armlinux.org.uk, andrew@lunn.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: Re: [PATCH v4 net-next 02/14] dt-bindings: net: dsa: add NETC switch Message-ID: <20260408134331.GA1954185-robh@kernel.org> References: <20260331113025.1566878-1-wei.fang@nxp.com> <20260331113025.1566878-3-wei.fang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260331113025.1566878-3-wei.fang@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260408_064336_069885_E527C0E8 X-CRM114-Status: GOOD ( 24.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 31, 2026 at 07:30:13PM +0800, Wei Fang wrote: > Add bindings for NETC switch. This switch is a PCIe function of NETC IP, > it supports advanced QoS with 8 traffic classes and 4 drop resilience > levels, and a full range of TSN standards capabilities. The switch CPU > port connects to an internal ENETC port, which is also a PCIe function > of NETC IP. So these two ports use a light-weight "pseudo MAC" instead > of a back-to-back MAC, because the "pseudo MAC" provides the delineation > between switch and ENETC, this translates to lower power (less logic and > memory) and lower delay (as there is no serialization delay across this > link). > > Signed-off-by: Wei Fang > Reviewed-by: Frank Li > --- > .../bindings/net/dsa/nxp,netc-switch.yaml | 130 ++++++++++++++++++ > 1 file changed, 130 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/dsa/nxp,netc-switch.yaml > > diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,netc-switch.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,netc-switch.yaml > new file mode 100644 > index 000000000000..5577f3ef987f > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/dsa/nxp,netc-switch.yaml > @@ -0,0 +1,130 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/dsa/nxp,netc-switch.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NETC Switch family > + > +description: > > + The NETC presents itself as a multi-function PCIe Root Complex Integrated > + Endpoint (RCiEP) and provides full 802.1Q Ethernet switch functionality, > + advanced QoS with 8 traffic classes and 4 drop resilience levels, and a > + full range of TSN standards capabilities. > + > + The CPU port of the switch connects to an internal ENETC. The switch and > + the internal ENETC are fully integrated into the NETC IP, a back-to-back > + MAC is not required. Instead, a light-weight "pseudo MAC" provides the > + delineation between the switch and ENETC. This translates to lower power > + (less logic and memory) and lower delay (as there is no serialization > + delay across this link). > + > +maintainers: > + - Wei Fang > + > +properties: > + compatible: > + enum: > + - pci1131,eef2 > + > + reg: > + maxItems: 1 > + > + dsa,member: > + description: > > + The property indicates DSA cluster and switch index. For NETC switch, > + the valid range of the switch index is 1 ~ 7, the index is reflected > + in the switch tag as an indication of the switch ID where the frame > + originated. The value 0 is reserved for ENETC VEPA switch, whose ID > + is hardwired to zero. > + > +$ref: dsa.yaml# Move this under the 'allOf' so all $ref's are together. > + > +patternProperties: > + "^(ethernet-)?ports$": 'ethernet-ports' for new bindings. > + type: object > + additionalProperties: true > + patternProperties: > + "^(ethernet-)?port@[0-9a-f]$": And 'ethernet-port' > + type: object > + > + $ref: dsa-port.yaml# > + > + properties: > + clocks: > + items: > + - description: MAC transmit/receive reference clock. > + > + clock-names: > + items: > + - const: ref > + > + mdio: > + $ref: /schemas/net/mdio.yaml# > + unevaluatedProperties: false > + description: > + Optional child node for switch port, otherwise use NETC EMDIO. > + > + unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - dsa,member > + > +allOf: > + - $ref: /schemas/pci/pci-device.yaml > + > +unevaluatedProperties: false > + > +examples: > + - | > + pcie { > + #address-cells = <3>; > + #size-cells = <2>; > + > + ethernet-switch@0,2 { > + compatible = "pci1131,eef2"; > + reg = <0x200 0 0 0 0>; > + dsa,member = <0 1>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_switch>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + phy-handle = <ðphy0>; > + phy-mode = "mii"; > + }; > + > + port@1 { > + reg = <1>; > + phy-handle = <ðphy1>; > + phy-mode = "mii"; > + }; > + > + port@2 { > + reg = <2>; > + clocks = <&scmi_clk 103>; > + clock-names = "ref"; > + phy-handle = <ðphy2>; > + phy-mode = "rgmii-id"; > + }; > + > + port@3 { > + reg = <3>; > + ethernet = <&enetc3>; > + phy-mode = "internal"; > + > + fixed-link { > + speed = <2500>; > + full-duplex; > + pause; > + }; > + }; > + }; > + }; > + }; > -- > 2.34.1 >