From patchwork Tue Nov 19 08:01:41 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: 13879467 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2042.outbound.protection.outlook.com [40.107.103.42]) (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 D08ED14EC5B for ; Tue, 19 Nov 2024 08:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732003316; cv=fail; b=Wjap7s0Fa5ZJm48CWCvw+G4Mb81W8zVw19JwsHm/7Xlch/cevxvqpyfs79Sprnzrq3rNKsYKshGzTqwINtFY2BAJZwFmfXLsPivOMXRUA5V3ocOe4fGf7pTHfGWkb0vevDO8Au7nzJXzWPEY7MUX5UFKYRlQDq75niJw9/FM1uA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732003316; c=relaxed/simple; bh=SFDyybxIqqvRnwZU45YdLb9OZgXYwxYALZpRrAceDoE=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=kZWUuV0psLEWXRuiV8CfJPhbQiOhjCUYbhYbHVjbVM5PHVy1zA/DluHkQWdDdxK1jCzLjf17AOQhLXlJiVEEH2srsFAw1t6AN8aO6xA6yPV3dVVpVCeCKnNZ4CQ+4GynHtsarR8XgIkEBaao6ZgLeUtRHolz1AmBuQZ7NKYcqgc= 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=XJBBRbjm; arc=fail smtp.client-ip=40.107.103.42 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="XJBBRbjm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UF31cIbe3nGhVymPTTc8JKzJwQqy5foLLz/LTr6CZNEzQowvzLbIU6Od/LpLtPT9zw3YXmOeWYlLfqc0rVnHN0LrKFWyLvoPG+Ntu+Ltw8Z3qk5N0tpiVe36wtF+KLolHQBTrpzSf9Yevkt80OpdlNovHpq3KAhJ9hD53XtbZwStrRdjfQLexHi/Y8IlqN5ekJ5DcTgBHAc4lly/c/HFDSX5WO+Bm4UeM2MHngk7bvsoYP49gLRfjA7IcM7qeNVyrd8c+KBp8tFuCw6EjbKcpMSIHRBQhBsKEARgSI4IvZhedpBOYwAW6NPFNYdlIpBq1vdgd8sxPw98SlCXOeCwXw== 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=C9HIggWtGQPHvstCMbhGiWEhFkSX9Pets+CTyqjJVDs=; b=wSHyxz6+tsL8qQc26aQ/mZvlxjtsnbHlJhzfaBBX7SnvW980BOh3SlunPfwKJGYFfCZ35oCLs9l7mtR97fQegYl63Enweey204FDqk1v9CBnTEdD7EuTqPFvmILd3iQYwOF2HDIfdfMRKRtDD22itC9Sr34Iu6DQDtzcmbk8wSj8JXU/FPweshwHFxx1x2reGAFlGUj1/BZpP8Hh4rrq4971PmBvYMF1QKDHgiMSlo11QC0ffhOH1A55AMslTSonT4djbNp6GfRUou6bo0CuobM10T0X+pGVZH/hPa13wLPqId/PkKSIpzxjeiBotmQZna3t0SVjFf/baXFIWlBmeQ== 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=C9HIggWtGQPHvstCMbhGiWEhFkSX9Pets+CTyqjJVDs=; b=XJBBRbjmeSZSG0K1EZs0bHUlU8AKPK03CVwk0YwE7gtjqlVU2be8Pn2h1LdQ15pNeoDxwlqGlND7Dj9C08CgWS9rWYkVi8acFaTk3Z3kiP8zgir0Z0h5i1crPSLUwgcevUCeC29TXTLWOuDJ734iF+oSz6XXPS+1N3o2TOqn0VwlAuKOkq67gXuphPtYu/pWLXBcQ3602+VVsrWWODc7dS5JQN/adkfODnNrD6dCfBoG4+/OPdFBWZiin3PE+yUS88f0Z5+Ht/yWHwJQu5qRhvpbb2AtfBOCJo8+fk4OlRr1ypGMs6ha4akPdiW1q6tqCrXjyPGth7NbY+fQzMdgvw== 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 AS4PR04MB9363.eurprd04.prod.outlook.com (2603:10a6:20b:4e8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Tue, 19 Nov 2024 08:01:48 +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:01:48 +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 v3 0/3] add FlexCAN support for S32G2/S32G3 SoCs Date: Tue, 19 Nov 2024 10:01:41 +0200 Message-ID: <20241119080144.4173712-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 X-ClientProxiedBy: AS4P192CA0042.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::21) 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_|AS4PR04MB9363:EE_ X-MS-Office365-Filtering-Correlation-Id: 50dd3102-2540-41a7-036e-08dd08706aee 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|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?tQ2J8MkFclba+vHTDuX8D8Rcgq7rlFE?= =?utf-8?q?v/pS0+9zst/ST4n1kwe4mST597xE5c4+RJEhC8lXlfmNQmhZOckISqZNpWRhHw7JZ?= =?utf-8?q?1gyN/mt7SJuYvwxF1uiqCBuI1lj4Z0XcprEuVCzU6DGYyINHOXTQO+3s9Otg1Mahd?= =?utf-8?q?P4i+t3glf2Bdb6BofKB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fPK3z7Vbq23/ik1Zg9Ff9druUO0+KZczQR?= =?utf-8?q?pnjxgR6V/Fn4CPAqTsqopnX2R1pyDGurlcWZabLDBZHveQSjHpIALm5UIfc5FnvnX?= =?utf-8?q?5lSHHwjEGnVgnJNVyU0WQWwNmDPJI26Cze9XSSXUYfQKjvpgt0/p57zPM+n5Ze6cA?= =?utf-8?q?s00W0y+uO4czI3GZ6D52xYy7R6SjbU/c4dNFFQbLGFmdRfDkNA0X2xWmIQrwHWnIU?= =?utf-8?q?QGdY7KFCeJ5p3h+/sb42eNYJt/RHhPFAvT+lxZGv+WaR+kTWn/VVPa3A=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)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?BG8+CmsAWsCyyScVR+lDqmsOmZEf?= =?utf-8?q?YRbUk9w9KyBLIdfcTa0qZqB/gmy9CqHyvW6JCabjGZk7IpLf6BzdSL9HdWrawau5d?= =?utf-8?q?E5PDj9fm1brDq0LbIUusG+5pYfbRH6gkpinf0H9ZicAOKJE04QTdrBd25gc/lZBmn?= =?utf-8?q?0UboveOf33WWYHSeoaVWMqwf+YVxdTJdXf1dIaXhi8Ps9qBIpl8szVsF5TNOruu7d?= =?utf-8?q?WZeL/nqDsbpa+lsqpelvgOLzcf/I5Z4vpjwNm/8ZcHf4z2220NB4HrIUhVfAkTa5w?= =?utf-8?q?3VxjvVuLrq7Q6FKwq9KBL6sMTVRegSqGGNKi3zPSLq/jufnfGU/AHo2+A0YXorAED?= =?utf-8?q?nAEP40YDe0NjF5eolshVQuRCKGpPwVOb8mBkIs4y3vMpckSl4viScySnEC27s2sYS?= =?utf-8?q?67bG0zKeY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SNA+VR02mLJIbB1l8oNmrU99I23euRosVxNVlj1MW7gHuuzJDBf0u8929ISJ?= =?utf-8?q?vw+//E0y9gQ1nXdPUpRmFdR23BLoc3x9LdLWWA8pJHe8dd0MhsAfVn2IJC5sWM9CK?= =?utf-8?q?WsmtkDdjagZHohWSAuCVvS/Cmt4+pY9gybxcjqlOC/ALBHEN42AzMtkXpw79MG8Vx?= =?utf-8?q?yB84cEVVuPSE5bemoj7aCNrVsnmyuABLwBiAWRP72HHTkFCXOcUJ60Nn1tojztIPC?= =?utf-8?q?jvVaxY9QyJ0pAEiA/mqLczbeIE+f3aHAIQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50dd3102-2540-41a7-036e-08dd08706aee 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:01:48.2247 (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: TT/o6j2Ly7iFrVG0wisO7pKlti5CNBP7p3EWtquXoP6cWcVZWdJ9bxfzNDwXQSKT9YAlQ5BDuFT3mX6N+oSqfMc6KgdHUiXAVLAne0yIeTc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9363 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. The intent of this patchset is to be upstream'ed on the official Linux repo [0]. Since S32G2/S32G3 SoCs share the FlexCAN controller with I.MX platforms, we find value in an allignment on Linux Factory tree [1]. Hence, we are looking forward to integrate any feedback which you have based on your expertise on this proposed patchset, before finally submitting upstream for review. [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ [1] https://bitbucket.sw.nxp.com/projects/LFAC/repos/linux-nxp/browse Changes in V3: - Refactored FlexCan binding documentation changes - Rephrased/Clarified some commit messages Changes in V2: - Fixed several issues in FlexCan binding documentation 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(-)