From patchwork Tue Nov 19 08:10:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13879479 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2085.outbound.protection.outlook.com [40.107.21.85]) (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 A258A150981 for ; Tue, 19 Nov 2024 08:11:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.85 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732003863; cv=fail; b=nEvw0J6suEs2U+7fFObtDqqIlVf7ruH1FQopwAqp0+iAwok+earRfobOj3tTKe20UIyC+r/UofHDhMT4B2Shf2Dno8WND0FOVtfEoHR9E6d2sJjjJ9z6hQLr9T2jg7jwX0etgE/5rao4JFfk9mvhJubDtdcthgZIrWxTpCu5168= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732003863; c=relaxed/simple; bh=N6vPTJyMoVRLNgSgFd1HYli+mm9ImXhxZT4ZL8koEWw=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=dwKqIczPKsDwXHesxGJHWeXTa5cOwzaqD4W1p5XtzXGShIR05nCTZdm6QOOHF8/Cf8Sxrd7uYvzyTgC2fSU6eQOYGplI9+sHZIX12ZvTpeFgYR5mhmEk5tRrmuYEdNmSa/cu9ZmZu+ZXMsMWEC6wgZolMaLMvtagjSLACb5/W2U= 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=lAeS7BUF; arc=fail smtp.client-ip=40.107.21.85 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="lAeS7BUF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dFtczy1TPLprmrEMEMrO9auv/9fggQS+6uRst65Wdop3nATE4NElxMOfhjBwaKMx1i8SxRCCdxBJWYqk1lmSM0nNozBL9FGWM2VgHBowfbUvsR/20fu7o+wXM8jK1SGToxhF0xGspgao05kSe5q28zgfPNhTPTUrhYI4/SL2t3VxaCBxDH/l+4mquY6COkRPsU7xeyI8muHH7SNLO1c3DqtmNqFH6KeznSZETAkjrUI1xu7wtNJ049KtVnM4wp2RrBbhYrflKqtojA+/TA9rQLXuyrMS7yelfHazoDh0H8HTrzl7CA6D2aHLpZkdTMJd1AZfQEK6uvXrk4/r9+e+BQ== 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=cw4+ypKFhmCIoUFpVi+i99140MkGOBC2eI2d4ZpaQQk=; b=pYjB60IwvOX2/1Cxm/Om3+t2HI0f1BxNFTxjhfJTr8TwfBLteAQ0efdTkJ2T7+xXqdP3mFDxNyOHUODr4/DApRm5T3NLkDd2r+rPb0IaAUUcxYaVocffh8DlhknbpItlgQM0HnnfWxylKeEWxYd7mTg49lsi5+JlmkwLeT6M4IyVMll2aLBrWf+QI8LDPUw49xYFsg9WrZ1flNudeJFGE1+QcF/dMSeWRwgbJNkVIdj1AHL7sQyVaiaRVBaJGwVelyLDBbWvF/j0wXebSappwmnR7xamCyAbhkGMwIpntfNSqXRdowasYlZ8PnIZabMgRlfvvC6pKqUm4ritrdQdiQ== 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=cw4+ypKFhmCIoUFpVi+i99140MkGOBC2eI2d4ZpaQQk=; b=lAeS7BUFR7hHxnBFlb23Mu/kPkozdZZ8bdWwxkBc7OHg1LDl93AgvDRogXMx6f8JWoza5xnkcGDEw1fBB1Tsu3ORotB6lg1bUBvHiNOqaz4shncfTMxGVbg1wchLYqe9LUeNtPcxSYKImyE+lqYZv394+gBdckO84xpFi1WanYZA1jTN11l+uPvGPSeo5Y2zq3ga+77rphkK9mheXrmKSS+Ocoj1092tepvl9wtl0XexMCbc5h6sTlc/v4WPRf/7ZdqRw6YyXmz9iVhTFs6tNBsocj3h5514Mtu9L7LlxLsNwz+IBeqM0iWFfauTGzD+or+IHnnHFwHkwrAiE1ysQw== 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 PAXPR04MB9058.eurprd04.prod.outlook.com (2603:10a6:102:231::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Tue, 19 Nov 2024 08:10:57 +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.8158.021; Tue, 19 Nov 2024 08:10:57 +0000 From: Ciprian Costea To: Marc Kleine-Budde , Vincent Mailhol , Andrew Lunn , "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, imx@lists.linux.dev, NXP Linux Team , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH 0/3] add FlexCAN support for S32G2/S32G3 SoCs Date: Tue, 19 Nov 2024 10:10:50 +0200 Message-ID: <20241119081053.4175940-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AM4PR05CA0002.eurprd05.prod.outlook.com (2603:10a6:205::15) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|PAXPR04MB9058:EE_ X-MS-Office365-Filtering-Correlation-Id: d0b98e7f-d435-4cef-a0ac-08dd0871b251 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|1800799024|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?tqTdLXnseJidjYVkpSKRoisi6p/6pWv?= =?utf-8?q?QL5L0a4K/Ut0KnlerO8lT+Ywf71i3aqZNC8nTKXx6uUJEs/qJ+zQFqEeDssWbrSSd?= =?utf-8?q?+frxg/UsrxbQGY/ewKKHfDykwk1PQ8VUUzYthunzNuAnR6EF+ocV+e27iN98e4eXf?= =?utf-8?q?juZr/Jh9BbjZH3dorobzqf0i0PwPWtP4H7AJQD0mVaL/Y/l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yDU1JK79sg0favkmsWw3Tq61Q4+44Nb?= =?utf-8?q?NoqnkmPj60/YIR4UMeSxKR/iNtdRCu7Ps6Fd4n6jMpi8AhR+Vo5XfOmxUuk9OOvTM?= =?utf-8?q?80J45MTN5POZ817zYgGNxpLvD8rSWEAopzMuAmPbjrwuzbznDySFyWI7cYo6KgzzX?= =?utf-8?q?hmRcqUEXAGTmdyAdgj7Z0ggdepIywBHBlOhuEZoHDdf30GggccRfkhD7WNhGNxViS?= =?utf-8?q?Ls6GYWalzZiQSnmEnvIjZZD9YSYU0TtDE0zUzMED0qwIuwWCkJgw9vww=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)(7416014)(1800799024)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?hNU0yYw4FuH3rrpSs9QM6FhjXPyT?= =?utf-8?q?hDwSVqDIouoxqr5/ozPI1a8dfiWZ1f2iYltjwvU0W5mbdmfC196gQ/eTwFh/67b14?= =?utf-8?q?yfktbdsKCbtwA92o6FHKneM5cynnP5nivr3oGrNhtB8yutAWjIcJpJElal2TmAZWg?= =?utf-8?q?EINq8gDBHRAr7Cj0H0ip1dlbB+SBlAMjdSHUS9KxTJhFKGXRtdT36a1ByIqQLraWV?= =?utf-8?q?7w1GJOGaoD3BORlu2XFKtbXwmYslB2YCLlYDhJnBr+QvCtOC8ZRziBW+0ZVFFibZe?= =?utf-8?q?INAlgXeVNIdYCSOz+LoZE+1/qlJqyyKp8mL8ii8jGYcdnye2fCdWJV5sj3J9J6C60?= =?utf-8?q?hOOsnbAn0O+jT05hVi/n/3/xzszSiOX2Ny6AsoBSE7beW9/pZaX/K4oXSyMk9sHpZ?= =?utf-8?q?y6omYtQNz43FHH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SdzFhtfrGtjJZEplLh725836JyzK8dujbyZrxhK8PPTfWvzos?= =?utf-8?q?ROJRCpFEr/6xReEiSG3xoxytBlXuHM18S6hBnMYZgmFDVs8stF60ERuyrGRNgboxU?= =?utf-8?q?XI2SuSoxRHJhVq7J7FflvKXPZVwTaiJchTzdV7rHsy+gLqd4cMrixpzw7sCI/95sY?= =?utf-8?q?WER+nWcSeydoPvhTHDbZiVEOOwnO0ZEZ9bZk1k6kuRWfXvad/dYNQVwqdzWyD72lB?= =?utf-8?q?leKU1rELNbXv6C0jhUH8GMfNB8/DgdGLPg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0b98e7f-d435-4cef-a0ac-08dd0871b251 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2024 08:10:57.4059 (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: pUc29ESc7kDVA18wg2kb8Q+z2twbv61AtyDSzgMC7UiGl0jd6+nR1ALJpkUOaHlKDnWXXOSCi3bvIFGFUB0NNtO+nYdICXFjgJEcF3fxxBg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9058 From: Ciprian Marian Costea 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. Ciprian Marian Costea (3): dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support can: flexcan: add NXP S32G2/S32G3 SoC support can: flexcan: handle S32G2/S32G3 separate interrupt lines .../bindings/net/can/fsl,flexcan.yaml | 25 +++++++++++++-- drivers/net/can/flexcan/flexcan-core.c | 31 +++++++++++++++++++ drivers/net/can/flexcan/flexcan.h | 3 ++ 3 files changed, 56 insertions(+), 3 deletions(-)