From patchwork Thu Dec 19 09:18:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larisa Ileana Grigore X-Patchwork-Id: 13914865 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2052.outbound.protection.outlook.com [40.107.22.52]) (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 68B5A2236F2; Thu, 19 Dec 2024 09:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734600068; cv=fail; b=clNCyd3B0gDhS2dEp8NJtDpirexU8fu7plqgCu9J4RjWjm5EwMSKXGejXveJAdGNxLJ1ry7zQPOFU+xaz30Wynpp5YRjBnTJ/WXQIt/9enN59xa4XKMZPx+FLpG++kr8BA4l5Xe6j4eQ4pYdLx8yWzIbvFAfqrvtZpwKmzQydSI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734600068; c=relaxed/simple; bh=WsjL2uE4Orn3phprwnKiCUlkr6URGo8bzo7MVbUmtbo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=pX57vH4oLRA/TPwxDxM4GVT2fLqhLbwJ4DXWx11jI2AXAYEGEDIbq23Q5PAnxNhNGiVtEgtG6g/rsAdXckpVHWCCAxc56/ofXjFSLYiiivh9/63QvN9K79IoXoJ5YnKraa4OjfygzAlXcnOcS5wkfPDdttz7+lvQIQv3aRR0HVw= 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=FBbsCSOT; arc=fail smtp.client-ip=40.107.22.52 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="FBbsCSOT" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bRfYF3009lpPW0f+3oGEI760f1/o/u0ox730oMVi0ddKzU5FEVUNsFsSiAXKlQb99xuvWCkOx2OLMV9Rcf4qhRXDITTaRV5aIYgAT3HRYqhRLcdLvm2PV7RL8dgwjjqD7NaMeQPPB3F32b7Qy9Q3EjwUYmje30cjuF/QjGL2IW0K0O923r62iW6ZEO1jMeId39IsqU0dbLtqhbgZ/ZwVec5yOsu54beOulq7McUUr3y8o8MSs8gL6dtI4Z5lovcxDEl4nw+7KzQ9u9EsY+mljMkLa0tHM54IoTsyK/zdEwJc6givxwTaeeuUd5z192y2u5o/IzUzKRLKuYCLZwYOJg== 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=UOYniJli5Pkhka8qYxssSA4O6lfU0+qc3aDbK4L90oE=; b=octGXhkHP6Yuqz2/KSFGVR3bLOgm/uwLvn1GQUYIN82DvQKLwDjSU+ZVJSHcMONwkcAYXdCefGxvvt329X5nNXONr2PlyJlvLeTlHm2fEWMDbk3RU7EKWdiIR3J60sv74G9CooJDglYcdSB6+BIqyUA+AgI+2FaX+EkKOoDkrFRWbYnr6SY+T7UMK+gp+mHQa9DVXMTb6NSymDv7fcbwLlav8sU6VN9f/jpmcxXTY7mck5KTIkTVfcy3WcLKr5hiqHCkcufkJUTwcQWorNJxEF6jUmG9BwrKg3dIWUDlQr7WHvlSc2zDUqtxT+d0MXLqMN9ibwP4EQ+ozzF/6pV7Xw== 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=UOYniJli5Pkhka8qYxssSA4O6lfU0+qc3aDbK4L90oE=; b=FBbsCSOT61MJxJOoTGcH1Ek0+R93CrolAcD2FRJyGi0EkMzN8xAiev/82nXv5Zj1gkdSqoklhK0YT693gjVJTeysqedgYddoMpwJUuSKKqSuzQi3cDi+EC/6amsK9uC9x1TqrzFPD2KacuTCyFkSGYXypC0bSkZjXfJek6Xo7MzDIqTsB6G5B0VTz8MNj9ZgByhuAhh+g8GECINF7A9qriDJRX1V12Uf6OhwdVUbkKIFsEdSN0G9rltoIou1aO6WeEsaXrgW6DxBYKa8khgBMDfOLJ3K+t2ZWZGGj5XRqkBzN+LPry4vcwOm10Tk6ql4mSl2Eiqo9e7ga8mDlb77Fw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) by VI1PR04MB9834.eurprd04.prod.outlook.com (2603:10a6:800:1d8::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Thu, 19 Dec 2024 09:20:58 +0000 Received: from AS4PR04MB9550.eurprd04.prod.outlook.com ([fe80::e28d:10f8:289:baf7]) by AS4PR04MB9550.eurprd04.prod.outlook.com ([fe80::e28d:10f8:289:baf7%6]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 09:20:58 +0000 From: Larisa Grigore To: Frank Li , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, s32@nxp.com, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Larisa Grigore Subject: [PATCH v2 3/6] dt-bindings: dma: fsl-edma: add nxp,s32g2-edma compatible string Date: Thu, 19 Dec 2024 11:18:43 +0200 Message-ID: <20241219092045.1161182-4-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219092045.1161182-1-larisa.grigore@oss.nxp.com> References: <20241219092045.1161182-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0216.eurprd02.prod.outlook.com (2603:10a6:20b:28f::23) To AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) Precedence: bulk X-Mailing-List: dmaengine@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: AS4PR04MB9550:EE_|VI1PR04MB9834:EE_ X-MS-Office365-Filtering-Correlation-Id: 74fc706e-0118-4015-3f05-08dd200e71fa 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|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?b23IYyFjFx4gsQjZEDZPihOCVzHk+hi?= =?utf-8?q?aMdQfK12iKchxd1jOMyDnCRLgD7yhIJkCDxF3jZpFZRQnZCqMqGblaYkJXQaVfwe0?= =?utf-8?q?Q1tVX6/X/B96ZjeCetIFrU4MpDVez010c1zyx/fWFm5gAv8LW6NsMNrTtbHwgwpSH?= =?utf-8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cikrKef?= =?utf-8?q?UmnlRk5vY6n68lehP/2j+NEt5nB4J6uVqRvAj85QhCla8yJ1ux4lyiubzZDIkdzGR?= =?utf-8?q?2OZLRx4OMTopoR37lwgYk9h5PbLZL+iJl9QGar8ITBj1eDwRkPdzNhnfReK8daZkK?= =?utf-8?q?T0NY/ceRboG/6+afEs/SAo9myQF4HwY134D4DOqY/KsozVFpn1nZJV55Bp1IZ8J8R?= =?utf-8?q?FR4fcC8MKd9uaGIO422muqrpPkSkesyZN3/Y65vRId81+PaZ8wgnByT0XeSj5K2S2?= =?utf-8?q?YjizwWYGGE8KJC0hrNfk99B2bzJKWwfXZKGiMHl+sLYytUPmd5h7YevlgoQtb+KlV?= =?utf-8?q?Yi6kD6w2Vvd0?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR04MB9550.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?f6tE8R/y5lDYi2SEXXd2bnzds7PV?= =?utf-8?q?jwRpfIqHGj1nN5DHpTjK+fb7juJ6A9SMdoQMb1sIlrqQuC1lPnYJs5hoKFDXUJNkn?= =?utf-8?q?z/xABMweT2Tp6MmSp43RR1vIZBRylRu0dWON7ipPLiAGqH3mz9B9N7W6G00WTMCtU?= =?utf-8?q?7ln7oZXVujGzy6RXdimo4PTNBkXDpRts022Bm2fCHL3T4HvwuWO1Dug8dnBi6a449?= =?utf-8?q?ef4b8KUMqFMS26hX7uSpjq/mQzzUd5FiGoUt96lZXBEyp+NeS+Tm/6nmY07mUFB22?= =?utf-8?q?s3PJv29KW8EVbCwQ7BGSvkqdIsvyFAcIxOAe5N8OAq+hi1hDd9BaJVlRauj/SxeQd?= =?utf-8?q?bs3Z1Eatkvn+rZEV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WM+KaoIaWBWneZi5EZbly653b3AwHzmgE6P/e5IGZuvO?= =?utf-8?q?NdDJLM+Hez0Hn3FYr2Gl4Ja9FMPhsAeh5rFNa3D7xuTptkV8dGUafEKTj8zxlkTRT?= =?utf-8?q?tAOIrh77G8ZZJ2WAN7EHQT4MExohjdswVC7T3sUq0nKz1C5rGHK2YiGNMgT5T6hal?= =?utf-8?q?yVW9DOusuwK3BtD26Jyy8vmaJ/3mT9czvN5guEBbiB3bkq98yU6jsomzFnVO5/gf/?= =?utf-8?q?MstSXXtYWOtGoxBlAIaZoKk9jH3Iqz0CpJw7JHQNqnXIx82qgylJqgDLDTQyZ/2c6?= =?utf-8?q?a8idbeROKzPU?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74fc706e-0118-4015-3f05-08dd200e71fa X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 09:20:58.2748 (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: ytloR+1KeQkUlPafCdyGSLEvapYKANTIgg0PQzi4A7cbr3wa6hQEprFNcTNA4GcK97Uv981WS7rq/VsMZQOqxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9834 Introduce the compatible strings 'nxp,s32g2-edma' and 'nxp,s32g3-edma' to enable the support for the eDMAv3 present on S32G2/S32G3 platforms. The S32G2/S32G3 eDMA architecture features 32 DMA channels. Each of the two eDMA instances is integrated with two DMAMUX blocks. Another particularity of these SoCs is that the interrupts are shared between channels in the following way: - DMA Channels 0-15 share the 'tx-0-15' interrupt - DMA Channels 16-31 share the 'tx-16-31' interrupt - all channels share the 'err' interrupt Signed-off-by: Larisa Grigore Reviewed-by: Frank Li --- .../devicetree/bindings/dma/fsl,edma.yaml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml index d54140f18d34..4f925469533e 100644 --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml @@ -26,9 +26,13 @@ properties: - fsl,imx93-edma3 - fsl,imx93-edma4 - fsl,imx95-edma5 + - nxp,s32g2-edma - items: - const: fsl,ls1028a-edma - const: fsl,vf610-edma + - items: + - const: nxp,s32g3-edma + - const: nxp,s32g2-edma reg: minItems: 1 @@ -221,6 +225,36 @@ allOf: properties: power-domains: false + - if: + properties: + compatible: + contains: + const: nxp,s32g2-edma + then: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: dmamux0 + - const: dmamux1 + interrupts: + minItems: 3 + maxItems: 3 + interrupt-names: + items: + - const: tx-0-15 + - const: tx-16-31 + - const: err + reg: + minItems: 3 + maxItems: 3 + "#dma-cells": + const: 2 + dma-channels: + const: 32 + unevaluatedProperties: false examples: