From patchwork Wed Dec 4 07:49:13 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: 13893360 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2067.outbound.protection.outlook.com [40.107.105.67]) (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 158B7194096 for ; Wed, 4 Dec 2024 07:49:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733298570; cv=fail; b=VqAK7nT9jci4soXLxVH+QKMhha7CqBShhEh0slrlJcH1UN/8EhoSD7eZpSJpuFI5gkUzEuxxF6TVEGPcJ+jxyZhyNZxVIlmNyig4nhN4VV7UiSsPIXK7LAuA911Awph2uyjDT6DUMGW/0ITdtVR79h4fsYlJgpIY+wU3pCEK2ag= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733298570; c=relaxed/simple; bh=z4OdTSCQ+86qVjVqzxGeoE2ZgC5pvMjXPFPwFo8/PDg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=XZtfyznmlrQeXmXoitqf1Yw3v9KcswWPkwvG/8lkjT/O7qAuc/bU1cPY7IG2Z6//+aHhk5axO5Pb7BGwqoxNLERbKL4YAM19QRBjHkMex4tTHJJbYXIYoaCS6SptpcY4VCHtB+DS9xLG/ZiQIglTf2ThXHUDmCqTfqj5gff8ghU= 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=tcZgQGKK; arc=fail smtp.client-ip=40.107.105.67 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="tcZgQGKK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pSt5oXd1oBV4QYt95mNPtNPN5LCjjimriCsRjUU47QSaz+QJE+z8x1bOXliQronvCrG1gJXVF2ahaOxHkI2Uyfqp5gzVQdL9YKaxljbBYlsEcdZbCBzmaDCBhwqCUX9u5zA0YTbQJmiCJDpYhWE2nAVr5/iwjaPtqxroelwst48NdHG49v32y0ja+t3bB1WcPxLZUKIJCtlvuj5mesrM3f3uJK0m3NFDeudKhg+COaeXTNPa6Xxg/CC+e4qar47zfEImB49ONDudxEc98c4tUBdWPIBaf6YK8cAsH6s1y+rdTb0nGe8wzcnyY0V+lMudJ9fxzuHFcVD0pGCSx+aISw== 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=I4/SyxyURhBxCNCTRbSr5XgZMgwMBaBrjZu4kumk2Nk=; b=vCizRGPiWLor7ghxzetWmA/OBilZLsdSgKgF/LHDFBXIkq/RHYHB9mBrwvBI5NZ5DKg8YlYUnwfvLWJT1UZKWxOGls1gyAdgNPGprmv18DbDJQIhMqzgFQS9faSGv8Cp0fAUdd5NskTdfQtdb7l7lNSJIV7ukMDgklls+99wLsAH85yObSC+OWuE9leXPS2H2xpfbUuI0NxrAGhNi3i27xxqLMx1qPJYM5+T4l0Qv8DAGg1IzaV9f1W1/tzRn3it29Kqjwx8wKVRnL4EW7DgjD7VIcLhw61e7f2G197+VHIOmvYcfc3hFj/3DDcyeiQ8gdf2rRT3E1yaaQzbLxo9tg== 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=I4/SyxyURhBxCNCTRbSr5XgZMgwMBaBrjZu4kumk2Nk=; b=tcZgQGKK/3z9QlrTU0NO/9bbp1Phl5p7G5t4o/FwV9PU0ndhzFInS8S82XjWSbjgzC9vFkQsSzgLz6j/ThBcZSmDCnA7bBUsq7MZ1tBL8PJewSOS0kTeGmljQXsFWaTtgFeUuhCawDzEx8B4bRBhHdg0NDfBR/fgu3UV9n2f7+sLRhICvnvJRm9Dts8i01EH4a2ikta+E1VwbRQsb6xp4DoEuNgR83G34csNdlS5/hTPjFK9wyNXp+aLwuSYk4kimXhWrApUFAfPyVNro9usEVdU9KnkgQUmXLg5PIDkeurDtDsFmtAy9qNQoPm1ymAdb2LQ2NhL+WizSv1vQ4jdkg== 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 PA1PR04MB10769.eurprd04.prod.outlook.com (2603:10a6:102:488::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.19; Wed, 4 Dec 2024 07:49:22 +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:21 +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 v4 1/3] dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support Date: Wed, 4 Dec 2024 09:49:13 +0200 Message-ID: <20241204074916.880466-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241204074916.880466-1-ciprianmarian.costea@oss.nxp.com> References: <20241204074916.880466-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AS4P191CA0003.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d5::18) 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_|PA1PR04MB10769:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f442ea5-b6eb-4cc6-3e82-08dd14382a2a 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|376014|7416014|1800799024|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?q?3HSe9/ZxoKrMYffZJbmdRqKPG4EvqLv?= =?utf-8?q?hcQNqlWkA7SEAX/LtVyjzaTPGaKfkz53yar68dJdDMYnJvs5KLXoB6Aq7jveXOTe4?= =?utf-8?q?qJ1sPYN0lTEi8zF+NFS4T3kJPoxopu5qpgQB9tj/3iALNM9F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SpKMb?= =?utf-8?q?DjbChtpDtv2/exX/QUxqcMqoCBwUtX0gqzPrgTQViMy9jTCvScYyqsJHIrCFkXQIc?= =?utf-8?q?dgVDnpg6Rnw1AHOYISJYXo3xigNIx6q6EbRRRbzftX1FjzRU0lYzUIWnRzQoVEnr1?= =?utf-8?q?bwZhUmRJMkPBkm3GAkpqqtJL36p8IwVVLIYJRzopYlnzX/AOWsBWDfAGke7DCvR6F?= =?utf-8?q?AaZOsyTgCk2FHx/J3fooWIOpv0rKstu9VmDaE3qWb2wXuq0tLuaLaAXyNuQ/K8a9o?= =?utf-8?q?I7xWOLiajBQwA6X8CeXxjezS+rnDRZi2XRg=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)(376014)(7416014)(1800799024)(7053199007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wiVur6PB8OVlZPX6waYJaXajz4MN?= =?utf-8?q?fsAVx3h6k/9NJBHGaeaKzsKjatxzvNxJIBkQLUp6DUMjPYdAM3zm+tMF5+fRsh2G/?= =?utf-8?q?AE388Q5Cie1iE2VjHdoLL7lvKnmmEHqvwYqguqT+e98XRNjM614jy8vQ7AqZQH3Hc?= =?utf-8?q?Rtv/3ZdBrQbfyu6maHo/O/HEP46nc1CxfZLqrmsv6tKcEjfpPbhgIjy+phn0yqbV4?= =?utf-8?q?2Uz0dAW/0Hseax1U5LJbgCE0Glj/0f+os/faRDYGpoj9gjmPSGwOSRpUohsSaHnaQ?= =?utf-8?q?ahi46YOoGkNmm5yUPp37Hlo8kfWXKowWYgJ/YPIGiGT7Ex2SGsByHnTt2sJt4lWrx?= =?utf-8?q?VTAxVJZ5EU+SuA5mVsUVHYok8o8TI9e7JaqILRZPhTMz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?= =?utf-8?q?9ce1izjuPLmN3W5n8l9mIpN5qBk4l52JJC/IG/sF3GrMmVjhXPLhDOb+NZ4gGyASK?= =?utf-8?q?uRCb3G3M4rrsTR38ATYKgO6Mxk3SX6xP+dUmfpvm7IXfAmFJvM7nCoGdYj+RcS5AH?= =?utf-8?q?NA4369dWLa6xOMMPDmmyQVh/b/MFni2aZj1lZdpxneIt2XI4+F93CgxLKnQdm72rZ?= =?utf-8?q?xOm1SaxrDiFk5bqm53rxH0CkbJJaxiLKHbxFTCLvBrwGeQCwrtlIhPZJUT/hw4cJU?= =?utf-8?q?dXVxcK7vhnoiCsbnXUgYIXs365Wzc6fc8Q=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f442ea5-b6eb-4cc6-3e82-08dd14382a2a 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:21.6822 (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: 4f3W2QPzNUXk7q9Or1MxBZSxI0s4vOjSyV5T8a7Pb0sn1r7CKzkhzIsfNu3DdV8eWmN2w6miL4KXpxhQZdu8e2QfIEj4cNL7gmVZVLBZZsI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10769 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 Acked-by: Conor Dooley --- .../bindings/net/can/fsl,flexcan.yaml | 44 +++++++++++++++++-- 1 file changed, 40 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..73252fe56fe6 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,35 @@ 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: Bus Error detection + - description: Message Buffer interrupt for mailboxes 8-127 + interrupt-names: + items: + - const: mb-0 + - const: state + - const: berr + - const: mb-1 + required: + - interrupt-names + else: + properties: + interrupts: + maxItems: 1 + interrupt-names: false + additionalProperties: false examples: