Message ID | 20241204074916.880466-1-ciprianmarian.costea@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2052.outbound.protection.outlook.com [40.107.20.52]) (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 21F6C1D4612 for <imx@lists.linux.dev>; Wed, 4 Dec 2024 07:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733298565; cv=fail; b=fXwCRokir2RUAzTC00SPWW0ygZ+VA3ORdwTCcGcp/PnfP/CXof8Dh3dYnh2/b52F62xadKQdmbPMoKpvgi1ud9u5/NGHNqN33yU/BDKwZT/NB2YnkmNj9MxZ9SRNcm25+gxcMJ2XSmNapbgHuwAY6mMmQwUJo/Ld90daiY8pNl0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733298565; c=relaxed/simple; bh=effikDis1puXumgaNiicY+bwuwQW4y+vwQJbe/KXjB0=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=vBF3tHAOaRjgJAKp5a5Fj14/pgtnxyB8cic+010GL9jo5r4NxTaelGDAzpwYn8A7GvGW98s/b/4FOGw0eUVQQX+KoK1mOjpLXdRuabOxP752gjKitQ3tnX9dCmS3zf/UDowBvHT4Eco2KICgD1wyZrQm8L+O+iw3kqX+CFSrzd4= 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=PMNl34jN; arc=fail smtp.client-ip=40.107.20.52 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="PMNl34jN" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ib1y3hzZSF4Tht4opQqORocJ+VoYcux5DG3jYgn1FldIFgi60DNxbJW/dPRF1iIbWE7B0Ds/pM12cDzxGUkQYzhnpHbYqsBe0CIZN5vc4LTfSo/mTc4g/OYyNOC+8YdJJD24Qoj8fksYfcRPNZZspCBBHs82mz2UbUCZyx0F0RF+hgkqLiLj5jX8SecGKCgl47vPjoVZi7gXEcl/IskjxxcLw7O5pGv3lPNTadBpSNo9KaM6Ohto+TTEOLB845xCHzSnJFiNaMQ7hHjpbonDmHugcWako6jOXZNZnVK52scmyYev1Lwv0MT5K0isoSNgCibgneG7rJxe0nnOoUAxZw== 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=Uyep5WBgHQakFzMTj8Rr6JuAkCML3HSjNmPhm8Cx7/R5STIRB7bCDx56Ky3Fol6EBMK8puivFPfWhEuUghr+lRixZEzZ5Tok8HtTjk/1XU3D7h1x3686aYzJdHlFjl//9ARO/6d5TNjnz7kWn7I70y+maTF0l0lhTOJwCtnuvoOwo/Br2RBvQLrd+eOhetRxv9BTks/iYm7FNKRLsz4eUz2AtfGYGmlbmNIus0Gc6KZJPhapHMJFvt+vXHNfYE5zJJnIHRpWZRf7r3BwqqTYu2QkUKy6Y/q8YSR4d94cHt52YoO7izIamlo2hu+CmUzp3+3H1UW9952UjO6417ccpw== 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=PMNl34jNV4qJvmMC1rfa4//JQ7NCSWd8g63sj0qBXSqXn+WfBda5TKGSYgRHrEgGbcc+yv2oe7FZNymNVtpjN3juUrmOrGcxCDZ3lRDl/sdvnggCKEFNiFcXzzViZwrrh7AhC2xNgwXB+/Q58wzvShNVBXT1dNAS08CuIkRBWswpfrNpP2MGtSexrnuadBmQdU+NoxnlYNnk+Wu7dQFNPBpW5RY4CkNgnGFsMihoPo3EaVL2ywWLlWEU0gnnxW22bgrsS3uv8JTE1sGyDpS25O0MHSHZ7QQcfL/Uw6PvyTJ9h3V7KyEBI1TBe5lJ4p/I/cwBMGYIuIwF7gq7XnNXSQ== 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 DU4PR04MB10598.eurprd04.prod.outlook.com (2603:10a6:10:580::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.10; Wed, 4 Dec 2024 07:49:19 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%6]) with mapi id 15.20.8207.017; Wed, 4 Dec 2024 07:49:19 +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] add FlexCAN support for S32G2/S32G3 SoCs Date: Wed, 4 Dec 2024 09:49:12 +0200 Message-ID: <20241204074916.880466-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: AS4P191CA0009.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d5::16) 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_|DU4PR04MB10598:EE_ X-MS-Office365-Filtering-Correlation-Id: 92c1527e-d742-455e-4f11-08dd143828cd 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|366016|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?NmdNobo+wYoq+ZVGVZ9WKtsShjwIo24?= =?utf-8?q?fPtZKDQrBhMXj1oOojy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cMyUAgrQfLdRDDuMkZuUVZ9xeVO?= =?utf-8?q?dOl+VQ0++c+9xZucaOf+p6+RKCSgZW8rCAJpHMpRSahtVThiY/1CjDKIzmUpt4E74?= =?utf-8?q?nxzEQTq7YSBmt3uLY5SFXmPSd7ufjYZOZVzoQH9di1e+PnwaJo7DdhskfqE1ZmZVX?= =?utf-8?q?6VT/KgSkJzLkaXYogTsYrkiWH6mN2Dtl9eMOipRii6WGlkxnCiDtySSD/xxGRheLj?= =?utf-8?q?ogVH+sO9BCWwN8/ZzUFpPW4w4rhjfluZCly2ubdwggSSu1JRbxG8hV7B6ZlmzaWq+?= =?utf-8?q?JhyvQLhrqr9XqaLJ2ixhIV67hXx/pYJHCqPHPvM3a7iTjohTmilzTCvDZ5nJx/wBK?= =?utf-8?q?rrjZC4Qpw+Lzrqir2rX8KLRSUno1FnOcUWw=3D=3D?= 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)(366016)(1800799024)(376014)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LT1SOnKD41I+vYW+uXlpmbTfK3T+?= =?utf-8?q?aNmlChjAQhApgtBD8yecGWwS5DVg/KhbABXEVjgebo90dlf3WimQseXVNBOH5Hizv?= =?utf-8?q?RmIfD0LkayN9/fW4vbjmMahzICCl3nZA2WY+jWV+t24B6MYWgvw8RqevrvoEeOCXb?= =?utf-8?q?arJWkhbZgm4xWi0Y08xyjZ02CTcHq3Wkz+kL+cqFn3Oblwc5rJ8gMYz7WDWa5LDNg?= =?utf-8?q?gnTfjqd3yLpefFx7Igw8mLJ4WFvNlVptBhuQtWSahLGzdDNDQp4TJrkskN1wyJyIO?= =?utf-8?q?QFJ4WHFSK6O73nGG9w67DEgHacN92zSGif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k4Hcf9Nwv5/+4GYZR+xjd9qFEHvqJ?= =?utf-8?q?ip1HXCv3p3d2ERPfSBZXj3Zj6eB9JAR3N5Z/HFb+42ACsmqo5JNLxckIGuSm1MFwD?= =?utf-8?q?+VOmOwjzeIgaj684kul4DbjrrJDjWL9cEhiRpYkzOIxcEwbFI8mjPoQ7mm8OnQM4r?= =?utf-8?q?I795WytUMhWdg+Mc9IWnrpJbSCfpdmKRuv0pr0n3um/pYuog/rhus3cG2VQgFIHE1?= =?utf-8?q?rwYeLdvaHuwk+OvUz2FInYz2A9KJlFCOERy5mXX7eX5UPMfZ/R7T4eu1MKawwMxa4?= =?utf-8?q?IS8U+Oz0czdp3NdObG5xLjk7u2Mxp8qnFsSCXx2Asu5yhA9ehzOZnvqDhramSBEcU?= =?utf-8?q?zIFUlf0Tqh6TAwX7JyCoSSCAmbfpYx79QQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92c1527e-d742-455e-4f11-08dd143828cd X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2024 07:49:19.4472 (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: 1Nm+obAF1cC5wHMMVUxV6n1JPKMA1F2VhxUDESL6jA1/RkpA++0QjBMB/oiprKaX78jtEUzlu6zsLhfLQViGWlEK1hW8H289Lvo9yPwD/QM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10598 |
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(-)