From patchwork Fri Apr 19 03:36:58 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: 13635588 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2080.outbound.protection.outlook.com [40.107.6.80]) (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 4BC93D26D for ; Fri, 19 Apr 2024 03:29:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713497366; cv=fail; b=EhlgQOBKa17FzQ3ZYKJgenCEEZFKSXLxj/MyOGk+rsltBzR+LqDm01Qy8zOOPj74C3VFYCBlr0eqjRO6MYXBid0GVqNjHMatAyueST3MWSW5HX/H32VKGhLKM5AVs+fhnQT7LX+WwrJjF7RJCOlV08LupwUH/EIB6Hw3wJ/HH9U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713497366; c=relaxed/simple; bh=GtBcY4T6guoUq2WGAT4PQ6BeFvICXknALT9xiNftSgY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=TDYuO+BPKQ8gyw+3s7Zz0I6Ncj3IJid3oVHlExcidDHiQ4mTdQ5lI10ylr8xqFVLgmTZpxLVG0VaQfKAQukdwVf01CKeyvoDxMCf57nUNUEuFVBmbW8i+2sAvFaOCAd9u0Nqu2LYp4hKmMxkiRAsIeYSyrCZNBMc6+TecwdHdno= 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=WEPXEFD5; arc=fail smtp.client-ip=40.107.6.80 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="WEPXEFD5" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CqBQZnL92TGA3hFJZYW184O/JI3GrTvNcBLCoT0VsHAEmc2XcfvC92p1xbJLpZ9fUP/EItAkPAmBT/F2zaA+TD+iA5PCEZao0tOQ9NmQREgmVNNsk84AwFBFR/PwxNQ8KydeqbaCM2FzjooKT8SO0NRoRrmBxCik8cWM4XAcwZcwfPJfSOIOCWqgjEVFMxhpDG+ZCu+D9z+eRSHrNOlHFGA2RBddCTHjDWGfRQypc3prdQ10DKkp5eeuBrV943aBE+dyYWcN/3+n1GWyMs/OscasFFutWnIj2Sm8Qlb3vHJXrUjVaR9tE0DDjfsmBqMDNCIuKIyAHo900p1ibR954A== 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=E376hw7okZA3gyRt6FHqVVoTkDlyzFXW28a/g8TKz6g=; b=eYN+yPRoEEqE06Y8UVLRxQPlv7AYOuq18nazhjs94pQ4dDZKS6NSzeMQAPUmcNcTaCt5EJ0RyEj47WzG7K5C9TUYZd240Julxm2m4RUc04da8T6qwRk/ZB6zFZoC/jKgw9z+GL7l17DXCJ9OFBcLxG4fwmSMGQPadBkCGAv3v9IzhkXgNtPjmMPJFDBw4MdmnGwiyNXdzaL2eRbrZfS17ZqxSrYQaB8JT3lFos/6g58oHR6qFr4foyoe9NOKD/sca6yNo226xZO5MxZir7BQFyGhMPy0ml4DyNO5161cAYSL7Dft3nOYgFI3uqvH7iLzpz2r/4a7nAAt7XqnFpQvjg== 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=E376hw7okZA3gyRt6FHqVVoTkDlyzFXW28a/g8TKz6g=; b=WEPXEFD5H2l3NeFXf8470pESgfQRw2qorLLxz0bpXm0OZVu+ficTJfZKe7wycgrZVhGUZ7wHUCc8mAq1pIiAuVerJGJ7JI6P6/tfTqKADfdDVhYIn1J0itRh6Ojxd536JrAPrMWdiKXcgfvuJfwa1j3D4FyYU+vX3VfpoPTsEpA= 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 AS8PR04MB8802.eurprd04.prod.outlook.com (2603:10a6:20b:42d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.43; Fri, 19 Apr 2024 03:29:22 +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; Fri, 19 Apr 2024 03:29:22 +0000 From: "Peng Fan (OSS)" Date: Fri, 19 Apr 2024 11:36:58 +0800 Subject: [PATCH v2 03/12] arm64: dts: imx93: add dma support for lpspi[1..8] Message-Id: <20240419-imx93-dts-4-13-v2-3-9076e1d7d399@nxp.com> References: <20240419-imx93-dts-4-13-v2-0-9076e1d7d399@nxp.com> In-Reply-To: <20240419-imx93-dts-4-13-v2-0-9076e1d7d399@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=1713497841; l=2710; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=JRiwvwf7zsQWFnwrGpbPk1gr8vwpQcTBOuKKxzQjCkU=; b=+F6Pl3ZCd52DVDR/2m7Wzx1Z9GhWZqrRbpwcFDIOtYHSu1NK1BBIcWODlWRPk9mLpJkGI6J0J eUls1SKHefTB8btvyiJ+cF/l4ARJDLSiGe/gtGEMyHIdHbU6N/oXbzz X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0025.apcprd02.prod.outlook.com (2603:1096:4:195::21) 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_|AS8PR04MB8802:EE_ X-MS-Office365-Filtering-Correlation-Id: 21ade895-351e-4b41-9d52-08dc6020e77e 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: P2ztm4Wzq6LMVVUZ7wDOGrK9RxJomHKCrjFylpR+QR+eXYLduIS2hX9fqOwxvwlwMJd0ZCErLVHm9zcJj6rtB258g7bZ2FZaiG9bl6zboBHmiErdXKIgV9CFUbofg+JKxt+UPK7Sd2Ni3UOJPGaNozijvVqu6/J1r4BANfNd2adT+URZTC+7RQSr50ZwPVRotFMV/Vfm8ESAgcd7izwUK2eNxZos1nnXLie4/OcKqKtbzQ6olfDG1SlYp1xVS7egko4502Uif2SWrjBYz6r7PT04NuGmOiRtkMLI69Hvr1IlibAosujGCy0aJjDiw9/jFsvgX8Vwtn55H7TDaxP23OOPaEKwyC52vZvu3ANhKX2xl6KbfCEZjY1PiEcdfDACGMg/WgVAtpqtEPXsJtk1z+x0TacBiFX+cLdeoIuE9rLiUhQQd4dEnbG4pfc9Bk0sPn0dRezMV7ytA2yyo33I8gRsDlphErJ8qXu6WV1yjQkv61UXl52OwXazERj3xipVLmtMtTFZoQPLJ6fXyvYkMybGFslte/WNFQE1caZG14Qj75iP+A6H9QneoL14GYH+8tV5GV0X85FkrBcNNKNxxR9ckcpgfm08wywsAq1p3b6PVzukGsLO+RC7tQPOmo18xTqsiIcMBSk5nM5NKYxkMQW4hMQjnc1Rn4nbVk4zk4uXxmTLeAIgSkK1fsK4+WHsbJx4FH3LfELiYC4LX1fmRg== 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)(1800799015)(366007)(376005)(7416005)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8N+SFn75OVtKzMOg6bmX5xQhImpW?= =?utf-8?q?iK6Nb9Hk+uWRMg+C2JT3HbU/EFdBSVgM3jQA8HfuUtd7oo7c9SeM0KoAgvS9V3uzU?= =?utf-8?q?uQEfki6v1lT6BRHdjiRTcUnm8lREwHOw1h2kLzwykgckqZenONBa4UYYwlvPZsh6O?= =?ut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q?FAk6CCKa0sKKrvApWYX/Xk179F/dkJPOeJoi5eukAGnGp4k7fVivgQvSmIAtOhgrd?= =?utf-8?q?q7LkBoE0QrfuVwbSDnWuT94ZYba2rHyyFo1PDy7NgbR20T3m5/PClHmFqKw0FMTTf?= =?utf-8?q?xUVxR2m4Nk9VVEJAujpHGbq8BAnJz7OlLdRLzmYW0HjyqrO/SueaF1WhFKSifCB+q?= =?utf-8?q?gyC6TJrzf5bFdfaO8LHkm3H+4m0BfvhJUfIEWW0fiBfQVZ1feB9du4i5sjMOkCJDk?= =?utf-8?q?ePLpsAtjVwmFZxAFMO2Oj7SI3Su/ZiN8Vk/9vVE8ij1+aN/03DvqPgeTpY/yRYMll?= =?utf-8?q?L7luyUjKYB7ZVE8x1aG4z3narS0645bZDc5MnNAGXmsTOlA72y+04F58ScdiuwXbb?= =?utf-8?q?uSXNyJYTvw9mw9c64nysQ6c7ERfXgOGrkuDTAFr2Qfsk7+O112kEc6uJK0x0x46fa?= =?utf-8?q?yEVZw7aCDsBc1yt88hTW9fPAun41B0+4fa0knVMz909ANt+V0jcGrz1RlMIdnCrbg?= =?utf-8?q?wuSeVKR10k11?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21ade895-351e-4b41-9d52-08dc6020e77e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 03:29:21.9657 (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: h6QpIsm/0FnjuXxbluA+sO9bHL3UhN5KWlBkeQoLYOxUtEVSpXIVWve+YuRKfXwJbLN7w4XCaSdkZgO6TCtsZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8802 From: Peng Fan Add dma support for lpspi[1..8] Signed-off-by: Peng Fan Reviewed-by: Frank Li --- 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 93c1d0fae291..d762d96afcd5 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -345,6 +345,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -357,6 +359,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -725,6 +729,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -737,6 +743,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -946,6 +954,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -958,6 +968,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -970,6 +982,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -982,6 +996,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 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; };