From patchwork Mon Nov 25 16:31:00 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: 13885143 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2070.outbound.protection.outlook.com [40.107.21.70]) (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 BD3AA1B4F0D for ; Mon, 25 Nov 2024 16:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732552335; cv=fail; b=rvg7bYZuHT6vevKkPy1q+TVKWBLfo6GJUwfml2tJy7VyJPCTjHSDjceZu4yS7lT9U7QgRSdPNHgi6N60J7nm5UtTXxbaShjhVPcyiMyeyIT3u/gsMmu3bmus7XE8WGKufY34SJE28hahwlv9vj3BztM8kSRFfLeiKslxZxBpLMc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732552335; c=relaxed/simple; bh=cT2SNZZceLc0I6oInJaPuMW0b4czwCX3CYXK77AJEck=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=gCCc2wqrI2oNmD610Md9fPYreQ3Z6bmh1PxRrfSWfwyygyUHbW+EA9x/k49nki2qF7gmuDmJmjIo3mQ8HuIDeX0G+Wy+Vk1ithlXjIxgG0j35LaZ8nh6kUw4n3NnewGvKFennTNv2QRulvfECANvZT8dNxRUC8NmAROsQN9HUnA= 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=QgCbI0bZ; arc=fail smtp.client-ip=40.107.21.70 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="QgCbI0bZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=A5zQZ6uGUuGJc1iHMinB3JSAUb4HNHGeYq+fLmdX5xqtPUUKqlWtvJ8XjnPddLXB5/5IwLH9Yz07J3XRg8FgKOhe23suSFCLydlsB/+TRcJGel8iba7ih5D8QQmFoKXcp+ivCbK/n5K/CqkhLRkwPUJ+ObxeejjkU8mhI4+s4l6+sMuaMNF1q89jMyjn4VlWS/lcHpIB9rAtJ+amPyHVHbOrnK8mN2fbTJJV8uqUKGsA35A8rthcXFnVKwBK1WMUXww2nG7JEzpgDvQ9hcqaKEMhJKbbXEW9e+zm1+rqBjd3ybTnupUlqFmucZvdqioxTwA5x/GzATgsSzta/SdPKQ== 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=uaQy5kDXIKDq/HEQbAR/hWTrTuj8zjoDD+WCajGG4og=; b=a4z/keg4Tk8XCRC0lpdy1TxW+ct+W29FVlVrLPRhWg59T6DorTeE3s7vY+nHWGMpwVNvzTMmhEqWjw10Qr9hwUhVprohoy3T7oUHBSqe7jB+lyDSe254QacJdwFDCKQb4biq2XpTNIavibA2e9j6AxECKKdZgoPknhtN022/Hb9AyIyrcq9rTzuU8ponJGSktgVr3coHcE9UFmStzxcLCEgmp7kPa4J5oOxqFuIhkjf3Xx9gqVlE2UfaP+iRBNokdUA+gKMg3Oo4+cUt3byDFs1r3IJQiZU86xF9aSGxmnD8R9NdNVn5q+IjSAIWcPbHK6AV3i9wPhIIH/1buy1SQg== 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=uaQy5kDXIKDq/HEQbAR/hWTrTuj8zjoDD+WCajGG4og=; b=QgCbI0bZFigodnjMRbrrGbe22c3e2hqr6PKUb6++xS4ZahvVDzqgV2pSgntc3aIHP9PrKVuGtgHJagpqHhmDMpOpOqF28QocTl3eW//r37/34cCGtjuKOQwf2vukTg7y10wfseRA/MdvmWlY9ZOZBX4rZn3tLfbi+XnqB8HAXlZBuc+zExeNCIOE2K95BXMZ3/OpFKcRG0hDzugoR0H4T4D6iGOc0A6yxSPCgI6DJYMivKK7A+VbRJ8Op7lcEEVtQp7DrwdFq0KurKsoi3mPxBwPXYGfzKgzEROn7MN4a6pMjiSrUUIsSlatTeLtsDwPMO2WxTFgs8afs+KkytZfrQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS1PR04MB9261.eurprd04.prod.outlook.com (2603:10a6:20b:4c7::13) by DU0PR04MB9658.eurprd04.prod.outlook.com (2603:10a6:10:31f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.19; Mon, 25 Nov 2024 16:31:10 +0000 Received: from AS1PR04MB9261.eurprd04.prod.outlook.com ([fe80::7b16:7596:6bb4:c5fb]) by AS1PR04MB9261.eurprd04.prod.outlook.com ([fe80::7b16:7596:6bb4:c5fb%4]) with mapi id 15.20.8182.019; Mon, 25 Nov 2024 16:31:10 +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 , Frank Li Subject: [PATCH v2 1/3] dt-bindings: can: fsl,flexcan: add S32G2/S32G3 SoC support Date: Mon, 25 Nov 2024 18:31:00 +0200 Message-ID: <20241125163103.4166207-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241125163103.4166207-1-ciprianmarian.costea@oss.nxp.com> References: <20241125163103.4166207-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: BE1P281CA0041.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:22::19) To AS1PR04MB9261.eurprd04.prod.outlook.com (2603:10a6:20b:4c7::13) 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: AS1PR04MB9261:EE_|DU0PR04MB9658:EE_ X-MS-Office365-Filtering-Correlation-Id: 4cd2cd64-00ce-4590-fed8-08dd0d6e915b 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|376014|1800799024|366016|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?q?1hRVhoDAuvn2tvh/emWXZvShl3kQN/P?= =?utf-8?q?g4UPafdHVqu20fCHD4sGMABZD2UBsHe687aT3RZqHNC3K0NHcv3A/OmiND2x5KDM9?= =?utf-8?q?VB1o7IS/rC43brCyDA1Ydk2YACe8AoyEB42q0NV1J80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=?utf-8?q?JPKuelLrRiHjwpof9NtTm7XNqNWrjAWEJA07t8joisO9DOC8/CeYEXZ3Hw7R2XgHr?= =?utf-8?q?1LObd3TUyFsO3s6oTWR6DE0RnIvUyacbBB2RF2LhZImkeZIrx6g0kYJQ6MXswgv74?= =?utf-8?q?2cqCSsDy2FakV2bua7P+meUUQ0XCFrVBiHDDZ4XLZOZUiBLWZ4h3GLQCPYV38ry22?= =?utf-8?q?pyNInCRhzXV5lgy1Jk9xGTkOTcJumH0yQrST6PoxG4zPHLzEnRO4HAm2TSmcKsHDr?= =?utf-8?q?lMqRRs+yTXcSVgPzp4blFuWM1bMZPY8vYqw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS1PR04MB9261.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(366016)(7053199007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HCVr94DYaC7CO8PdBQNoudM8ByXZ?= =?utf-8?q?HJqwnD3zOY6wc6XumNEU2tKRd5O8kXGHVGnGKiwM9qa+ZT+1yC7mY9frHkny8Bq9B?= =?utf-8?q?HbnT3SZUvvxRdRbw2zxlbZf69YanZFDM/nPDiUPsE0Opv9CmaGSKKTlX2lxQ+0dhq?= =?utf-8?q?C4mYwrNigqUBeoKLnJJ4e46IuBwJlRf2d9QdSIES8QeqvD6U1+6C1FMyFNBUKPOjH?= =?utf-8?q?BwYIML3Pj4LB2rpkJpvBIZ5pAuHg3n8EWGp71mmYPcc4V9x0EuYrpzXQIWsKsLwLa?= =?utf-8?q?gSXcs9Elv5X2H8N9dC6NaMBxa7EtrWQJ9p5w2XPLa0K0tkK2tfdgKXDFJ2V+lmoSG?= =?utf-8?q?upd3NmwQ1KeCNn20qC6/Jbs09kZJ07dH5KxedBW0uXLf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xJhwxkTQ6q6C8fHKABN+?= =?utf-8?q?f6+IwHUgrwOMjhbsykyzqfIh1McQjx5ZhGPO25Qy4ZNnMWo5KDYAwU8AjS1IqnVk7?= =?utf-8?q?R3QM4bCPNZjX6mo2f3TWC49jRnoQ3pFciAMi4aUvNNKOyXRVbTXjvik3+nnr3gUaC?= =?utf-8?q?hXToZfX7py2nx1zdZtBcfiektInHQmclYVcuJLxF0Syqf9u4q0CFH2zWBdFwqd8M+?= =?utf-8?q?ZOglMgdepbOIVeTcJatmbq14xXrfBC0g724Y5lSKkeLTY1/s0UhiW47MgkjiTK4OP?= =?utf-8?q?kjyb3nUUxU6eRyQDn/2Rz/BNLseVGdUlAw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4cd2cd64-00ce-4590-fed8-08dd0d6e915b X-MS-Exchange-CrossTenant-AuthSource: AS1PR04MB9261.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2024 16:31:09.4502 (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: 8BlaU5608z6xc+E4A8Vd/4DKDLy8oO/ChLL8QyRkX8L/c6N/3f2hE+HiIbN6E1DHsm+bxqkvFt6391vSm3cQV8RFK1N39V8tMsIWTwS1UAo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9658 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 Reviewed-by: Frank Li --- .../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..b2c16a7d864c 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 + - description: + Interrupt indicating that the CAN bus went to Buss Off state + - description: + Interrupt indicating that errors were detected on the CAN bus + - description: + Message Buffer interrupt for mailboxes 8-127 (ored) + interrupt-names: + items: + - const: mb_0-7 + - const: state + - const: berr + - const: mb_8-127 + required: + - compatible + - reg + - interrupts + - interrupt-names + additionalProperties: false examples: