From patchwork Mon Jul 15 21:27:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13733915 X-Patchwork-Delegate: kuba@kernel.org Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013070.outbound.protection.outlook.com [52.101.67.70]) (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 A228113C9D9; Mon, 15 Jul 2024 21:27:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721078866; cv=fail; b=eRCDj8f2S2jwUsVtVrvS12GCOYhCILTnyv3ni/x5G2uplzileZFpCVLNXNcEcx/8t9cGW7MJddVZKY7mnOlpQEnELSf8vmoKoh7ZlRB3eAvA4l8cHcsx+WInZgamSAqe9tnvJjV/71d2wj9PLSQdpwYup7KjlzrO1O+brBjbImE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721078866; c=relaxed/simple; bh=mT15hObaWTwSv2SHLwwESm2lVFZ3gRWzH0sKOD9wxi0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=paMq2QwfoliqY9t4yahjVawXq4X54GCvvbAo3T4P8L9VWKS+CexBd21erZKKjrVyJZvSlZlYh1FTkFXd4NN6wB1t4EaNF40zAp9EbOyFjMxGEC7HyKz7/sWHGQ55QtpLyr2qn6Xspa3eXP/lrh51YX85vcO5/X+Nhah/92WNBlI= 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=e83qV96W; arc=fail smtp.client-ip=52.101.67.70 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="e83qV96W" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UNSECNrvllm4XnMqyU6RZxBRQfS9mfYWK9iu7n1pdZb5gVkPreCkuE7iA+uU5H2X1qf3rKkX4Hl1ZLb7OekcLw6Fe5MSkS5SdWA8vKLL0DxeBVwY+MmvckX7TgAkkwqB6P+7sC+5roOToXL4CYqyk/SF3n+MyMHPcr0UQS8AGm1I2lTNAGxNscYHVGmnKpKDEG44BYxlHhAJ8Eb0yp3gEoevK16YYxx/Ic74tNcJUD/4JqgviBWymy+ot40ETnKkCW+xCbNOAi4LDOF/OOecU27C34ak0tddTDrOOjh8b5z5d0HzcgLGBbmaQMO9OM7ksCoXyuQMlIpiQ4fvxt/WSw== 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=pGmPC9uMYKOpEdRaOo4UKsyzhYj4qb9icYIWfBPiCC5+pVwGdpqCW6XGZKSwxzWWEQ/UJ+0agE+6iBlXYvA0OrJPDaUueyJ9sE1Gq+QRKMVpJWMh8FW+424qFVTaBj46Jp5J/eskqHomAuviq/0Ao9c6t6HOsMf/htuhnSG+SHfh/TShiiHdEoRtUnl6gypf5Z/7HCXchIl7MIU8kanXlCJI2Y1GaxO371w4S3IlSbNhljs1vMcfFOSJrg/tQ6Pctq/BWwzSy6ONEzL9+WK6ZIPY+epGqEFU0quc45sQr6yJhf2wpO3R3LNVqdfKh38KUE63tCdqdbeI4OlEB+jrjA== 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=e83qV96WF2jnB/gQ0TULDaHPC3qTPCzYjQDoD8ncfPAbOaDvs04y87QS/0dllyUE+Ohx+gf1TUza15M4kjm+tJ5/CpWQ6sP1XvPXjOwuO5lM2B6r9KSe4ewl7qtFwuzp30PqrJFtOxANnE2nES4EjBzXFdeR0loGe9g5H1h1Ig0= 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 AM9PR04MB8275.eurprd04.prod.outlook.com (2603:10a6:20b:3ec::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Mon, 15 Jul 2024 21:27:41 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.7762.027; Mon, 15 Jul 2024 21:27:41 +0000 From: Frank Li Date: Mon, 15 Jul 2024 17:27:21 -0400 Subject: [PATCH v2 2/4] can: flexcan: Add S32V234 support to FlexCAN driver Message-Id: <20240715-flexcan-v2-2-2873014c595a@nxp.com> References: <20240715-flexcan-v2-0-2873014c595a@nxp.com> In-Reply-To: <20240715-flexcan-v2-0-2873014c595a@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=1721078846; l=1628; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=80mv/LETBsFOYeyZH+dmpgodqlmtmDmGuf9twFeH9aU=; b=83mp7sv/Gi+l5u7zfu9aQWAmS8PRGUIGLNDsYltzmk0tkgkd+Wo+BI2YKUUvcfr8ZlSovBDQm dLjAcbDnVeoCwlomPWDkvE1AIUb92O770sXuzD/yU8WP/gKrLfVSP8r X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0112.namprd05.prod.outlook.com (2603:10b6:a03:334::27) 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_|AM9PR04MB8275:EE_ X-MS-Office365-Filtering-Correlation-Id: 17fc3654-40ee-4592-3c7a-08dca514f592 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014|7416014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?DS5xLhSGtmZNlXzMM1iYnQSDaqXlkiT?= =?utf-8?q?yppp/4LQ8tOdvQb6TOwjGACE1676qjLfI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2b8PjrARhBcZObOXr/TsBsFRm7IzHNc9?= =?utf-8?q?LeH/qOEMoTAVd107fckxM454R7lIevm/WMFLR97OFtvfH+5ZPF56EeE94KmVb7F2Q?= =?utf-8?q?32EyFbn+mh0NsAuNOtUXVrQMJJmwleLCrRxl78LGNB2Ifvd8qh21KXcSRJvEE6sBR?= =?utf-8?q?TMkC0j3jvcIYdwQdQh/7nrGGlDRbaLLeTWzA9XxwX4SS1VHm0u69LZTyA0USXHxmE?= =?utf-8?q?pdr0HzX1xOFrYye9QXIddDINbQmWWzHvNCXU7g+unog5xF1BnF9AhN4nJ4F3b+QT7?= =?utf-8?q?0quL0jN6gxtfnaJYxGEMc2/bsUrLUK1jVYbC/WMJ6IEpGL7BUvT7QWVtuMq4S9be5?= =?utf-8?q?7SihUQ3FB/fynjasLs/KzOg1Y9WLkhMW7dpkAkhup5cagU/s808hoMMpcUknOvM6d?= =?utf-8?q?+TYFy4N3Seql06FnjWDd4EgKdggyWo3Zsw=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)(1800799024)(366016)(376014)(7416014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ShQnyqd+zWd58VM4NxXyU/Go1E4a?= =?utf-8?q?YnibUB5Xpaw/KJhPpSzp97z4syrYz5M31MzhO+KR0TWFmcwC6mtn1O+iONdUiW00O?= =?utf-8?q?o51iwiEGMTXUk1J6udnnkUz9xdmFErh9D4W2f1xY9YhZW5NrxzLVVa44On3RLAJZM?= =?utf-8?q?VyFRqtPN6sZZ13dWWQQx5wXZZOtDq/iRCo8rjAGmTMbAB/+AFD1AGXoR2VEZDG3IL?= =?utf-8?q?KDjX1vDFKalflk72pgASG2mhtEs51Kwd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EOuUfzIITrwjfu2IMuidt9oE2aAWzVxq9m6YPJfXulO3QU?= =?utf-8?q?UjItVCdQjQeHLoG/7wsPl7wBHPpaWnDNTd9XI0HiQah+LNcMC/SSmzltUuiUTYRpi?= =?utf-8?q?aDVdJpYWSlW5mqKmCwJe3PlQT5LNSMfR3vOWH/5RyL0s/3HkHmzSUMl5SBmsFmY3z?= =?utf-8?q?wKmmP1G9VbcE8V2qIbu9g5s1yN1wa0cL6K5LwLCN6VQbnyUmcYnmx6pNqLrPFh2Pc?= =?utf-8?q?BFmjCz2MDlFYIssdL/sUvMOjnBQcalLzRHc3yk+dqyQPyFGj2I23jdIw3Nyh2w1ct?= =?utf-8?q?ot1i9WLXNqzVLyh+lZa9Ns9x5Pmy2B/fOjzRyCa1d6OxJDoY3NbT8yw9rbfVkNnsd?= =?utf-8?q?/Jt7A1/O1ZXHkL0GgtJaSgFaW4WGRCHp+O6cIzoKXh6kxZxCJmgUEEjU=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17fc3654-40ee-4592-3c7a-08dca514f592 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2024 21:27:41.8485 (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: hZ2hfrSYsM3UtEOtiwIy5nog1wIWk8393hGQZlX00QHpLVEBiQDeNDIqnMhfjTpDNZOIfiazQa7MuC/1Uo17MQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8275 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);