From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11012055.outbound.protection.outlook.com [52.101.66.55]) (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 993882E091D for ; Thu, 16 Oct 2025 10:42:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.55 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760611376; cv=fail; b=czc0rMRfVLudYc/ABUDW53Ufd/piFGEUgfXzNxfkZ7YklcQffg8bv1PIfURFv3agr5UPQ9unAgH/2LONJ2shSv2vZ4lTvrnvJEJewI9LXrYF4HgGf/Qi07DE7oXFsvtIFwvBLLoLgb2mslvZfKRlAh4BMBvVivUhgCjOu1kl1Tw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760611376; c=relaxed/simple; bh=eZVsjWV4JVijHP9bYcDZQpR6h6yhM8aDl5za8Wtb98A=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=XOJoeB8YJmOooMCW0NYsZGZKCgo1IcAogtlhUsWPyFoX7myj9ByIyi58miiClPnIRa4A+CG+KrtpMmZBbDtm4S/rUB/yuN1/iehnwnuTGXEkRINWwl65MZKinH4aUjDsZ3ogc0ztXhQbP+qLAFvuBRMPdUGe8vXa+JVnb2cQnec= 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=dGC8cNp3; arc=fail smtp.client-ip=52.101.66.55 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="dGC8cNp3" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pAutaRVsTJAX74NeQ6cXkPmr/Pf1UipQoyLoSFiefTp0r9sPLAW0HSS5072YAYBgeYYMOvlYKGjZt3oqzkwsActsO1Nie8zqQaOWhKXaWxzA25jHrmdOBDcYY4owu5YRJskbw99OB1rnlM1/u+jQk2XiUkj+yuitwfysvBaTGdE5XMVDJmqN1eIWv+htfV8slta0QzQG4G997qS+tcTsoUkf4QyIRmZOSKkoxVDO+swFWQxTpyIIMHpc1Nuv2O6zVsh+hFOosh1k+sH+wcz0SEQsUu1+eziErgLMjhg1YiAYMh5tDlgVHp3NswJuCRNdHTwdOOhLcd2Xm1weIbCUpQ== 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=DDQrvHqfIuFihdk0dPKHk91G5UzxIGKGfIbMbrnOpd8=; b=SEKKIhkmaUewpkh6052RTKtIBuWvSki9N9Tvg2kPUs3tvpnGh6BEwDwk04XwIpDgoxWln/3cmUzfW/fftbpDN0N3WnpWjW0cZ7aCzonVw08eR2ZFCnVGD9PVMSDdEw/S/SHcrjDHqMf+dUMms/fxZQBhFQVEeeiXnuTSug+8QZO7TJRI90rRttA+u0xgC2iUZ/dzWBRuaED0opawE6g1TxnRuwwBTsrXvPWC0OQkjeTk8WFJ5mt97f1LzD/ldRRGfjxE1iUDAFCNZcMgqDit0ylimKnbnRuJLQ6FmsHL7Y5wYDwprNZ0fScyqDKyb/dDF+IBgoeIkyv1zc/0V3JZYg== 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=DDQrvHqfIuFihdk0dPKHk91G5UzxIGKGfIbMbrnOpd8=; b=dGC8cNp3xsQCuh7HFX1aWyrdAguaalzmLcEi4+HF+j8YpnLGVcsfIH6RGG4XtI9d4uVHIAsd9wzd3Zx+smViIw2623+wfiw6rLlgcok5qJtS14vBzwxNYsf+7gWRKQd/Hh2WStdoy62+PQu2GsGtIPF/I+YtwovNQXqAvu/T3Z2a1lc+ckD5vIVEJrnjWoDI2YCcxS45xnzEl9nQJOFTTQtAr9Uf/xn3E1DmH47FgUi+FyBG424Fx5xBtym/0hwKb+VpLcL/m40Ugm+W+so3dz/ji2SfhCy4ctaRVFBkatTHLV82RqZTypj2rMMXEVNQTxVZE0T1vOmUP5v2GwVPfQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) by AM8PR04MB7361.eurprd04.prod.outlook.com (2603:10a6:20b:1d2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9203.13; Thu, 16 Oct 2025 10:42:51 +0000 Received: from PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db]) by PAXPR04MB8510.eurprd04.prod.outlook.com ([fe80::a7c2:e2fa:8e04:40db%4]) with mapi id 15.20.9228.011; Thu, 16 Oct 2025 10:42:51 +0000 From: Wei Fang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, claudiu.manoil@nxp.com, vladimir.oltean@nxp.com, xiaoning.wang@nxp.com, Frank.Li@nxp.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com Cc: imx@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH net-next 0/8] net: enetc: Add i.MX94 ENETC support Date: Thu, 16 Oct 2025 18:20:11 +0800 Message-Id: <20251016102020.3218579-1-wei.fang@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0180.apcprd01.prod.exchangelabs.com (2603:1096:4:28::36) To PAXPR04MB8510.eurprd04.prod.outlook.com (2603:10a6:102:211::7) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8510:EE_|AM8PR04MB7361:EE_ X-MS-Office365-Filtering-Correlation-Id: b59d51a8-5d02-4ceb-fd26-08de0ca0c157 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|52116014|1800799024|376014|19092799006|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sxLjBLD62PMj9aedyDDsdlDylXt7QLR4Qn16jIl0DUGR4KHNS6UwWzquv2Oa?= =?us-ascii?Q?xTRMoYG9gVwbKWdgr9kIqeSSciWOuqLJvJ4lfHDyTeXE83x60ZYLlMPgU2tf?= =?us-ascii?Q?4UYFqUu/PAIk3KMvtlMF934r8SAfQKoZ819/CXOa37Z+K1UBKXflBXLbwXmR?= =?us-ascii?Q?MBR0cM8vUg+sBWp0Hetsc1/ymHHCJhkAz4gEKCXR6xPzgVwxk0kIDguTrLm3?= =?us-ascii?Q?TlmIB8iBdGdst04H+zlSAZMLdRYOqhWukED19S5Xyr975JT0mCk8Ge9vWzAI?= =?us-ascii?Q?CSnBNCmmQ31VZMaW7ZdulwsWBF49ls9DM+HxYcfIqL0/dxAD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22YORbtPzplUo1SADSsPzEHkasHeG?= =?us-ascii?Q?0/+k2HKQ+UvvK7JJjObutAflwmtTQVDdm2s3+Doq/oYolSAinJqpwAUvxtpk?= =?us-ascii?Q?7LJbmq7Eg3PIwwv6SjTIcbXOVOqpZB/UE3cdPwQYYYXQAfc3CYUxR/RXcYEv?= =?us-ascii?Q?QnEVYt5l6p8cgLJ1Z3wwUiTiVqLCYoiwRFe2KLBirMx7NetcPrL9iMDwP4LM?= =?us-ascii?Q?jz2QPsmpEhFeTB7LtQnKS1frY6XY+xV6dXLneKyUuNErZMsi5WBFMgnDbL0H?= =?us-ascii?Q?qBsSWOdGLBmliC3qcM6pmxZ+BCHkakEa7Ymy?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8510.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(7416014)(52116014)(1800799024)(376014)(19092799006)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?v0/YQPLeIiR8gf/u6X4dN08yIO4DMzzw8j67C5gGoDmoEx/uijE2wFV7YYul?= =?us-ascii?Q?hnXRaMoO16vb8NpOwJphG4CpIZDBj79uIH9pD/+ftKWB6bcGDt11J5d1yLj8?= =?us-ascii?Q?7zbwGCqVl31csQOudiG39D8YJPrQ4fltCWEBIYtNf9OklWtXelsGCySwdIK4?= =?us-ascii?Q?7G7UxNYxo5luT6/FtwmBqBLy9Py9lj5ZFydr9Q0aDLdwjY1N8mVeJBeWzpq3?= =?us-ascii?Q?zjxu6QCPDVqr1ZJ9ullpQW15jcGJ51HfEmNEhIL0fkzMWmfvgzoZ2tWpq4Gy?= =?us-ascii?Q?ANrCM4l1rLq+nfPLFjtpNdBu0w+EXZZCf0GGmqKi8KFjtnt8uxT2oevv0/r8?= =?us-ascii?Q?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bTo1Y0N3vBoLWrxgQxmc?= =?us-ascii?Q?nJ792JWbqNwIFb9t4sEq667/h6DcvcTOIqn6KX691liDzDqDn9GO/wo2TfdU?= =?us-ascii?Q?T936qmSXKxx66YSE8z+YBUytih+sZeXLr4tDvwxBk7bGWKxykmJc7xdsUzHz?= =?us-ascii?Q?XTepmHGVMwfWUvSohHOyxbcmOM/OB49oVm2gMRrx7YXGLhnyoC0uwbLhZfZh?= =?us-ascii?Q?N3xnReNd5/YX/zyWxbMC5B/ro6oCtCkZoIIkgt93NC4eswjde0e5bEJRPRVU?= =?us-ascii?Q?lXqfFCoL355PrFCKSsAQaF2L7t9FjJU+jk53vJovvDsN8YEBHvetIb7hAXbf?= =?us-ascii?Q?O9ko1+GUXhOijiyMcgCgMgr0xo+xUvDq5N/+S/gT?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b59d51a8-5d02-4ceb-fd26-08de0ca0c157 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8510.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2025 10:42:51.3294 (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: ni1LlGVRKTfiA7VVrSeLFZpAbaELGC7aTejJkwRi5b/evzovC0CYa6CshIy+LOg0gSmDf/5wQPWK4ywKdFUIzQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7361 i.MX94 NETC has two kinds of ENETCs, one is the same as i.MX95, which can be used as a standalone network port. The other one is an internal ENETC, it connects to the CPU port of NETC switch through the pseudo MAC. Also, i.MX94 have multiple PTP Timers, which is different from i.MX95. Any PTP Timer can be bound to a specified standalone ENETC by the IERB ETBCR registers. Currently, this patch only add ENETC support and Timer support for i.MX94. The switch will be added by a separate patch set. --- Note that the DTS patch (patch 8/8) is just for referenece, it will be removed from this patch set when the dt-bindings patches have been reviewed. It will be sent for review by another thread in the future. --- Clark Wang (1): net: enetc: add ptp timer binding support for i.MX94 Wei Fang (7): dt-bindings: net: netc-blk-ctrl: add compatible string for i.MX94 platforms dt-bindings: net: enetc: add compatible string for ENETC with pseduo MAC dt-bindings: net: ethernet-controller: remove the enum values of speed net: enetc: add preliminary i.MX94 NETC blocks control support net: enetc: add basic support for the ENETC with pseudo MAC for i.MX94 net: enetc: add standalone ENETC support for i.MX94 arm64: dts: imx94: add basic NETC nodes and properties .../bindings/net/ethernet-controller.yaml | 1 - .../devicetree/bindings/net/fsl,enetc.yaml | 1 + .../bindings/net/nxp,netc-blk-ctrl.yaml | 1 + arch/arm64/boot/dts/freescale/imx94.dtsi | 118 ++++++++++ arch/arm64/boot/dts/freescale/imx943-evk.dts | 100 +++++++++ drivers/net/ethernet/freescale/enetc/enetc.c | 28 ++- drivers/net/ethernet/freescale/enetc/enetc.h | 8 + .../net/ethernet/freescale/enetc/enetc4_hw.h | 32 ++- .../net/ethernet/freescale/enetc/enetc4_pf.c | 37 ++-- .../ethernet/freescale/enetc/enetc_ethtool.c | 64 ++++++ .../net/ethernet/freescale/enetc/enetc_hw.h | 1 + .../freescale/enetc/enetc_pf_common.c | 5 +- .../ethernet/freescale/enetc/netc_blk_ctrl.c | 202 ++++++++++++++++++ 13 files changed, 574 insertions(+), 24 deletions(-) -- 2.34.1