From patchwork Thu Dec 19 10:24:12 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: 13914931 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (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 8D422222D78 for ; Thu, 19 Dec 2024 10:24:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603891; cv=fail; b=Kbgx7rrSscCLpnBQgA5VEwUr7urKDRlY9W0ctrEKN/l6KvmR/yEPFWhXYZJBtDoyiaH63/CbKJjrq2wLrrZCcBqSwBSlXTh0pUQODmjAPf5AagZG2Pi7kJYCX85cHPqZrjCcvxga850dg+TWvOYgOyAZnrESBlk7B8904/j2JDM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734603891; c=relaxed/simple; bh=WsjL2uE4Orn3phprwnKiCUlkr6URGo8bzo7MVbUmtbo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=De/xxg8nvY1qZvJkh0FarImFZnts7JZV0YOD1bxvSU6XyrJcNIkmiPfW0OI43hoROTa+in6tfsIbgGt0wIEXXQuF4EHe3tTFYsq4ljzu1yFtqGuV1uuySkSmkgoxI8+50fWxuCjxb0yJgTVsXHR8BAt6DvfWIcw9o/yYNv1aN7c= 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=jdhXL2Ie; arc=fail smtp.client-ip=40.107.22.82 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="jdhXL2Ie" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pr+cDDSEghBeIflUuDco/AcltJF9AqCVLSwpvf3lSzGz3+Mx0FZprjdpMspQV7dlUuh+cACc/C/VKzoJQ/2wbn4UU/nGcdOwAnm/tLhE2eSAJbsLZOIw5EnnV9Oi5OKoc/OnAXIEBD2hOryMFvQvNi7ItgSERh3Vrc28/u4E9t+hV2rctc8EDR4lQFiR+yBQu89KNWIRXDLeVJCuMMnz9yPZk+uacCxRvVegOPD3FKc36JzHTxHGsstzZ4iDD/NCeF6zbWF40mkCFbnmQHqe/+ooPpzjpiI6gL9y/4drxCuMham1VQRDP0sm0MaaYPLYDQZ0JG1ylM+BF2EBfHbNeg== 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=GAXQLzdE3sbA1nCo3fxOhMPjs1JwAPJ3jGDQ/6oDwvRLFL1gm91S1mnPhwH9/VDHHbKJEQK56BJahCo7NaR98L/nBXDL8thJqav5N6Dr3CAW/odb3SvVsIgvfI5NKdtK8qRkDmT+aYx7JSe3he854kweSGE3xfU7Ip/Qy/4vNtmPEzrnkrn1FvtlD0u6q6jOU9OZ7kzL13ieYqhdCWgzS2McBRO84GjA9l0mA2/cQ3l2GRdV+1VkoT5uiZRSW1TaZs0sqUmdebtUtuQ9d6XV3R/mo3TZ651K7C15qO+LDgRCPv3sBYpyDT+6wJHH7tK8EHqqkNS56OK3gT8VYl60aw== 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=jdhXL2IeYscjgzsOzxNOFrC3JJvtHUf8skBfFF/76Hyc4E85Xq695wbdzVKcZ6L/9Juc+mKgN/lb2/LUtSsJfb6nNfEbVbcdOtjitfNZYAPXXxcnt7hkg1AToiZOqTlRarX7sKIlpHFNfTlKmnqeQpb7FTsADUTPoi+UzFKNjVOqCHTgesDW+ZLx9TJkp7uO6cRsaS/sIvf8afdKhLb61kh7ADsPxrbu1Knoh0dzH5RKK4vfGWQzOJ7fEkr3hTVs7KMsGhb8YyJg4R4JZbSLNh9rLlIxj1VVMyvbsvMVvwKW5qNfhL6IyrCPVGnk/sgG6Lu8sUf6W+dDCAyBZfPEKg== 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 PA2PR04MB10187.eurprd04.prod.outlook.com (2603:10a6:102:409::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Thu, 19 Dec 2024 10:24:44 +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 10:24:44 +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 v3 3/5] dt-bindings: dma: fsl-edma: add nxp,s32g2-edma compatible string Date: Thu, 19 Dec 2024 12:24:12 +0200 Message-ID: <20241219102415.1208328-4-larisa.grigore@oss.nxp.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> References: <20241219102415.1208328-1-larisa.grigore@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0137.eurprd04.prod.outlook.com (2603:10a6:208:55::42) To AS4PR04MB9550.eurprd04.prod.outlook.com (2603:10a6:20b:4f9::17) 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: AS4PR04MB9550:EE_|PA2PR04MB10187:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d7152e2-496b-4697-b841-08dd20175b00 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|376014|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?8ORZEyNKoKjmN+s10X/6EvyyYvE43jl?= =?utf-8?q?iKqFK/jH3KBuyDdK5O2bkQ/FZtVfWQda8hz88L4zcAzvQSy/LbwBefhvsi30Ik7lS?= =?utf-8?q?kcEgQLT7WoHRihf7lo//03uYV11wSG2qMqdcqWAjtOKACAWmYSQ7zYuHqa+UqFBm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8XBtaS7a9ssKAPZJjGZcWO59Zz4LVIU4N88rwfKi58ospLinuT+OQy6P5GOY?= =?utf-8?q?9tPKvOSJbc/lTdWHcoDVf6FZSmMLVNLpwgnhg7W/TC2cv9Olu+FxbW2iaJrhlMBKU?= =?utf-8?q?v5ACJxx9v8m1em8Yp3ttvuZQxd/qauWA6/aktPjHxdwb4s6nX8EDUobQX4ro3cl6h?= =?utf-8?q?tA83CDOKMxiSsG9NS2s5ENDeBscGeuznB7nanBeTbaaW5AZFC6ynxvSx34rIHGMZd?= =?utf-8?q?RrykvHL5TV+hmpJuqfLleBo3JYzj5xyaiSUCyeWZtAuEyXY4SxyrIpZrsAwE11M9H?= =?utf-8?q?YhPXWwJAKEiX?= 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)(376014)(7416014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?X3pm3+Cakf+VGULfoeF1ovULID2y?= =?utf-8?q?3/yxyBu7Yvkyz6p3NEKykc3s173iEwMHm44wisvq41oy/+X/ZDfEjLmh14vhHejl0?= =?utf-8?q?QWpYhfNezj2GgkGbyGmNIDiRzDzhN3vZG6mEns9ifqB45pPhHuknfJJDMlg2mu7VC?= =?utf-8?q?biRn3xJV4YXSrh8BLfkPAxTtYZW69Urvi3EsI7lLYEfgZkL4vdnoceoHEElUsiAks?= =?utf-8?q?8T78/NnQuTfB7zDpHlhS6a33PdsFPrfjTzwZ2WOMUGWSHeOc4jmIQB5og5PqJs5qy?= =?utf-8?q?vF/Hch9zs7R2Vpa4GUh+tqqyyf2MPlGWqcpls9eco5JyBBiux9EuxY/4MbtlQvFFG?= =?utf-8?q?XUUxE52xR/bgfWkAUej17L31P1e0RrhfdP3XNZgGw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PpO7gKPnZcbfJOLqkcpX/xNQRx0e+opO?= =?utf-8?q?9rQ97BOXaTRM+n+HZRySqYAGEXpGSezxbxQXLUaBo1VXP3WghCmROi3Ki++gKTAT0?= =?utf-8?q?t4ZWkCtdEZCfcxSLbUto6cvlRlEiiBrTELcOVjJlwqLu1flhc7ggi3OD/LohsW66D?= =?utf-8?q?pxCJoBzU/GPF84wtzZrVt7Hkb+W4DTmc1mv63rzBVXjWlEzT7uDdpDNQJOyQk+BIt?= =?utf-8?q?JpFfLdw8kjPeXzeXBQqxoGtWcfHhWCNHKkSkKW2dc8jmYcXGEqPtgb3GapWtN9sR9?= =?utf-8?q?JIamKGjiK3xi?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d7152e2-496b-4697-b841-08dd20175b00 X-MS-Exchange-CrossTenant-AuthSource: AS4PR04MB9550.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 10:24:44.0651 (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: qzMoRBDpmyHxPPmySjm0PvEzXDY2ZNK0zfkhfY7N4ljuH3SaKC+l6xXMwkUX8sorq+dtaX9kaoYmmru+ZbOm4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10187 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 Acked-by: Conor Dooley --- .../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: