From patchwork Tue Apr 16 15:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13632044 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2049.outbound.protection.outlook.com [40.107.105.49]) (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 21A3C131720 for ; Tue, 16 Apr 2024 15:19:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.49 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280745; cv=fail; b=Hd+EoiaVzx6iS7ucFw8I4lmlqdhMyGuueHNiEswfSKrjOs2UF7ZBMgMujnXmqDgNAmJirnjNQpVvi+8jPts//609pKsY5kUaSoRM6kxLnTrNS0/OEKNVWiTuZ/uhQ9S+BPGqDyj2m7S5zFK6zwyVJCSDIY3JIRXntTgh9mALO80= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280745; c=relaxed/simple; bh=IXMf4KQMFhGV25dNj+i3nTWw4TBvIZXjY404c8XH5X8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=DbgYxTvWdfC9RGpyQOG72NMwhFiFjSgOW1kj7KJXiOLSOIpeN/xAuMcD1sZeIR9NNHBvc1j11gEj4BPmdHQp8FWqUlsrdmKN32SFd7LEPWVclz6RYNLavg5eN3eEALpjZwKuU8EGxF6ZLvkLdg6T/ql2kOp2uO2b924OZKd4Hew= 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=l95fRwHj; arc=fail smtp.client-ip=40.107.105.49 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="l95fRwHj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UnePe5MFbu/llRnwt1SiwLJwxtE0bAG9+bX5v2+07udq0O7Oi7XRvShFl+OQU0qfqEym/TrathgYUmPi/L9tEgBAhiMhflCRVGgnHxYiBm62LQ9PaWo9haGFzGrNzYjLyBZ8o2X0eKSVnHvuF9ldMQxl2EBIzhFMGnhEDLLsdhzqnLBLTH0KQ7qKp3mfjKPQviToGVxf9Q5bxSKg+pZcNjIkB48qXLR+PoDguj1H7iEl8WAtSlgBMWgm9uEtHQQc77Ul5VhRES7vB3ngdxYAsRwNZ/E8yvL3IdF2U9xQb41yJyMus2oYfZLkor3jKt22tE3DdRL6o1kHKHA7wZQxBw== 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=OBCyYSgZ3dbcOHRZmq5b9Yc6wf2ahyedhro1IQOgnvA=; b=CWWbECpB4NtLCSuUr/eY7EFX3eRjD6s04ZOYIO/+jB138IPk6edh9kf+i0ZcAUZv4imaPSWwChALoY40zcaE13xGdtxlOsVATtJJxba9uk0cCkbNJGF7xSiTMPcB7AB4jQHC2dboBMdSKkQwRhhxJpvLJoleS9FoT9UslmCry5GwPnLgM54XE8C0ZWkOo27pCK6/gFJtkskObqsPAU4rfxgDgQhVbOsXR16FesH9U4w0fIc78JMnygO+4T97lEGuoteQtXJFzkmCFKIwm9BXa+i52xbM0GWZuZagehiZI0UMSRGAxmK3Ss9HvWs1Y4r/qqoSA+TFuNcJz5fsgSEd0w== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OBCyYSgZ3dbcOHRZmq5b9Yc6wf2ahyedhro1IQOgnvA=; b=l95fRwHjj4D9Fqat7ihWYDT4uNHBUUQ0SpBeCuxxHqVnXUPqVORND9HBaNPw/HEJn9GbwTzxDVTFdIkihdjbfrOJ2ap4t6sfQfgRxUBJ+Ld/LKxglIT4Oi/JOAmlTWKacsgten2MMhOwC5G/Db7fcRU8u9MQqwf1t8rZZqe2/KM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS8PR04MB8183.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr 2024 15:19:00 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7452.049; Tue, 16 Apr 2024 15:19:00 +0000 From: "Peng Fan (OSS)" Date: Tue, 16 Apr 2024 23:26:38 +0800 Subject: [PATCH 02/11] arm64: dts: imx93: add dma support for lpspi[1..8] Message-Id: <20240416-imx93-dts-4-13-v1-2-da8ac02e8413@nxp.com> References: <20240416-imx93-dts-4-13-v1-0-da8ac02e8413@nxp.com> In-Reply-To: <20240416-imx93-dts-4-13-v1-0-da8ac02e8413@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713281223; l=2630; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=eBviQjjFgEN5lnYsEmqMS0rKXbfK975Zf9b90AIzx3k=; b=iV6D7qnDYiRSplSNenwoiw9hA6BNf+LaFIysCTNHARbKUZ1k9A65FoKbrmxHQkKwIykCv20HC 0II/ANZ7o60BwEexubp00KCG6wMUNcGTsh62FztyMBlIB0bTE3S0Oeb X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR04CA0012.apcprd04.prod.outlook.com (2603:1096:4:197::14) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) 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: DU0PR04MB9417:EE_|AS8PR04MB8183:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c33ecd6-43f8-4f73-7d72-08dc5e288ac9 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IrBtVg46G7qLmfWyUcvU7YLJZ/ppxluIova2z7IJAWupldWcdbUlbZBG67XeKB525q1LozQtDPdrD3JOuLDagtx+muvMtD8YrCLbhf0UYLQBmFRkNteg787lW5LxFaS9xhaOpgd15D41BQHJoy9FmmW1opJyTPXluXixL4Djhtxvt1B6k9cLMJyZ0gjWN6nbUIHbTQadNc73lUGriT/FuUCjp2BgzJzS5JkjITYQXmmDOeOsKLK8bm4y0iuzrdKj5XTknNX3LbOqHtnllP6AiaJJNJmCYbzMGynt9SvLI8B0wS3HMxLwdNRS4D63uPN6KmX1K6ZTh6QLKcDwjoWMWkOQfTvtXSWL0asAtvEpJPe5YpvEHjj0658I9E/NplCi5gyza4UgteVmQYJLKRn/HhsJLTIuooqKB8jGXM/trmheQa6v9Rilk/Glh2XDJ43UrVipXaThC6nm8AYPpXFuGFq/LH3sXu3RBAG7fX45CHtApbaa9q8csWlRrAXvelZjN+/ZiJIIfC8eHLlX+wCWbCMcwQSNUv9G+Rmg6VYH+AvQ9BLMb3VPxU9B+MQ9F68xM4t9hgc6tZiM9F+djwUXuEO3mNo6E1uJyN4hHmbImyLKPcuoklgjtWlc+hWcS3Z/9nLgeGubxz9fSarwmapDxCEVEah5+kqKmgIWUAQa2eJiJlFT8ZE7sgX3entxnqMQc5kLvrWVJuvGFPhBYotwejjwwhJnFP9AMwCNJ6VUVss= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(52116005)(366007)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Zfos6pmXqPzt9L+r4+ngMyqk02ab?= =?utf-8?q?gO6BCqo496O4PzFPmTp6j1rGR3hgBq69scuEvtBSEHKvSvJf14tFjA4hvl/26Z8cW?= =?utf-8?q?9zkaax8mli2RdCgQmGDIhYNu+J+2W9d8harlLdZmsorTyxstouGAizsw0sZco/jK7?= =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XotYvL08znqlrBu1Qgb3LUPSe/1kJnXqAcOmjg9g+iW7XvLSq1PvVrojewN8770V?= =?utf-8?q?ZToyWjcVnIxlAyDgbp5PCP/i36rBHnzdm9dtqIMFmDBnEdgWJm204gJALioJDgLjm?= =?utf-8?q?Ai78QrGpMavIjndCYkiJgLJuxhEDrQ97aCpVfAowgjk0X0dpYAAV5E2/sx840ivj5?= =?utf-8?q?mPeu21JtFyezweonJ0XDanmXEzbtOkZB1BRWNPUahwriBxNtJP0938mRIw69eEhoN?= =?utf-8?q?xsDoMBZ2v5Am2TgOdbkkgioqO6ihrKQa6lFBDRp4Jw4N4YqMfGKyXsRQkQzjlobyV?= =?utf-8?q?3qvBjasGu3woORBAXtaqQEQxOxOxTLXxSDVVXFJquCM+Q1IaYTI/1Dpd15iHKdlGN?= =?utf-8?q?AqciwE6SCnXdIuisovN413gF1gogl0Ib2HJzrmOB8R0P6ZfD1BDHlu9V585SvV+Wk?= =?utf-8?q?6pqUznYICa3ICIGHM8BdEMCkw6Xa3scfhlOeV/4eN7uV0aSxIS9KZRWHlP21qDYAK?= =?utf-8?q?hQ8SnpS/JQ6a?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c33ecd6-43f8-4f73-7d72-08dc5e288ac9 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2024 15:19:00.4318 (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: s9CY+D8CeXwnhvpZfKDe9CwW3wk/KaYKCv8EuG89mZejtD3L7I2PzFMLzYV/C01uOHX99H9he5IHNNx3Hjyg8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8183 From: Peng Fan Add dma support for lpspi[1..8] Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx93.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 5c08e8787989..00f2526c4011 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -344,6 +344,8 @@ lpspi1: spi@44360000 { clocks = <&clk IMX93_CLK_LPSPI1_GATE>, <&clk IMX93_CLK_BUS_AON>; clock-names = "per", "ipg"; + dmas = <&edma1 11 0 0>, <&edma1 12 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -356,6 +358,8 @@ lpspi2: spi@44370000 { clocks = <&clk IMX93_CLK_LPSPI2_GATE>, <&clk IMX93_CLK_BUS_AON>; clock-names = "per", "ipg"; + dmas = <&edma1 13 0 0>, <&edma1 14 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -724,6 +728,8 @@ lpspi3: spi@42550000 { clocks = <&clk IMX93_CLK_LPSPI3_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 12 0 0>, <&edma2 13 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -736,6 +742,8 @@ lpspi4: spi@42560000 { clocks = <&clk IMX93_CLK_LPSPI4_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 14 0 0>, <&edma2 15 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -945,6 +953,8 @@ lpspi5: spi@426f0000 { clocks = <&clk IMX93_CLK_LPSPI5_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 79 0 0>, <&edma2 80 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -957,6 +967,8 @@ lpspi6: spi@42700000 { clocks = <&clk IMX93_CLK_LPSPI6_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 81 0 0>, <&edma2 82 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -969,6 +981,8 @@ lpspi7: spi@42710000 { clocks = <&clk IMX93_CLK_LPSPI7_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 83 0 0>, <&edma2 84 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -981,6 +995,8 @@ lpspi8: spi@42720000 { clocks = <&clk IMX93_CLK_LPSPI8_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 85 0 0>, <&edma2 86 0 1>; + dma-names = "tx", "rx"; status = "disabled"; };