From patchwork Thu Jul 11 18:20:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13731004 X-Patchwork-Delegate: kuba@kernel.org Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010066.outbound.protection.outlook.com [52.101.69.66]) (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 CC4E016EB76; Thu, 11 Jul 2024 18:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720722031; cv=fail; b=i83mBsqt26yKKq/6s/6linJ+1oIIQNU4Jboa57uTr/pWXbSzaAilEGgkYhPlWS1jKiwKY5zGNtBKht8FhBtHGUsBnPbl6tsKZpL4digl6ni+k8f+lmAjSvDtpcoyoWdnZ+XN3D5NTNkBLP0xkjSIDwcirOrIU+dsxPOVoTYUiAA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720722031; c=relaxed/simple; bh=mT15hObaWTwSv2SHLwwESm2lVFZ3gRWzH0sKOD9wxi0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=eiePskgziBX6Nc8ZNcuT9VEzcMtf4uikz8DUA2F42DAKaQdw+MOizbfTUdrp+n3bs9+kwjph2Wnd8wyI1DMNi3lDyHlBFZxr/yL7NNhz9tR6eSER8tPwsbEAPQZRpRuEmZco8KDMCLDo7VRS9veL+upDTgkfS3aeFNr/VQnZ2qU= 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=azdNNwKg; arc=fail smtp.client-ip=52.101.69.66 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 (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="azdNNwKg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qUxroqSqq7/eYiX4lhORIv/sY89uQBxFAICXSzp08Isorvzp8N5tIyDwYCP+HOg9ntA2qVAHIKNxTnt/h6HoMHRwTLD/ctOKuSEN6IvXBSL5MxonSY+gVmCJvTVRz8r0ysxUPv4xX1VLllKyvswgk/oIz6GgwXHjT+1ym7oFF5YdxFdlD/Ps1P5UlJo18MPdAxHkiZEq2KPVcJPX3HzmBynIUQxgnTrGKlVLiDKaCz8mv72PrD+jAYUdE7JXZDBAmhjAD4qSA7HMKbVkFdmdOWxlce3dp0ZzOh4B99C9T3WLfZLZBSZHsapNIj3EUxZvM2UW5jJBM25anX/DwNGJLw== 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=gbkVXBQxQVjnfM11TBjBsHzyJzL0huUuh+g/T+f4+Tw=; b=p0va/SeJQORm6tLb1bM4Go3fiQ4+zq9uN6LxqoCpdSPguEYfzjRIVRnUCUhqnokSl0+bGB/Sey/6hvKZInqjCA8lhdJ49J4kATq4l/Rv715/W3P7d/+62d9gdPwutWXrCBKrIImWV4JJ0riZ5nSQHtNTGtGZD2IQuSDatyeSZhqco04Z8EzlGQfwnKyR2IUWWLJwexmKFQVvgC4VYuiPPjiNRrIYfyOPBOe0WhGSPMzLTIQ3g6UwJXjNmGMp3DFyobYJIn2U+wSsaZxaaicw5kIvO0yUIbbJ/ARquLFQYEvVm1Iij8WwUQIJ+/3wv42xDpDeHM1nskWp+lHilvBhmw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gbkVXBQxQVjnfM11TBjBsHzyJzL0huUuh+g/T+f4+Tw=; b=azdNNwKgxYGdP1IcdejAdqvIDAL9gxP3CsMEzeEMFI+Ulxtcq21FdfrUX5Gzrvrs+2KGH4mBh4Akwkzr6Pmv+gaFgk/pKimWvic3LdG5An7sxO7wD62JZtyYkqkSHNh3TjXZn3upNC1xah0lb44DIDIOsd1SHBLYG0UfB7OGDyA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DBBPR04MB7514.eurprd04.prod.outlook.com (2603:10a6:10:1f7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23; Thu, 11 Jul 2024 18:20:27 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7741.033; Thu, 11 Jul 2024 18:20:27 +0000 From: Frank Li Date: Thu, 11 Jul 2024 14:20:01 -0400 Subject: [PATCH 2/4] can: flexcan: Add S32V234 support to FlexCAN driver Message-Id: <20240711-flexcan-v1-2-d5210ec0a34b@nxp.com> References: <20240711-flexcan-v1-0-d5210ec0a34b@nxp.com> In-Reply-To: <20240711-flexcan-v1-0-d5210ec0a34b@nxp.com> To: Marc Kleine-Budde , Vincent Mailhol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, haibo.chen@nxp.com, imx@lists.linux.dev, han.xu@nxp.com, Frank Li , Chircu-Mare Bogdan-Petru , Dan Nica , Stefan-Gabriel Mirea , Li Yang , Joakim Zhang , Leonard Crestez X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720722012; l=1628; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=80mv/LETBsFOYeyZH+dmpgodqlmtmDmGuf9twFeH9aU=; b=zHS3VlsJVO/eQoaz5sClQ2jZ3NchcruAtQNcFoDfZ9Aug6CpBW+nWqgoGQ9LAmCmEAa1c69Hm dHYZILbIc+SCquJjzIZ70jVgjdvISIQ9Et+hbWavlxWLh0wsQnGz6fv X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0134.namprd05.prod.outlook.com (2603:10b6:a03:33d::19) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) 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: PAXPR04MB9642:EE_|DBBPR04MB7514:EE_ X-MS-Office365-Filtering-Correlation-Id: e5acb9d0-6962-4fdf-d389-08dca1d62360 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|52116014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ByyhjKbuE2z9fok21KyDIifpsHiPfPO?= =?utf-8?q?omggC8hUrtfB/bMWh2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PQpVq+ikgSeyTthP+yRol98QtaQmP+f7XwDJ39ObKwRGO9oo?= =?utf-8?q?cBcbpWK7R3F+8MPAvAmD/H3H9hiJa+Ksg1p5zkqYmAheQ3Ar3h+E22aOGb35ciAKe?= =?utf-8?q?M0NOdYUbbfYwsAw/jM+Xf2BxoxvD8SvJCWaGi0mTf0xtZ8lhwTGFWRlAcyKo4JGDC?= =?utf-8?q?EKQe8vJlhHPCxqOoAxMUrIJ59aJ93zvkyy2G49NSkvcn74D6OfmWzeK3PlTnnnrbC?= =?utf-8?q?iyVISgzVRXFTN5ovmmwnvguPs9j2DtHfXOFvMO4jLTLH/RhhuOIr6fXtbvUbRH+rF?= =?utf-8?q?02JCAz+Ig0jbeyqBJKStTIXJCNxY5azMygzzZWp2L5TrQyVEWi+lJVBB6PC4TQr6W?= =?utf-8?q?WrfRgNa3waDzF+gUBjY4GSng/HgfucAg1ab8MrH5X3soIZFhm1AAt1vO5Go9N0oXf?= =?utf-8?q?sL/Rizpyee3RWO/Dr+qeNjdI9Q+b08UchQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?cJdEmg5PtNOSte2I8KmJmAvPWMKW?= =?utf-8?q?YS7Rde8JOrUSbkXuhxGYE+uF5UyQqwr4xickf151Fz8kLPXDSQMIlMRBbCyAYuRBP?= =?utf-8?q?aI3HVZ4D1v3f+iPb83Ba/+3j6QQXUN1CIFXZmn5L48kQMvXKDsSYQfmWJ5/zDEcUR?= =?utf-8?q?I5/MLp3FbsWmEHn/xJbHyXa4B6QbnrjtT+YVGeIxOIJ7theoivJVesMHS557UCkCC?= =?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TiH69?= =?utf-8?q?EryXtlIOeKKfaZytrSRNexlZIBoQ6SXXf9R1X6LPzu7K+6qbrUC5WgikOzP5fpISS?= =?utf-8?q?uL85Pi4c6lGSQoorqtCDMFdaWwXYJrLq9hIoa7RjT8G+lWEHl401ASHL4WPmDOZl7?= =?utf-8?q?+IQILth/xTCv1hunYIiJPDtmsQYbSL5fOj10MHS9uUkKw5EFQL/XjDxNiyucZ4GWh?= =?utf-8?q?RjZn27Ua8hqQ/jTINZ6IIsXx19tCj2CUhzcEmUM6kKA5W9V3j6HwGUnKsOFnwgt0I?= =?utf-8?q?ydYAOIY8JubFv4YJ179zUzhylR/g1HH7vDbzCzwRdjBY4Ev1nFla7cXZoZ+ZjR2Db?= =?utf-8?q?+RFDX0tiq4bcE+Tr8dy2uANW5wciffjWPWKcqRBFbzpS5CyibexUGd5h/Qdb2FE+a?= =?utf-8?q?GZ7uZKrTBDwpVIowp5WAGvjfcvVujQL0Vg8MEyPqa/H8R2DDLir7gqO3XYodU/H5R?= =?utf-8?q?hVHPldMiOvD4?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5acb9d0-6962-4fdf-d389-08dca1d62360 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2024 18:20:26.9696 (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: XMb4xltugaV1kTQ//UnR/JIPoXOiP5ZiU6xO4gYAfTpWqYvD6EUgd70NnQ54iGOLa8aB5deZCVR3PejjJZip1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7514 X-Patchwork-Delegate: kuba@kernel.org From: Chircu-Mare Bogdan-Petru Add flexcan support for S32V234. Signed-off-by: Chircu-Mare Bogdan-Petru Signed-off-by: Dan Nica Signed-off-by: Stefan-Gabriel Mirea Reviewed-by: Li Yang Reviewed-by: Joakim Zhang Reviewed-by: Leonard Crestez Signed-off-by: Frank Li --- drivers/net/can/flexcan/flexcan-core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/can/flexcan/flexcan-core.c b/drivers/net/can/flexcan/flexcan-core.c index 8ea7f2795551b..f6e609c388d55 100644 --- a/drivers/net/can/flexcan/flexcan-core.c +++ b/drivers/net/can/flexcan/flexcan-core.c @@ -378,6 +378,10 @@ static const struct flexcan_devtype_data fsl_lx2160a_r1_devtype_data = { FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR, }; +static struct flexcan_devtype_data fsl_s32v234_devtype_data = { + .quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_DISABLE_MECR, +}; + static const struct can_bittiming_const flexcan_bittiming_const = { .name = DRV_NAME, .tseg1_min = 4, @@ -2018,6 +2022,7 @@ static const struct of_device_id flexcan_of_match[] = { { .compatible = "fsl,vf610-flexcan", .data = &fsl_vf610_devtype_data, }, { .compatible = "fsl,ls1021ar2-flexcan", .data = &fsl_ls1021a_r2_devtype_data, }, { .compatible = "fsl,lx2160ar1-flexcan", .data = &fsl_lx2160a_r1_devtype_data, }, + { .compatible = "fsl,s32v234-flexcan", .data = &fsl_s32v234_devtype_data, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, flexcan_of_match);