Message ID | 20250113120704.522307-1-ciprianmarian.costea@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2064.outbound.protection.outlook.com [40.107.20.64]) (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 956431CAA83 for <imx@lists.linux.dev>; Mon, 13 Jan 2025 12:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736770032; cv=fail; b=dilqFDABl1ZD5LihWOSS5nBTA0ZngKj8HS8muyvoVwtNsT3NSLTDKaxb0XSlkSmLmMctckVKk5UI6qk9jrY9rJx6gmljuz4SiO8lAzOyjG31moDXYE8aGMfjjEEmAs1C2MOG9nsLAfu3EQeFPUdLKfMTI6kFO80UzWxxISMbuDE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736770032; c=relaxed/simple; bh=effikDis1puXumgaNiicY+bwuwQW4y+vwQJbe/KXjB0=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=rYSV6cN49d+vDG01zs36XTtiyS3HvVsquYYF4cQSytaC6sj9qGsRj/fLGuUrCoYYH9yDJF72VaaUgxIdpKNIW9vHViWMZ8OrkWWPmdCShMMWh0Gec2qDSiNHEK+ntNmJC5SJ+3Iex+SSzzfOnP14MZ6jplDXm9/ja99j0V68SlQ= 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=wj69DYa0; arc=fail smtp.client-ip=40.107.20.64 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="wj69DYa0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=M3kIlrpfhS1UovbzfpNCGYTA7+Oy/OYXQITFS5VI4B3fMeiyKIXZhizgJZ2p0pEODqWQalz1CHUYsFHB4kQLeDX3HdnbVgTHp+xbHkBt1AJx9hdbrOiX1UB4xl72lkvqYebre+odYwQouIHpzON4Qwn+XtZEzIMkCW6hHHafzM2Gf/2GBcRUemhJfu7baK1LIMfkzGseeaGEdOn/buS0IOMGdZDboLrppn+SM0L5C0YMijE7WP+DUmghJ3EVaQc0R0iZ7lWadPuZQR0A33Q/uTQohjqLmyLnC+hfsz2F+gL5q0tPa1hpf1nFFeFCHZuwsF9skZ8kxx375HmOeLllZg== 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=Gd7eyrW6paO5m3DjOBya/f3hTzTxyhWGtIDUBgc9h6s=; b=tUJS18Bj+1uhJeb5hpBxyTmfugKqUs+Dqf89Rf3s5chX2/rhIH9ldJwg0Cs7tkmLiZ5aPBZ+MLnXymXzWsI9zMTDiYCQwR9yyNUvXvE6oa2FEtzQyOkTsvJxjNTeAEbRytKbXieOFATxV+yVaY+esi0GLGRraguv4cLHpk0jTWIgZ7iMNBU6aPQKG7qqQ8hplOxGgFn1KiyzLftgt8eZ1molD4O8O7LU9i8m1lHO6+eAJUdgk458IFOzPtXNW9vl+FbjTzPLo6vMm/H+CaotnWEud5JnV4+rm7/MHUV9vUq7YFSEfw34YbMxncg1YhW5ODWulPMQkz8PKb727PrTJw== 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=Gd7eyrW6paO5m3DjOBya/f3hTzTxyhWGtIDUBgc9h6s=; b=wj69DYa05tZeAPAggNLYOUuxmSZFlGpxrXwVdcwRVkZv4OK2pYP9UVu6VW54rWZJ+LUdw8ibT3kflSch3D30BL4ZDaJaUXJmrPnGCJDiWMFi6yNaEa5F+yzs7OfrxVNkQ+p0E7sWfqar8HkHmOrrNC13INd5VkFUh891UkIWj6YIMORSvbN75IwwIbLLm+12KRJWLJw0qHfBR4vQ3LUf0oWOkoSjzOpAByZ6fqEJUWcQjpNJ34RmzRmUkPxbTbZmloMrSqsv+hf5vf5W1tTj/rHgV6fcMY5wbXe+EhaIPhEr52Ljw8HlVYFOSGy2nnOrGYfMKX3zxs5J3zKKAIcVlw== 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 DU2PR04MB9066.eurprd04.prod.outlook.com (2603:10a6:10:2f1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Mon, 13 Jan 2025 12:07:07 +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:07 +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 0/3 RESEND] add FlexCAN support for S32G2/S32G3 SoCs Date: Mon, 13 Jan 2025 14:07:01 +0200 Message-ID: <20250113120704.522307-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0P190CA0013.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::23) 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_|DU2PR04MB9066:EE_ X-MS-Office365-Filtering-Correlation-Id: d2bfe25b-b4f9-4de0-6a4a-08dd33caccdb 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|7416014|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+JRPMUYVnLUw44rSo58xo6GOM2Q3Irt?= =?utf-8?q?Q7VZFAtK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acmZEBj9rNxYd9u+tSl1j1+0i1/2Mj4MQ+ASdJxcf8bQqjdzlv7fkUDP3O6Zr?= =?utf-8?q?6MbU1jdngFs9IRM6rjRk9J94FMRap6Ee+fzekx1TcqW6aQeGmRcCfhp2UfQbx7cnw?= =?utf-8?q?aWWJrVJ8R9LUITTQy8lVRzu3ZIW81Eq0V2ThCMlyoNw21A63SGNw8/RX8iro147qk?= =?utf-8?q?gxW4FAWtWWVNOMQ+TqQ65TS+qz8+aYHNt4FwiKhqHuVE0lIOGY1BxaFzoGmy9pC+W?= =?utf-8?q?9UMpibQ9IqeRDmkXwwSJ9/EytTarT39fNWSBKceLR9w3Sqtjnd/+xWbwc0tIbeGiL?= =?utf-8?q?sbRhAVTd0jpOD1AuGQ91xp0aNUJ2qy4uFwtcD/YDWllth6KHuh7sTILWDW4ztCNm8?= =?utf-8?q?FLw1Bw3ME+V0nwkXuUIxDkf03RLUD6Wiid7qW2bBrHwuBiuE5twq6RliWQjR42dML?= =?utf-8?q?zj94o2ATIxNp?= 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)(7416014)(376014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?cKoOyMF81AJt6urLRpncqu4GHpeQ?= =?utf-8?q?6rEPD7CmOMkWh7m5jEz6hsX1r/9SB+OQZ6v/zKtakjCXqfKjjKQ+Zg4krGsYczQ4F?= =?utf-8?q?xMN0LZYvwW/XPdbdLm7eRDk3B+oimnE8YCm8dXZ8TbZ0bSBArtPKWRfGRWejXyHUs?= =?utf-8?q?VoooKkTsXnE4GsiV3Vo6aN7P+xtFXDyazXD7dzvem/kRRj5MAbZdcWPoSK4EP5ZG6?= =?utf-8?q?1HwQwe3LHdkl1hq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J254aYlhZRPgN4m4Y5FkA6aehQUP/9JIJtikEL?= =?utf-8?q?yUURi97mcuEuEicM6PJ/W4VPLtHJ9FEa8BhNjoD3TuSZHAHPex3ngil2O4COBC2xE?= =?utf-8?q?sXsMRnQDG+qAoK45+j54VnfIQTp0cWVAmTl6S6ETXH55s3YbHlYWtkoW+Akpjc+DY?= =?utf-8?q?j+lGjGDGjcM+7C5/0IvfU01CK/jT5v2UIwuALT4GmoXpRcmd25f9yr1owcdYY+lFy?= =?utf-8?q?m1AiF32D0aGezSNvLvhJqy2BCC72tJqrS6nXfprVrAL6YjZnhVQZc/Y3nJwR8FfuH?= =?utf-8?q?RzzH0WGSuAP9GoRlAJoS0NbU+6Gf9JXIxpecHCve8Dqh0bvJ82wFwtpltdsS9V81T?= =?utf-8?q?zs+7AL3RzUMAKCD3jxBaH+k2KXg6Jl5DE+BpbRo0ayiMy5V64StyV27tsVJkSMa7d?= =?utf-8?q?lFHqFey/KpOKCPSr6zavm835MimQtUL8Qg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2bfe25b-b4f9-4de0-6a4a-08dd33caccdb 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:07.3420 (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: /owS/VNX98y0j1u7aKLarlt2qHpi/guDRm4tht4AfS3Zh1LDnegALvlGX71qrZt6Odgctz6KnHw5SSNOV2LEy2VwB4KymDdpSBktWUPfq2I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9066 |
Series |
add FlexCAN support for S32G2/S32G3 SoCs
|
expand
|
From: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> S32G2 and S32G3 SoCs share the FlexCAN module with i.MX SoCs, with some hardware integration particularities. Main difference covered by this patchset relates to interrupt management. On S32G2/S32G3 SoC, there are separate interrupts for state change, bus errors, MBs 0-7 and MBs 8-127 respectively. Changes in V4: - Updated irq description in bindings documentation - Fixed some small issues with the proposed changes in the flexcan binding documentation Changes in V3: - Added Vincent Mailhol's Reviewed-by tag on the second patch - Changed to 'platform_get_irq_byname' for second range of mailboxes - Made several rephasing in bindings doc - Removed Frank Li's Reviewed-by tags since changes were made afterwards. Changes in V2: - Separated 'FLEXCAN_QUIRK_NR_IRQ_3' quirk addition from S32G SoC Flexcan support. - Provided more information in dt-bindings documentation with respect to FlexCAN module integration on S32G SoCs. - Fixed and irq resource freeing management issue. Ciprian Marian Costea (3): dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support can: flexcan: Add quirk to handle separate interrupt lines for mailboxes can: flexcan: add NXP S32G2/S32G3 SoC support .../bindings/net/can/fsl,flexcan.yaml | 44 +++++++++++++++++-- drivers/net/can/flexcan/flexcan-core.c | 35 ++++++++++++++- drivers/net/can/flexcan/flexcan.h | 5 +++ 3 files changed, 79 insertions(+), 5 deletions(-)