From patchwork Fri Nov 29 14:25:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13888728 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2079.outbound.protection.outlook.com [40.107.21.79]) (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 E0757381BA for ; Fri, 29 Nov 2024 14:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.79 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732890357; cv=fail; b=cbRfCcylDsA5rW/0TUWY1SyRfQSkWJgoOqu/BOjCkzOhO5McWqmWWioixGLuT8wgVEy13Ne9h8wutfaDHOnh6M/kAR6L29mGHQKDFGfcCSEb17jWpp3fAVWBtIsIV1pAA1AA9d0k/1kO/nIe2G9f/1mwHn9VcRTNOs3h6AjJCHs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732890357; c=relaxed/simple; bh=B9//oYLecncFM9JB+D6PwaNQnd8OJ1qKAqW+qPmds+c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=j0eSgk7nF72PiX3sjb1DcBNm+KV9aL+J/hCUBqyaHOfkWJEXQrLbZsBq7sbPX28EFsM2Q1FNHwhn4wgFnadY4q7PmLytPw64KnXpObxFDyIlhAZYKMg2y+MlVBx37TONTCc9x9qNuaLFdRFrVQoNgsaJz8Pq+s7tfAdOosuhxaw= 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=pCJs/g+u; arc=fail smtp.client-ip=40.107.21.79 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="pCJs/g+u" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YtKVEizSq9Ric4LH27Dut0NncHlBis9eaUYIf5naqX2VyUYeJPsUnbnkBoURuJlYNi1GiXee+hrUC5WHeu+oQ8EiSjwmfzVsPBmoN/LtcNWrs2/493BTR+ziFcdqIzB/BoE67/l+dejnGlSEA5lFn9pf8EeBaaofnwgDeKywktdcz/01P9OSAA51DrwFtlglbTEKIwNBxxrVGpZbxJ2m9+vp/1q57JuT2Rj7yJ8RAm8dPIk2YlAUgXotMUbH6jC34GVB9fnOT+l81LFwJ6NHotUeeg3YTMFj63XoIb2s8FrfZe3JXE4vH3XWZDA39AEOaTRwNaRN4as2Q+zQ1JZOAg== 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=x5loT4JFE+/+1p4Njux9vpoFNLWjwdIiY3CI20LHZTo=; b=cEYSffaikN4sXudjiwYfz2Sl+XdKd3Qz8wDLyXeK+dAMX15F1BXe60rSFZpPW7GLjTb/MpJ/POPRKqAjMHertO4x+ceNo0uvkZgmFcnlmUAk2D2WQ2HaJUG4dj6mCME2T8KIabJDyzIf5ZDSNYy2XJE7xgy/bx5EiGkFTjTcVUxuI0sy2DUVc4knMg4jatayTxCmGhl9wcFZafh3neARHO8RBx7X4isNZofnAKjOyPV7jmA8IW+0nA0zocYX2kSTyojMs03yca9LZbrhfdxPHtXXBEJJ0pVG8/XzOENMqF2+bNOMaExzDydn5Mvhr6zdyrR7F4C76kNN9pkpI0OEaA== 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=x5loT4JFE+/+1p4Njux9vpoFNLWjwdIiY3CI20LHZTo=; b=pCJs/g+ubBeHo07u/QQiUTE/vrA65kv4T/3vWS9Y1XtQdVS4VrFlQVsy3nW6HFFMTtfClzFqAQ1QS9ciHN0gX73+wkWc2cDcPaHsxlj5PB2MwuyYlVWbFqhUSbkRGNsS+h/vKb9wZecociF4SQ9wYdKIw7BLul6OQ5rS/0+/hddKgEWo/KuPS3sQeEfYhTFcDnd5iB88aCGl9EZDiMeN1E2ALG86YxdNar3iwElzpK0f+HEssmEDjt7TGaOtztoAkwiOZKNux6tO48Lqqk1vXeOgJNNZYsAItI5eeeUd0a4zuwlLmxpkdUmbhu/tGGPrtTRnGphqkORrHm4AxC33Uw== 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 AM9PR04MB8810.eurprd04.prod.outlook.com (2603:10a6:20b:409::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.13; Fri, 29 Nov 2024 14:25:50 +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.010; Fri, 29 Nov 2024 14:25:50 +0000 From: Ciprian Costea To: Marc Kleine-Budde , Vincent Mailhol , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, NXP S32 Linux , imx@lists.linux.dev, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v3 1/3] dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support Date: Fri, 29 Nov 2024 16:25:33 +0200 Message-ID: <20241129142535.1171249-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241129142535.1171249-1-ciprianmarian.costea@oss.nxp.com> References: <20241129142535.1171249-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AS4P189CA0024.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:5db::14) 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_|AM9PR04MB8810:EE_ X-MS-Office365-Filtering-Correlation-Id: 9d82681f-a064-447e-ff7c-08dd1081b95e 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|7416014|376014|1800799024|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jRhbKhgvsLZU8rezwfaUfnH+P4TMTPv?= =?utf-8?q?PPITkM4sYd2WH9ZfRiDbef2kQ++DuudZ3ekw6FNu26dY9LAcY9+NqF9qPGBrq7rao?= =?utf-8?q?e7kLTbagYwPL9OxChqZHQBYHA7bz+IKP+nJXZRQ8D5tMLInV9Pj4TB2+Gm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?MXH9SL4Cc0U+glZeuHeZVV8onLGoJJJuhaJngOgQKzwNwkiGgpkRlzbDuQpalWLYt?= =?utf-8?q?T+G2PYa1zSDlusLq079W0haQXF8S2AE5LdA/f/wkSWfrVsMsndbxb3/Fop0D1G7pM?= =?utf-8?q?wu8+aOzN/Fk7xreQE9LXK8Pc05j0zA/byUUqLZubD26VbiS7sXg/dvuf6iZ/QxoFz?= =?utf-8?q?Keqj58Ty1Nbp34GxY6Q0OClGPq39B8XpCW5NDwtC0Rhh+1MyR33VC76h4aTX9cUNv?= =?utf-8?q?9UiZd18wJW9MDB2lD1XZ/f58oSetBblf7HA=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)(7416014)(376014)(1800799024)(7053199007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gtXsEIz416gjfUMNBIbSEbIliJ7D?= =?utf-8?q?u/GMpznZ3U4C1VuWrjA4bCoKWahbNjVH2mRF9k+A13JVYyR6/GHQEhJVB83J64PK0?= =?utf-8?q?rUGeoQVur7BxEd4GoLaLlJk/3mCUSZhHCzT5i1RPBwOe3diOV2JYlN7e4SFfxCwI5?= =?utf-8?q?RUOcLrHnzJaCrpUNtiZxaJRuoJ7yDrloa466uPxsV78Y3fpYcYz8LiKnS7/u4roBj?= =?utf-8?q?x912NyTstVpmweW0Y4VUd8SpCAlF5cAimD6UvStAg/JQRGKZ/B8krD7A64fKx7WRJ?= =?utf-8?q?Z5rn8TxGhC9RHw2OFQa23seRH/p5aGDRhSO1h/oXPlvAwUW5ARp9hF/S+I0Najrd7?= =?utf-8?q?wesIsP5to7e5J3pO3E7YVHPlCtAM8EckqZzoASYS8LiAuNR3lbTUw+LNUlNTwYNIG?= =?utf-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7XJkBSxK4HbtgAlg4YJ8zVJ50YnLnK7jkAwyzQ/UIXD1luG+M1kY6akBUONF3R?= =?utf-8?q?dAw/dfSgtNSNynfRBpZh+GW/PdRcxulT3wfJYTDPmTNDSsUm2f0uf/TMgmMs5eaIH?= =?utf-8?q?LtOFNOtIMU8ErEo+2xxtlQnx3Aq7NjC7Q59xbEd/dj8XX1C6MLzA1/poyeNbTyLcP?= =?utf-8?q?Zj8Mx3E3tN5aG0erbH8NLkBkAuC0rH/NrNxP02Ydl/4fe8F865l6ZcNhcMx7rlT4l?= =?utf-8?q?EvlY1hAhobQbAUEYYhGXxKfvClF8Ao8nCw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9d82681f-a064-447e-ff7c-08dd1081b95e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2024 14:25:50.4728 (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: EQU9VkB+2ttfYLzaEikoylktfXhdTHPk9HVRjZkPIgZpzcXaUb5FqF059EcXDj6ctOmuAW54EoEMTFiuAXmAOOxAeEWFf6C/V0adk+YzWVM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8810 From: Ciprian Marian Costea Add S32G2/S32G3 SoCs compatible strings. A particularity for these SoCs is the presence of separate interrupts for state change, bus errors, MBs 0-7 and MBs 8-127 respectively. Increase maxItems of 'interrupts' to 4 for S32G based SoCs and keep the same restriction for other SoCs. Also, as part of this commit, move the 'allOf' after the required properties to make the documentation easier to read. Signed-off-by: Ciprian Marian Costea --- .../bindings/net/can/fsl,flexcan.yaml | 46 +++++++++++++++++-- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml index 97dd1a7c5ed2..10b658e85ef2 100644 --- a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml +++ b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml @@ -10,9 +10,6 @@ title: maintainers: - Marc Kleine-Budde -allOf: - - $ref: can-controller.yaml# - properties: compatible: oneOf: @@ -28,6 +25,7 @@ properties: - fsl,vf610-flexcan - fsl,ls1021ar2-flexcan - fsl,lx2160ar1-flexcan + - nxp,s32g2-flexcan - items: - enum: - fsl,imx53-flexcan @@ -43,12 +41,21 @@ properties: - enum: - fsl,ls1028ar1-flexcan - const: fsl,lx2160ar1-flexcan + - items: + - enum: + - nxp,s32g3-flexcan + - const: nxp,s32g2-flexcan reg: maxItems: 1 interrupts: - maxItems: 1 + minItems: 1 + maxItems: 4 + + interrupt-names: + minItems: 1 + maxItems: 4 clocks: maxItems: 2 @@ -136,6 +143,37 @@ required: - reg - interrupts +allOf: + - $ref: can-controller.yaml# + - if: + properties: + compatible: + contains: + const: nxp,s32g2-flexcan + then: + properties: + interrupts: + items: + - description: Message Buffer interrupt for mailboxes 0-7 and Enhanced RX FIFO + - description: Device state change + - description: Error detection + - description: Message Buffer interrupt for mailboxes 8-127 + interrupt-names: + items: + - const: mb-0 + - const: state + - const: berr + - const: mb-1 + required: + - compatible + - reg + - interrupts + - interrupt-names + else: + properties: + interrupts: + maxItems: 1 + additionalProperties: false examples: