From patchwork Tue Apr 16 15:26:37 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: 13632043 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2063.outbound.protection.outlook.com [40.107.22.63]) (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 0BD9F1311A3 for ; Tue, 16 Apr 2024 15:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280739; cv=fail; b=bRObj1ghnpIBnKdUWKX9xp0NOwuKYRgM0iTOppIU/1p/pF6FbJz1jGeow/N8/A58mjO+IGQpcbhNSg1vjIp/flCFW+FyVeG6958cQdAuChMGEIT9wPmbZAnZPuEFfmIRNO6Cu6wqhqnd1U/vEMJv20QBNkbvRBbfHZjis91CRj0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713280739; c=relaxed/simple; bh=yzWfiTVSSjZ+6X/d+x+YEU0zvSv6e6sN+nLMDJ1GVys=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fXlN+8ztaJ97XdSrnxwbQh/O/n95kvW1YoIo5Aa7arCQQYiKVbyF+VovshTT/Fmg939r+36kkX8sFvyLKIXz5xccHHiAfO2X4zxEDAyj7zCZAag/O/9/XUjZW+Cv3UVFIiQeE16ysbakCsbfEpEzwof5iSU7CpFyKNp0nx8vc0s= 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=mVJ+I0Xl; arc=fail smtp.client-ip=40.107.22.63 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="mVJ+I0Xl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EO8l7EVh2zdMqCfNE9rr19CkuWODpxuMwDGUsRQ9xYf1dyxpel5eB6o+KC3fRxOZUtVSWjOVPEwDkkImV2lVmU35kT1xzUum6Dlgd85QF5cJIEa013N3k+UjYPuzJC76sth6libC2ZDbxB/+lAtdb6xJsy7E6x8VpYWmyAq0Dg6lhMBEKQVGiksDqcXli2L/a+ZZGhmZi9fVG3t4B7d8xtR+JmqEhQjdNdtan97o38nNSDKz/ycyqCJgIpzVb9D72lk0YTQBqHl4/vC+INirw6LUXDSh7GkvFR1xp+/AitMcJwi7PDCPguXf+kNSsnyo+N3eC5DGLyYnRlltVckcBg== 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=5W7NKezwmELsSFrjWyw98/PaLrZg5hjO5gaIBymVc2w=; b=PcvT/iaE4vGT0uTbV6E/UIbdTah2/0lmvcE3SS6MvQBLiKdqNgCendTKUePnIGJ92tZ3pn2NbK7aLYw+/QKHq59lYUecvsW3NLb+Ywt6vZhsOD93BDi1aafLJ5WsqS9w0UCYs1YdBxmUqgiVipode89aLo0bAjAInOqxb9av6bVTcczoTlMCLIU715UJvtajiiTdU7SjtBzNo84HKmCZA0UW5/jrjyTw3mWNBQCxjUwAEoFzma23VPWHjGLqIPGHvz7cRSt7kLe03awwdR+y2W2T3UXmzQT6piso/zGlCF9hgTO+u9fK88f0a7uR+/REMHGhL3QbNIDbJBRnUjGKiw== 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=5W7NKezwmELsSFrjWyw98/PaLrZg5hjO5gaIBymVc2w=; b=mVJ+I0XlKYcLUB4d4StS6+lxkFrqptMkxrmZWVprGBIAq5losx1mx+y7IVjTqjPeaYremU7CIjFu8sPvT5Tp53v+/zZXm7F6g7UUvQqe7IwsdNh3HYF428KB+fl9nw2HpWIPL4PA867BxJQh9zU74CvgiGsQSwLO1t4JySndDmk= 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 VI1PR04MB7039.eurprd04.prod.outlook.com (2603:10a6:800:12b::21) 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:18:56 +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:18:56 +0000 From: "Peng Fan (OSS)" Date: Tue, 16 Apr 2024 23:26:37 +0800 Subject: [PATCH 01/11] arm64: dts: imx93: add dma support for lpi2c[1..8] Message-Id: <20240416-imx93-dts-4-13-v1-1-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=2626; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=5oF/x8PxcPbwIEPx68AVDmK3DdSghfjUDifVdGG1b3M=; b=YIIGhFctfj2jzStz9MY2S+slgtBqrD2cO3DF8ZbppxW2fOrjBdfeaG0bIId4JKpUS/sSzgO2h D8dVwEdY9WWCZ7Q9+fENnYcMVovDhUvXcxR19LAbYNO0nUENz0tP5Gw 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_|VI1PR04MB7039:EE_ X-MS-Office365-Filtering-Correlation-Id: d213a94e-3c66-49f8-16d2-08dc5e28887a 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: bV00EfZv0E6NI8ig3tJ5RP6cra10WmX/08d3oXJO/zp3u4Uve6CzXKCAqYq1jUfeA5+6aQTMPXqXOIxQp2DZ0+7olCBxJBuQiKF+HP2EV4I3Xr6V3/Y4OPLmbCbiXo4+CMV0zx2/TmtrgBFyvWsv9LK0lxAsfAfdcZfWgU+H0SAYvQHR5JhejcdJyCEMzZonqe+B9RwvNfOuR5Mqstq9aJmRmJuDofqdumFyKa/Wg20ZX7FDj/yC9vdTf8WaWNwo/rSngLJO2oNexyUmmA7zlKppMb1U6TpO7kvUP/JAjNVuA6sl/913qEst6Ilom0tOxJvah2aTjDIYiI9wMEkvsv6pIqZLP7flHpqcrhaxXnQpsjpyndsqeHqF6b+DDMBneJLzGsjxhRDJuQGH235mJHwvfrs+HJ2I6j2IwKLVizrhjgV+Dq4GuJM+hGSqz1W3FN7t2EZ6hgK9juUgGGyXKmvRDAGp1cwUu/qLqwikw4n7HMzqz1V3nAABM1LQI0aW+KwStX47nwlwU9C+n9tXwLCiXYDGacIPsblHyVnA6tFBMDDRy7qqKmjKWcKlaeGGVgSHLSadduJiulMCGHB0KpPtjjZgMN6gfjIAdwSU2GeWoIMncwJxWHAnSxHgFHL3EwL8QGaJd7reeNkL0s1lm1wvFFlC9m9TIkMZrSXdxMsFeS8Rj1sXg0MWmxA5z8+CmH/ugiXFaffjoB/cKDA9zAxbc/t3J1oHGiskPgZm0A8= 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)(376005)(7416005)(366007)(1800799015)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dMU8a93Bna/3aG2Z37/AetR/fDzA?= =?utf-8?q?OvLKZQmBA4qfbpZ24nN5TrOEZ/0V/RkIfG8MeZI44RXqdv6upw1SIOYivcN7F3Hv9?= =?utf-8?q?xOU7QdIchsJzqdVFmdTflMmEwCtURrBUevZMfby861mzDxx3gBI5UyP4yRHmf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-8?q?ku0iLDjaGgC4c2N/Ny57j1CvTQurTLGYg/3XrSvtHimYP6I+PfnqBhDRPH3gAGmQT?= =?utf-8?q?kJRGfCirgEtgOuBczM+lyUSY3mke9DzusH0ANSi4jkLVzBQdShz+Jhn6PQcEyb/E8?= =?utf-8?q?JbVhL9VfbZyVCH959eNyYh1KyG/+11wFCKQ4isVKaV3gfrCfPeKOpUJ+F2buD3ABG?= =?utf-8?q?BzewOnkjXaU5YYuE1+raBwV6TVDnb8iPfyfl6407luHnwzz0ZbqLAm9KA6Y/KqiSj?= =?utf-8?q?rU84eoL3yHGeS2AS4RsMiqjHi8PK73YcRd/CsY3wKzAnVrePS+x96+pVpXy9Pim7q?= =?utf-8?q?nPdO7472uHUJ85ROHDmyLg4ZtuaPYhn48hshtCJ9Wpm926XpEXj0I8nO0l8LymlqL?= =?utf-8?q?PiB19yx17jqWov6VHbEFjBqddUw7yXgaqwk8FZ+Esa2FnHxYIC6aa0JnBuP9Ikg9s?= =?utf-8?q?KtMAxk7JbM/lqPHZHeg+yJ/WsQFG2oJR7N3jt5FP2xIeLIUYEGcBKMPxYKJQKQ8xU?= =?utf-8?q?ZQJHHbY0l0J2?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d213a94e-3c66-49f8-16d2-08dc5e28887a 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:18:56.2901 (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: 8ZrRFq3UDlA1yrj0gszAepwV3zla5bhVCpOW7YQxbYRxGyZCgX/kB5HmdMkUi0QFiYNcAQeq6/5bEz0oyuCHHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7039 From: Peng Fan Add dma support for lpi2c[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 b8ef9b938856..5c08e8787989 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -316,6 +316,8 @@ lpi2c1: i2c@44340000 { clocks = <&clk IMX93_CLK_LPI2C1_GATE>, <&clk IMX93_CLK_BUS_AON>; clock-names = "per", "ipg"; + dmas = <&edma1 7 0 0>, <&edma1 8 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -328,6 +330,8 @@ lpi2c2: i2c@44350000 { clocks = <&clk IMX93_CLK_LPI2C2_GATE>, <&clk IMX93_CLK_BUS_AON>; clock-names = "per", "ipg"; + dmas = <&edma1 9 0 0>, <&edma1 10 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -692,6 +696,8 @@ lpi2c3: i2c@42530000 { clocks = <&clk IMX93_CLK_LPI2C3_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 8 0 0>, <&edma2 9 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -704,6 +710,8 @@ lpi2c4: i2c@42540000 { clocks = <&clk IMX93_CLK_LPI2C4_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 10 0 0>, <&edma2 11 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -881,6 +889,8 @@ lpi2c5: i2c@426b0000 { clocks = <&clk IMX93_CLK_LPI2C5_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 71 0 0>, <&edma2 72 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -893,6 +903,8 @@ lpi2c6: i2c@426c0000 { clocks = <&clk IMX93_CLK_LPI2C6_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 73 0 0>, <&edma2 74 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -905,6 +917,8 @@ lpi2c7: i2c@426d0000 { clocks = <&clk IMX93_CLK_LPI2C7_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 75 0 0>, <&edma2 76 0 1>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -917,6 +931,8 @@ lpi2c8: i2c@426e0000 { clocks = <&clk IMX93_CLK_LPI2C8_GATE>, <&clk IMX93_CLK_BUS_WAKEUP>; clock-names = "per", "ipg"; + dmas = <&edma2 77 0 0>, <&edma2 78 0 1>; + dma-names = "tx", "rx"; status = "disabled"; };