Message ID | 20250113120704.522307-4-ciprianmarian.costea@oss.nxp.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2062.outbound.protection.outlook.com [40.107.22.62]) (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 7B7B022A4F8 for <imx@lists.linux.dev>; Mon, 13 Jan 2025 12:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736770044; cv=fail; b=l/f5Tfmmc6Ebxn5izp1NydeNCBwhY6aKEAtxvs37umVw5VRdc0BiBi/eXl53j7jacvcoMTRGdne/for6/adr4fxCcqzSJxv5oNQww3w3rPXXLxF9zmDQXWJ+e3jyucUPUIPjOWCRKf3tBBmfxEM2zdD+52OW78Kv8Yvp7WUVcAI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736770044; c=relaxed/simple; bh=z7sgzUHJzovVRjZcaYrA+17RJo1kqu7VsOOZWWx1Ykc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=MnxuaFfuJm9XyLJHcJ7IEJGjmVZ2bNEX0+GmIaVZs6xp5Cnzp+iYifYGqylQV/c1vqUE4MDlrVad+FE7QO+0Y5sNfxcAjyEKsH/HZjQ7PI0LJHOMRMxFTeNwX0e4vjNsV+XbqIrcdDzASW1RJZCUSSx+uzyOzw9SqJvDG6RSpnM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=Iyjn5sMF; arc=fail smtp.client-ip=40.107.22.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Iyjn5sMF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HrVKK5uNcvM/m7RKNRh/w6FEHCLW5Ag1OrANc1zN0cl80p9mWJsRqgpp15ffFRVLwmk0m0/DdqG49ZeNM89SKnQUd8vM6frIf94LQ8enBRMsM+AsIcPFfx28Uf7HnmN0uQKZcxaKPzNnna+MzwzU+lpMyjhkuKbmyChT5mxpKn9k7VxL+NtdUGT0IaBM4PmQsHJqn4ZB9pB1qrYBbzT4PAhIW+LJsvd5OJ0BWR9zqKUZMGCAHtQDVKXaIuuMtHtF4G4biOKGy3YQ/2CvNZjw61i8sNzvNZvKOyf6RM41rGx5FkpbzCY/drFWaRrITW0cBvQUS9V4nRX/WdMjW1Xxdg== 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=ifRbbYsxVD/S/XeUi1nthARbnHnUTln9zsV7Ng5LIrM=; b=ww7R7Yuavy3pyE7WfEL4eOORTIQNWqjKePkyfoVQzFXNPJOV7NlNspBw9KswU7kvQ+3AuFbXDlvvD3lxTakBVb89n4ZGT4Eu+SWdeNEX76dewZp937vDqD3vOR9v14NgvzyCaImK+LyEGx4q3gVL64Q0iYHB1e1FW+CuA/dQDRBpZVAbujJoqi5j4Ke+wI3wNHP2RgxS8YDN2kaVCmK6JKVukY30eOSSC+6SyAubSO5ATNmDBo7qzgeyUM7OrbVyd6JncilmtaCxam/4gA6EpANqVnMzCo5r8aNGOCof4FZU0jkcT+oIq2MrtXEyJd9NdObu8Gg8Ppo9qHCuVGpAsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ifRbbYsxVD/S/XeUi1nthARbnHnUTln9zsV7Ng5LIrM=; b=Iyjn5sMFtNCiwmcyjPvnE91pJxcfIJ+RHXtxdJ9Trv+nttJM14QBn7nmBmAANpqx2hrkt/EZiXcN/kqspQRj6dc85W1Howv/93ox/dZ5oHdraGgR26PBDh6ch7iz+LHW9EgOYpu1krx8RAY3L/ZnPYmJxKzQjEV8z8BRKq87MHO5thWt+mS1wZRLBl5bp5u9GF4CFcXaqjmIp8+fFe98qrmK4MidKANkhrOi4QooJrYpG6ZpHQ8JtYq7YXTRS7NbXnZoBjGmtusHn6s1I+awUdvXHjqZ9llJor1DOtOX9Ofpjv7sOhcPyAYGLTIB8XDPvKsnEYHrzGyOC9TMA5zKuQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AS8PR04MB8056.eurprd04.prod.outlook.com (2603:10a6:20b:288::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.15; Mon, 13 Jan 2025 12:07:17 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8335.017; Mon, 13 Jan 2025 12:07:17 +0000 From: Ciprian Costea <ciprianmarian.costea@oss.nxp.com> To: Marc Kleine-Budde <mkl@pengutronix.de>, Vincent Mailhol <mailhol.vincent@wanadoo.fr>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux <s32@nxp.com>, imx@lists.linux.dev, Christophe Lizzi <clizzi@redhat.com>, Alberto Ruiz <aruizrui@redhat.com>, Enric Balletbo <eballetb@redhat.com>, Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> Subject: [PATCH v4 3/3 RESEND] can: flexcan: add NXP S32G2/S32G3 SoC support Date: Mon, 13 Jan 2025 14:07:04 +0200 Message-ID: <20250113120704.522307-4-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250113120704.522307-1-ciprianmarian.costea@oss.nxp.com> References: <20250113120704.522307-1-ciprianmarian.costea@oss.nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0P190CA0027.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::37) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS8PR04MB8056:EE_ X-MS-Office365-Filtering-Correlation-Id: d9ade785-d7c7-488b-98ff-08dd33cad30b X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Rn9jg0Duv1CpZZqgX5HQVJ9GjszVcXe?= =?utf-8?q?IJKyUXOw7zKlQSo7x41eLOwRvsxVJpTGNS77hrTpGN367GVAe9a4bo2d5FYndSKwS?= =?utf-8?q?8VEAwyMehN1Waxsm9kiFVGbo2ifaSnwxxBLjjyqVBEooWi+IfROPG9AdCV1qjBnJ3?= =?utf-8?q?VOeLPYCz+QCBRYvomx+mrkYYicbvXAWxIpEYxk8NeuLd9IqStta2aHatj9+cr5GNq?= =?utf-8?q?J2PTMMIo9eYiHBbHxq1gUqrUMJY3dU/dZKrcK0Ni+q7OIaRdcyxSVqSGXUStGR7CY?= =?utf-8?q?0BaG807bnY4gDylHJGvOeOC0YXUWC1JX7is5BG2Ugo0GMw0RHfqm6HSn13vzXW/RD?= =?utf-8?q?7rjibGMdZLDBvU1xBrWgi6Syhy1dS+4vd0FEbhoV9bSEKJ4BvGUdMC3fEMLUfmLDz?= =?utf-8?q?RZZZuosDcS2lyBCqQ7VjxhOJiyFRxFo0LmZ6o5YQ/1lmzPrCBr4RBvSCh5P9li25r?= =?utf-8?q?Tr9jtWOfyu/f4Lg8zJksgVbkDBnANQW3PEE3eH5kWUFRWdpi8f+QRHcWUKKhBwOUm?= =?utf-8?q?wDz2aXA5w3BBjBYHWT6WqIAPki91goXYMtRyxLSixYMTl6RrdJ7SNbp/wGP/pmcCB?= =?utf-8?q?O9qLSNtvJhSZ7wE+STgX/2DGDDuJBKxHkK0FLqLSD4UwlZfm/PPjAKYr7HItwvh4i?= =?utf-8?q?YNmaUvnvk9ETR18lrEH7b0ITr1jKVsou+QRRkmGEnkDeq1hk184gX/t4CPLjQcY/K?= =?utf-8?q?mEu8DwVfJUYtDQlXShteBOtCdthXFyEHYjvD6ujLJo6rLNQUz3TVAx587lQLhAcCf?= =?utf-8?q?BRRktJTf79CY0S0Hha0CdeyyKUbAQp8VxcwB5BuoH6O9dK7WW0zuill15RT0AYAHN?= =?utf-8?q?JJfaAdeoArGVS/Ar6YT3CV1bmBaK+TYPp3lOXsL+Sh47qJmzk6JoM1JGvOQax+D0R?= =?utf-8?q?yeHMrhdN9Zwi2rG9wbVwqfmyOH/Hr3ieU9i+DrkyXvqYqXyErbPMh4811+MfRUAKA?= =?utf-8?q?HEJkBQyYkr8U1r5phrmq8WPzqqbwA3I4/9Rif0Tq036ORU5q9si2bIk4ESYkyG7P0?= =?utf-8?q?+af2qs8VXEEscaxGiYtyifb7IO/0k5hInH+hG7jjeE8jlgxa4UnQw2a6h7HZofh+j?= =?utf-8?q?KwNZvqjAQhNcqr7Gl6+FA6eiPioBVXSuoxx1gF4MnK0zm2znUy/P0G5+NYBljLx3/?= =?utf-8?q?v2OY8QV7hvIlCdqN/a16izF9kLiV/uFDgS4N8QFYe5/i+wsTA8pqcCY6UBt9c+EJb?= =?utf-8?q?2tj/KDDHnF6MV7uCXu/OWumgIBRFPXCe/Oiai/bs/OzN0R7h93yGrihscWMqK7i0V?= =?utf-8?q?TkS4kM8gjDFWurEXJLfldKO2IjUVAoIdirzkwXvwtftMDl/YqIOvqiq1az1BfQO1T?= =?utf-8?q?/INAZvQvag0n?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(7416014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?z/07l24483dk7SMOGlzi3gd9hqrb?= =?utf-8?q?/yjSLsqUoCWCpYunTJMGGcJ9/fmEf3WwJLVsOnlnKXgbA8PPRp/zbEduPjCIsCa8x?= =?utf-8?q?nJID1/5MK/FuuB/EKEz4MxqvmGpYQ3M/52ERqisNj8UIxQOT63YlvGi8aPee5KSw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apk3CKfhDqALElrb?= =?utf-8?q?B4eFFK8EHvIcG8ijqS77UavvKRMX/hlSjUOCps0jUPQQKdhZ//DQVXTZiJqJKNWdz?= =?utf-8?q?FtfyGyalY41P4JBt+980fjp2c7QPjvpytYs3O5K3xqL6bADvgtQ0WPOC/1iW96mbq?= =?utf-8?q?tuGzOnnAarVEJIiP4vEejSNvFQVo2vEVYJi0Vse9fZ6I0GfXnz4eH6S58/RT9aBF+?= =?utf-8?q?QwwCMRdjOOHxJV3UdB2nPBrQcqsb+Vv6q3U4nBnrYbEuAfgoCLRuKySJmiuxqOyxX?= =?utf-8?q?nj6JZZTyM6vGbQEURZfxiGW75yuRqHSie+uwlrySlJwSD/nHnvhdXe9p+6o02Btie?= =?utf-8?q?X5mgaVkekRs3Ub9iNqpaSmxzyYkmOgj2AILOR0o1Ri7sc+VwoHIhuoB1mG+eE3eAo?= =?utf-8?q?IoHBQQHv0eSSoMZ12a+xSrrOpprAHCsTS/ryYR++r+RQOCI3eW1FFLXpTbu1yF+qh?= =?utf-8?q?urAJA5gd+pz4mIIl1eFcbK89fF8yb7nLmM1Fpsy9WQ63UacVIz55z0AjhdV46N/0u?= =?utf-8?q?GwgPjr3tJTlVr0ufJIiikgx/p/504q0Akg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9ade785-d7c7-488b-98ff-08dd33cad30b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2025 12:07:17.4823 (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: V15U4PvtqH0eLvpxHCeFdqe0+g7oj04qO4oON8qYCDsi3ElMJkT25NefaKgD9oiBfn60Xk5zXMfGGpHqsJXYrplgNRxNmuhQZ/uf73RDgAY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8056 |
Series |
add FlexCAN support for S32G2/S32G3 SoCs
|
expand
|
diff --git a/drivers/net/can/flexcan/flexcan-core.c b/drivers/net/can/flexcan/flexcan-core.c index 3ae54305bf33..282297c55502 100644 --- a/drivers/net/can/flexcan/flexcan-core.c +++ b/drivers/net/can/flexcan/flexcan-core.c @@ -386,6 +386,16 @@ static const struct flexcan_devtype_data fsl_lx2160a_r1_devtype_data = { FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR, }; +static const struct flexcan_devtype_data nxp_s32g2_devtype_data = { + .quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_ENABLE_EACEN_RRS | + FLEXCAN_QUIRK_DISABLE_MECR | FLEXCAN_QUIRK_BROKEN_PERR_STATE | + FLEXCAN_QUIRK_USE_RX_MAILBOX | FLEXCAN_QUIRK_SUPPORT_FD | + FLEXCAN_QUIRK_SUPPORT_ECC | FLEXCAN_QUIRK_NR_IRQ_3 | + FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX | + FLEXCAN_QUIRK_SUPPORT_RX_MAILBOX_RTR | + FLEXCAN_QUIRK_SECONDARY_MB_IRQ, +}; + static const struct can_bittiming_const flexcan_bittiming_const = { .name = DRV_NAME, .tseg1_min = 4, @@ -2055,6 +2065,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 = "nxp,s32g2-flexcan", .data = &nxp_s32g2_devtype_data, }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, flexcan_of_match);