From patchwork Thu Feb 29 20:58:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13577653 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2040.outbound.protection.outlook.com [40.107.7.40]) (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 3E4A6156D39; Thu, 29 Feb 2024 20:59:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709240350; cv=fail; b=q/SwXXPtF0sMtfSbPKn5AImKjbGtj810NGArF/Ln/+aLOj/IGVe5JvoIiarXzPG3Lm5OT79helM2MZsGNVpSUaQ9YxsRX9DFjjcpSAlO2OAY/WcFn5bo0YMaru9tn4WPqYW+Q6kCn3684LYiNvgBzAtT4Izl1E1LXjYoPcJvusk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709240350; c=relaxed/simple; bh=umk7tiQl3nFvqCLcx+eoIhCPoTuTuXM5stO3RDtH2kI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=K3VupOB0TvukovGVdPUy2ChyuE0Nugl+0ZiimmLX7tBqXMuVs+MjjK9MC2HSXBYcDlzS8Uq2xnk62Q6ZxmT+0c4B6DJS9+a5nf79jgYwboFi1MmaohTXwjlIgfn7uylnLJrhZ3jWttwdNXBFNMEES/EKQVN/u1K+4VS03eRv70o= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Tv5e32nb; arc=fail smtp.client-ip=40.107.7.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Tv5e32nb" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g4ku0rE388/mlOfYzEnlOA10054geGmsFq1V8syvdT+KphTgTuCP6Gx+JcCTC+oOBFl7fpNYWX4/wOBS4kpUSiQUUbjac3ytHQcL6V0fIpDgbfAvCNtyX7qzlBedPjmJUXG9ORyRveInM8xKG58uiKPWdDrvyoRNV0EokmR3GpYb+8mz6kewWC1w0WWZjnWp+AVB2Yy+l9AOLCnnTeQmkC2IaXWF5SMtQ7ynn3GjfWqBUObnboa8ZE5bjANFf6qbcCsdKn4rhgZPFFVioj7Mre5j08LEZGsdL7QOjKe68oaXfius5u8Z6EZ1O1MF7pyex1hJkWWobkIfEf+Ab8qzpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Fkn+KGYliN63GmoL24vAX7pv+43UCQRk1NQj84R0U8g=; b=Ur9sk08EekBUljDSImrMcmEQl0kCNtKGx1rva5kBPqTclIV05TY8AQJS44UBe5UH7389Z9/XIUpz5+CN7+h+uyTjjSlc65WziQY4Z+eI47rLtjXY4jeo1KBSFQuQTvxXYna7L22roqM541EIfdnjyX8qjG0fumqu9GRp4VcuXhE0wLNcTXbLtbVr45eq2gVIUIkOO7CaQsHZ1234gRW2Ln9Ci67WZ0zQ1P866RVoEOGMh0L9cFyDXUoYkBezNEQXEnXCciA2BTuxwoIrRjesKQMT48zqOFKen0jEzxOOXFIQj7wgzaoJ/mfpGh9m0IknZJM9GHiFjAlqukBcJTG9/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fkn+KGYliN63GmoL24vAX7pv+43UCQRk1NQj84R0U8g=; b=Tv5e32nb7j25Hwhh2AhY4XefIU1HJ5JWSTQtgoNISfsV0nJ6I1s/06wslAvoLu7jf8HcCAkHrQ2zR/xYxfqUvwErF11+0fbl5tFndQBe6oZlyT6wjJYvIFTV/87Pe7KXAtbrKpjrDhOlugHk5i9mTflc6f40ResFxG3MhqWlk+s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAXPR04MB8750.eurprd04.prod.outlook.com (2603:10a6:102:20c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.40; Thu, 29 Feb 2024 20:59:07 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Thu, 29 Feb 2024 20:59:07 +0000 From: Frank Li Date: Thu, 29 Feb 2024 15:58:10 -0500 Subject: [PATCH v2 4/5] dt-bindings: dma: fsl-edma: add fsl,imx8ulp-edma compatible string Message-Id: <20240229-8ulp_edma-v2-4-9d12f883c8f7@nxp.com> References: <20240229-8ulp_edma-v2-0-9d12f883c8f7@nxp.com> In-Reply-To: <20240229-8ulp_edma-v2-0-9d12f883c8f7@nxp.com> To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peng Fan Cc: imx@lists.linux.dev, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Frank Li , Joy Zou X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709240333; l=2253; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=69rs8YqYZCymIbs+K13VMFKLlvI1eiJnh+HrTKSOoFc=; b=xX8N0++pYL1AEHJXDs2/OPlAg9/V9HhdlB4GUXLEtluiFLtWTSz6mGjpBTvwzJp9u/UrfFt3j WYbxfwISmPGAvbGKX3g4OGlJm2u/H3YujwGsNRdT04vdfu8pPiNGKBx X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0060.namprd13.prod.outlook.com (2603:10b6:a03:2c2::35) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB8750:EE_ X-MS-Office365-Filtering-Correlation-Id: 0cf0b413-f8e8-468b-9ee7-08dc396944f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jd4YuZRMp0P+0PZTR1xb0nauU+/u7aqMSNnM0/9rex9dfYCpkHpttQbgob8FxHt6Kkhe47+FGyxxdYd5zmpVTvyTa5x+rBEhJV+AwmzSaHbONabt3znzXc7Ku/CJ3ZbxPIeng1NGDH6pFB5f+tOPiyd0koGnXxGNEHaqLW3x9ZtD456UN4dMexcLxupYKMIfGvQjcx2TNn5WfdYPax90riI7ha6REnTjLOEk6reuzb947bRBUdeMPMHrWo6l9TZodr+bhtsAdiC4xHDRnWqi5z5cAiPXUPIejQMibyv1JL1f4VJTiugrHu8hGXooOHsh4l23xdlZ1rOwa7g2KWLyaBBZltFXuWTb8qai9rYQwL6fYY7m5lZ++Yj78uwCCxzBFwTNxakm3yXHikdjVfI1QN3yhd35T/MR4AvbWFmPCVLfMKCZnfy1mHIslXvsMJY7UE4bzrk9C2wGiUcQeb75D2wL5ZQ07HyYqu1NCyWt0AdbPrQ+51tiPONRUFyRrjw5M9tVqi4d5RlLPZ4VlpGifykkkh9jpDcfhvOg0+3vbSLUWP9xFmiDCnKaDpLYIkaxhnswn7dFT4sXgJWz/H9KEYCGBfLp/yHF07cuSM6rsLUXZwghjy5gsu9gDj6JFTBbvCg0AFnpZz+EqxdzMK1l6F9YEfTCl0SLwXM/YOEshK/VJhgdrOOy3PfYfJkDE5sADNaB0It+3dHEPsC9qNdMcGOkV9hkoiUZjBS5+Iv6yTk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?eJudv6kOqS1N1t9+k5yrpEC2zSzQ?= =?utf-8?q?38j3cA7/v8yulKB1o4/7PGJ9bhH7i7ZXxpMprSmDRvIA+QgQu11o/FDvMIDxIOf6z?= =?utf-8?q?So5jCnkrr5oAbiYdGq4j1JNyjU6pP92RwWS/v1ZHNsCN8sU6+ztoTcTR/I9HR7KrF?= =?utf-8?q?OyEGS8RVMpOjBjQswsQL4C7M7aY7ZbfkJbDYnQ3szamit2dBFMmQM8m4lpWVWYjFd?= =?utf-8?q?yl3tSB6YNej+2b0UB5fjvPM1P0il6gnI2qkD2oksnQiMGUpGDY4t7aOG9IwfN2DWC?= =?utf-8?q?O6w7afEt/44sYpjbTMfd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BxBq5cFqh7B1rc7YEjEm+JeDmEU7rk775BTeq6ZSb15s684SN?= =?utf-8?q?X9ezPvV0LPSJjZE8UEDogI69OUVqH+3rQIlZ6cguynOI1uMSLveN2RlQ/TO15LuYZ?= =?utf-8?q?sG4koMTUuhK091BB7snXkcy2N7rCODnjbsP4PGEIRPvXF5PQIuFGvz+qBJVAvDc6T?= =?utf-8?q?O3+rRwV4RFKIYZKRE7IirlgGImqVN7YyJgfKcOjcLPEUo9bEbzi1Ci9zeN+06clhG?= =?utf-8?q?ONwJ2i6NTn4sSaT5uS04QzQqvz+EgTHRodEpQ20rfjZtRSgoR+oW2XXuqWqLxe2hA?= =?utf-8?q?JeDZdWi20VaQn05G9x95QtBHobO7qEM/mfWnuqE3sEQzU+c4JGUiF4qrP0b5INjNS?= =?utf-8?q?7y8t3xawK1qr?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0cf0b413-f8e8-468b-9ee7-08dc396944f4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 20:59:07.1838 (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: Phse07WjNjdaFCr0vXtvFV4jwr5zoM/vpMFpWbIJk/2XpeL2gssn3xyFPVOU01ao5hLO8Iw/22lGeKVt/rR3CA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8750 From: Joy Zou Introduce the compatible string 'fsl,imx8ulp-edma' to enable support for the i.MX8ULP's eDMA, alongside adjusting the clock numbering. The i.MX8ULP eDMA architecture features one clock for each DMA channel and an additional clock for the core controller. Given a maximum of 32 DMA channels, the maximum clock number consequently increases to 33. Signed-off-by: Joy Zou Signed-off-by: Frank Li --- .../devicetree/bindings/dma/fsl,edma.yaml | 26 ++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/fsl,edma.yaml b/Documentation/devicetree/bindings/dma/fsl,edma.yaml index aa51d278cb67b..55cce79c759f8 100644 --- a/Documentation/devicetree/bindings/dma/fsl,edma.yaml +++ b/Documentation/devicetree/bindings/dma/fsl,edma.yaml @@ -23,6 +23,7 @@ properties: - fsl,imx7ulp-edma - fsl,imx8qm-adma - fsl,imx8qm-edma + - fsl,imx8ulp-edma - fsl,imx93-edma3 - fsl,imx93-edma4 - fsl,imx95-edma5 @@ -53,11 +54,11 @@ properties: clocks: minItems: 1 - maxItems: 2 + maxItems: 33 clock-names: minItems: 1 - maxItems: 2 + maxItems: 33 big-endian: description: | @@ -108,6 +109,7 @@ allOf: properties: clocks: minItems: 2 + maxItems: 2 clock-names: items: - const: dmamux0 @@ -136,6 +138,7 @@ allOf: properties: clock: minItems: 2 + maxItems: 2 clock-names: items: - const: dma @@ -151,6 +154,25 @@ allOf: dma-channels: const: 32 + - if: + properties: + compatible: + contains: + const: fsl,imx8ulp-edma + then: + properties: + clock: + maxItems: 33 + clock-names: + items: + - const: dma + - pattern: "^CH[0-31]-clk$" + interrupt-names: false + interrupts: + maxItems: 32 + "#dma-cells": + const: 3 + unevaluatedProperties: false examples: