From patchwork Tue Nov 19 08:01:42 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: 13879465 X-Patchwork-Delegate: kuba@kernel.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2066.outbound.protection.outlook.com [40.107.104.66]) (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 D581E157E82; Tue, 19 Nov 2024 08:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732003318; cv=fail; b=tbTGknpuTl7D9wg3WJUEWhMFYUbiQQ7RVggGQQrkjhBnVn+4Yk+4cwIYX2qvmjblngkK1WFyYRSShlHNWhwmpPknFRztrby4pMbHT3PNvwTknBXsQE0TEZWkuDmP8F/QfXVjasN24eJFrFiA1ycJzpF62aWs2i0QnxhzLRP/VBM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732003318; c=relaxed/simple; bh=2lC5tG3oSaMMhEya7MsoBHOSGN2fF94UtT4f2Wd32sQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=nePwCR9l6QaApNgtfS/ruBN/TpEsVDm8caYZPNnzT41yqAydXNBpeR9gGVK6SWKu6ymFYcwI0Dg2z7q7ZniXVp4IMDVdAAVqCDKeqsJMfUTO23Sr4J3rWJAbdKIicEZotAb5/yOJeMe8dr9mkmEWZ87QbBoOPphobmXAZksVg7k= 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=gEnkY6es; arc=fail smtp.client-ip=40.107.104.66 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="gEnkY6es" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IHHXYdZlbhuBm9XjTH91IRB2yx1Oe3jv+RBekL8dDftaTvCTYEoeQa60WYlDCIBvqTeh7nWWRH6Fdqtr2J0QOZbcaND6MbjyHuSU7JaWgSMAECAaSEVGEmLkzE/z/FftX+ikfAUBVTPOEC6+aytCQU5PX3fZGKAiGgqCP/KyTyA5sHXd13DdQ8dS4MCzqD3lROUevHj8Ik4bSFdhbtg3H91pd+cCc5/6BpcZ/8EDK41xykUfSwL8SgxwW+YH52IGrti5JXPhhTRAN7ex11s+9ZFb8yroReYl2++sM7y0OJuNZ6D2r0T9c5FNvxvjOJ/EOSRkz5hyc9s6NlLaZNnZTA== 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=Zm+Ou+Qc6KomIYnh+sPgqRr7u/wWjPGAlWW15rwFxcE=; b=jlggL2xucX6lIUBHSDbMQAjn2SoLmS0MbwWyQxYWGYdJbYhx04YVXnuCmJxr8aOR7n/ZiXdjslY8VC6tm90LKeKlxivZcuiriShzpCoT89dtEbZnxIStAESFf/gCaErIKRoV7th68vDuPDrg7bVZ+QfEAUkKV1pj/3S50sz49cDzr0R2EeFhUgsXd9V3+TNTjBv79GGewbEH2DTpRVXT+a453rbCkfXm6j8op4g8JfxMtNtMsjLAXcGQDpJmx7PNljL5l9eQycB9CdGrMwSfyKJj2nxBqRUEMHYjqzRl/tJOhSCMUtLgmVj02nDdYsO0fCUKRvHabzBbhHI3Pip6kA== 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=Zm+Ou+Qc6KomIYnh+sPgqRr7u/wWjPGAlWW15rwFxcE=; b=gEnkY6es6UvHYRwC/GpVEQTR8GZDNj2c+RCVnXs7gjzKVUYUdDEZqZQtLETRxQamY23wrL2W/DiscaZulNfMZ1/bz6vs+ixxrlObSwm9tVaHKlKxpDXD98rv7ZoOLJAUU5m1Pg3oRtVrZvRcMItcYmpIUgCqT0ANRb+uEf05kllelIFn0RK1pW3F/n6NyjV2ABwFi7B8x8BMspgRdwv/m9KWNJdOwnvJ6hqv7zJvqgGbrJR+hUA7FZiP9Y62QdCqNLybW4wIzNbDcgss7zVqJxm7IbPuA1nZ1QLycygwE6yApWB7HkKe7zZQQqJT01VCNDPYHqHWx2amU9HavMAoeg== 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: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.8158.021; Tue, 19 Nov 2024 08:01:50 +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 1/3] dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support Date: Tue, 19 Nov 2024 10:01:42 +0200 Message-ID: <20241119080144.4173712-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241119080144.4173712-1-ciprianmarian.costea@oss.nxp.com> References: <20241119080144.4173712-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AS4P192CA0054.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:658::14) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org 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: d9f0b32c-78e5-42dc-450b-08dd08706c37 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?lb0I1iA+w0qzCvfXQklLccoECRew1k/?= =?utf-8?q?KjHVuPZaYbOGq0nG+MUEeIglUlJBh+wEAshslrn8/l1pTP1vl0t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HVLxyE?= =?utf-8?q?jLMOdkEOSyDy972fuKd81JM2IAx8tBStGQhE/yP0fZuFjIeBJ3QDDGDPOZpctdsOJ?= =?utf-8?q?BolwnWu3rkKAijRTBGFnmZCdJ1/bOg+RRgcC53YASq9OgytNDIMn1UHp35+3EnmAB?= =?utf-8?q?88dL7n5dkpafMvg4tB+dd19tvaxA7uwCkPvBZkWxxyabxhka8wDOXA72ro5CS+BSL?= =?utf-8?q?l59bhlhB2K6jVe45EgjNmatdHsk/gg3jSoO10I2G33YK0fZjZMyIChaCwBfBqBMzw?= =?utf-8?q?U1tM3MMCq4t6ovfdIvvlg1rF6yq+INZShQ3YaqDolnmWT6p2vMKfw/p5cq3wB1jt1?= =?utf-8?q?GHOq/D8HXxmXoM07sVck9I9MdIw9+rxJKUzx2418Xr9KPAe71UOW3huA=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?xzNZIMKJqyDE7N9bt7vo3W/4Kxhx?= =?utf-8?q?CY86AIS7YUYt6t8gijW9DgPCRJnznp944GeUMQ0Pm/BPZU+IQzC6W+pClVXd7bzoJ?= =?utf-8?q?hKYQTfig9NTL5Q4LNYNLdNla1Z0SG8GlKq4WONkqYPph11OeXlsvlY1q1XE7mC1Vb?= =?utf-8?q?lGRmoWbAzNALcpC/XhzaDuR2qN7b4wN0c+F9jo2uU+KgiRn55F0UprIR5BctI4Lmv?= =?utf-8?q?dv1aEyJQM4dRn3yz5CImDZ9MYOS58NuoRkb0Tce4qz8vI3d3wRfxBVHQZIsz+nwbh?= =?utf-8?q?ERSD9INPu3jBJ+VfgnButAURlt1z0oTj7ywSMec2BS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RzNmT+lpbD?= =?utf-8?q?D9h1c50EykisyKPqh7iTrDvT9w9HyLvIHJeIeKu4fjPlC38INw6QaRb7ga6JOqHf1?= =?utf-8?q?znQEK5FvqZw1OAQ3Vl+zjCJyA7adukrw0Ajj9Voh44CPIJk/acGO1DjAkg3qOU/1O?= =?utf-8?q?F2HnuQYvTJrQ04YNN/CL+PnLJ7FZzLU/f0ixUEsWuuHeaXRVdjcAHXa1jewuMATF2?= =?utf-8?q?9qq4rgbgQLxOs0pq1CDP3pQ46hjGaIt7W/psssVPZ1vQqCCy7E/wOkuVDYOTv5gyb?= =?utf-8?q?G8iktcZFo7AofJeSmAiY63M8rEqEb1ew3tNaPNj4cEhR2Vqc09vOVPvlJXGGR8H94?= =?utf-8?q?zmcjH4qvQ8iJ0Ora+f19tcGPphURe5e78A=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9f0b32c-78e5-42dc-450b-08dd08706c37 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:50.3271 (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: Z8n6j3Gm3XuNbIlp6ZVlN8v/n628XKnjReplLJieixROkrI7+MnxDnvhUJwacl9jwwULzDgyfybjQAH86xfRPOLDXmT6IrsrDRWoNHUyNXo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9363 X-Patchwork-Delegate: kuba@kernel.org 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 | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml b/Documentation/devicetree/bindings/net/can/fsl,flexcan.yaml index 97dd1a7c5ed2..cb7204c06acf 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,6 +41,10 @@ properties: - enum: - fsl,ls1028ar1-flexcan - const: fsl,lx2160ar1-flexcan + - items: + - enum: + - nxp,s32g3-flexcan + - const: nxp,s32g2-flexcan reg: maxItems: 1 @@ -136,6 +138,23 @@ required: - reg - interrupts +allOf: + - $ref: can-controller.yaml# + - if: + properties: + compatible: + contains: + const: nxp,s32g2-flexcan + then: + properties: + interrupts: + minItems: 4 + maxItems: 4 + else: + properties: + interrupts: + maxItems: 1 + additionalProperties: false examples: