From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazon11013053.outbound.protection.outlook.com [40.107.162.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E47A232A3FE; Thu, 30 Apr 2026 02:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.162.53 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777517261; cv=fail; b=rWbJt1kkbDEHkSMZHRZEXNc08ZzMYkTaUtR+xElAJKQEnGmxxjqbfzMT4XZ6CUqQeOL89O2IaCk4mgKbdMivn52/pSjVJhhXzQvUJirdgiaIUOCrA7LaxkzBONRQqjSpsL1kKW+feBCvIfu0RXpn1TJ/Q8CZ6EtVP+N9PbKwnKk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777517261; c=relaxed/simple; bh=pcOKlw5ZUbtzqrsnYNw4HY1N8gTC0BgAZRWGPx9Kpj0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=bwxugjFPqRNipXJ9z3rz5+g7ytMIl+yaSAYKztSuQfqNvfUsP1jHit/b2+rIFxLeghh+0zi4VcB4/8Q/fxnh9yTyX73LWinMNZAOXycOEketcED1jRN/1NV5w6aoVVMFfBGeuB2+/by2CUf/rxzcoybIyTHFKQRlboTr1M3TqIw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=kZ6/J8/5; arc=fail smtp.client-ip=40.107.162.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="kZ6/J8/5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CZ8R4fuIuuU3IEcJLJG4Xj8TRDtmxrkpFxG9eKlbjOMiv2QehuJ32eOAAtY63aEDkqTVmJFladF/LGd6WK3foxXO0Wy14htuSBFksW6bvdp6foqr8u7wucgfTduVPhinxUU+iBE7D4pfm87V7RTBG0asXn9CS3Pk4Jcr1h4KaC7w//CHPDI9gl2zG7X1lcUeMXjyJM810QU3O+eiy3AAx+YLsRT04vcRsskti8pyfopf0j2+kCi8mMux/hvFGEIEEp8a0WUO7J4QSp3OM9pFjB42wu6bNcopvVOrahphmPmpGsZ47qtOKj8qC7fMDYN+P2yqwN45Z/wCxeplvm0xqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=J4S3ZvU6MLtbzW4f1ysU0lB+6POh1JrbKtbGwAooYlM=; b=kCUuoQC7uJGmkI6vtuwrvsqgwEzzo3tKhYitJuTHhtWHWi9/vl4sDfYBf0lxAxkfEc+MLjccEgMcdzAqQtBbSq0g6YR+mn1YFxH1zdIdGCy8BzljzrWjm0Y3/g/W4Ng3LvsnCS+4HiZseENugNqmizEzY0T0pjJY3S4Rw/D744ezt1fbL2cfpp48h2hgffrJyjVNX+TDdIcEAcqE2i/9/Kh8EJ3Hm2Zqg8m14UfqWB54BhGenPyQS0pMseVfsnZil46DixNQ1WqoLmIWm/NQTGnLpeB3N4OQDgbSc8tRpuj2/51qM+pEFULfZf3QTCQvyBWJptpyqEUw/Ez61D5v5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J4S3ZvU6MLtbzW4f1ysU0lB+6POh1JrbKtbGwAooYlM=; b=kZ6/J8/5GqBKvpWOpvPHWy74AASMg31OPdnpXa0pKoI2K1CQ1xPQcoBeLXlDlWX6wd3IEsjWqCguE2t101EVBkKlFtkKhRn/FZ+TM+ljVxL2qljaq/hKLMOHSLB3JGRuQn1qKvfW66Qykw0efcO5KD1aQGLRq5M27d+E3AMEfrnZwNr5cACFde24DJnFt/lJem+2ORMeBo2IxfJucN1MjszJB5XV1JECYWzkQyIaY5pLwmhNjKcnBUnfsvV62EeX6H7U5ClVQTZXI4zAsLps6zAGOn+D1CNyXodjdYnkcd/rk6s1Eg0Ypl4HvqkgCh5XsdTVZW4wycLnBJK5MaYTLw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DBBPR04MB7500.eurprd04.prod.outlook.com (2603:10a6:10:1f4::16) by PAXPR04MB8608.eurprd04.prod.outlook.com (2603:10a6:102:21b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9870.18; Thu, 30 Apr 2026 02:47:37 +0000 Received: from DBBPR04MB7500.eurprd04.prod.outlook.com ([fe80::c291:543b:4bde:cee7]) by DBBPR04MB7500.eurprd04.prod.outlook.com ([fe80::c291:543b:4bde:cee7%6]) with mapi id 15.20.9870.020; Thu, 30 Apr 2026 02:47:37 +0000 From: Wei Fang To: 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, robh@kernel.org, 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 Cc: 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: [PATCH v5 net-next 02/15] dt-bindings: net: dsa: add NETC switch Date: Thu, 30 Apr 2026 10:49:32 +0800 Message-Id: <20260430024945.3413973-3-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260430024945.3413973-1-wei.fang@nxp.com> References: <20260430024945.3413973-1-wei.fang@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0133.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::13) To DBBPR04MB7500.eurprd04.prod.outlook.com (2603:10a6:10:1f4::16) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DBBPR04MB7500:EE_|PAXPR04MB8608:EE_ X-MS-Office365-Filtering-Correlation-Id: 013c84c1-939a-443a-5f9a-08dea662d6aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|19092799006|7416014|52116014|376014|38350700014|921020|56012099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: CYzK9xdxCSUnkDWtzhg/Q/GbFDyt9vYvQnqV0jUT1B+XSABuuniRFfWS3WfxsffObiGBF8C2h9dojIvkfGKZRsNspWFxPuxqM2oW/MFFBHKDtjYq8XSLzRpDdTsx38TMYoDvtIKQVfqa/IIoMKaDn48Lz7g8Duxi6+3k2O6pGDpl/FsSepeW/W8pH4duvxaqMS6k6SaQu4OkaQylyHDlPbI6W9DbyevIjEKYdLGN3iWspF8q3uRuDYOEngzHPDUl6KkDafl+gKJf39YB+Pem5WM3w4APnf8uqmYV44Gtur72TIDgOFmWyRPuPThL8vwfXb0+CpGIsaSsn9KYnUdiMWCOBhjp31pWLeMkmPJRfJRz4JmB7gWtaOkXLqO6iaVdAEe0SPVF7DEeYGcERzFs/oKcvOx/5LavK584z4k72H5+qTr0sg2Mc5x2aRC1nF2YrxhWu4x3pFQtlTGz2Xn7jfTRU9TldIn+6Oo60o1b/8fqtEdz6TTjJ9H6QQlQH8WvW10PhpqVAc0nEZkzNJMpzXcXgGcOV/6z9b8FktUt1IRtFXKr6Jsd/hG9/9+FNBt7S9ilV87hIPDCcjBMZzml1Ec4iLNQUCU2ZcLRNtwlXHvlcDQCQgQI6cnK3KuC8sYM9H9gIkpF7b2AwdwZGpBuWCQKpkVam2wFpjNeG1KtUt8vSgc7uGb63Naw6zMz7FfXR7XHUBHdl5Uz+kVXAVyry5jRAdAqxbE0hEBbO6h9IMTskWu3p848JnhbnEL0Vt9FliEXuI9GXsLAueSeKVDNaw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBBPR04MB7500.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(19092799006)(7416014)(52116014)(376014)(38350700014)(921020)(56012099003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?63zm8y68gR7GwbVyCFhiIXNYCjixGjxF6IhYlOSCkkvMbxG9YOttLOhgcY/H?= =?us-ascii?Q?hWcVX0hEZR2S1BKZb7NtALf+Fc6no3VRZh77kaa1UByg8AR2msQTh5Zk0uK6?= =?us-ascii?Q?ImbI3CuBsEL1Rr5VtyKhqagwOSCNzOOsvTJOn2yQtJq9mNeFbef+/S4Z3RM/?= =?us-ascii?Q?3szNGRJwrt04i/tr5dtP8C0nxmDB8pDD7qQvuoYG1sW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+mwr5/CCK7TpCGTL18IeDMyTCCGp/p3lCM19StOrv2TqLs9q?= =?us-ascii?Q?Ru/x7rZyueRA2Y1MVNdJlmtLO4Gz5uxgBT92r0SLyS12qkQjitSzc//fTNdV?= =?us-ascii?Q?4PIbBb3F9pL2WMZp1mC2VKvhGnGSMYntjcLCJXKw0w2IhaRPT2OD36TdA81D?= =?us-ascii?Q?0+Ce9lSwlIz5E5tFdQ3rjr853YcWy61yn7GRZJAOyIDMlv+80DMbecW8K8aR?= =?us-ascii?Q?Le55FCpV+sTkwXMEBOsYaD519lYzYrsP3HEjyTBLeSJ422+JL5viiCODM7Xp?= =?us-ascii?Q?H4PahBoVQ5KpnbHKWAe86N3bT1ruLD6Z+Lf0RsYV/pka6upFHCO+BLCr21qc?= =?us-ascii?Q?IJGQrPNEFcnzXaq2wJTcy/3qePAWKwkWeL5bLbuO4gVSWZ0E7ecNP6lNJvlM?= =?us-ascii?Q?Ts5gA7Nl7YVuNkkso0Dp71u2hBG4MKn19UAiYPswichygkynvm7kvkIKhhYQ?= =?us-ascii?Q?2PrDHdSbY2JsOpg85l7AA58ZY+ADiOzWoBYtqECC6yu6dWycIonk5C+7PbYA?= =?us-ascii?Q?fxC1co2M4l6UxeJN+KFBrVVDhVWPxUy5shDBByJo6OLjCeP3E+Msi5pD5nWj?= =?us-ascii?Q?TyZteonb+uc5Wy0mJnd1hbJJ+fCJA3zye1FNZABhCn/PauTrsP8OIxOeg5aL?= =?us-ascii?Q?5FSmlDkYvQ=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 013c84c1-939a-443a-5f9a-08dea662d6aa X-MS-Exchange-CrossTenant-AuthSource: DBBPR04MB7500.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2026 02:47:37.3125 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: r4J53Rh9vf+eDg3hrZk448vmPgOefWFkcYrQ3La6vAo31WxdQr8KBIOf7Ovo/dPMGuX+iDLaKXhIkBP37BBn1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8608 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 | 127 ++++++++++++++++++ 1 file changed, 127 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..988688bf4467 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/nxp,netc-switch.yaml @@ -0,0 +1,127 @@ +# 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. + + ethernet-ports: + type: object + patternProperties: + "^ethernet-port@[0-9a-f]$": + 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 + - ethernet-ports + +allOf: + - $ref: /schemas/pci/pci-device.yaml + - $ref: dsa.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>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + ethernet-port@0 { + reg = <0>; + phy-handle = <ðphy0>; + phy-mode = "mii"; + }; + + ethernet-port@1 { + reg = <1>; + phy-handle = <ðphy1>; + phy-mode = "mii"; + }; + + ethernet-port@2 { + reg = <2>; + clocks = <&scmi_clk 103>; + clock-names = "ref"; + phy-handle = <ðphy2>; + phy-mode = "rgmii-id"; + }; + + ethernet-port@3 { + reg = <3>; + ethernet = <&enetc3>; + phy-mode = "internal"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; + }; + }; + }; + }; -- 2.34.1