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: 13632055 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DD3EC4345F for ; Tue, 16 Apr 2024 15:19:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=she77zA5nDu1vZ6r3FOS8jPWl2BgRlIIU8JOZjJqR8E=; b=JJQBPvri9260PMH3GIBIZg7CNh VoZOdbls9ShNHvzXpmZYK8tLC+LCTPg05FcNLLedPvElZ9Y222wvyZK7CSMpF2pSPNfe9RJjJQpUZ YcPbvzoaKuvPZtScMYYMYVsNLsZBSSfV4wwreWYfd74xRTcqLkh6Mqgf0TIHTS0NmoJOfxsG5CzpA wXm09dn6BaBHeG1G+omSXD6WFLmQICaoVDhalbfUgLFPnjXRBMl4+xEO6USB26Cfln8qwco5l8X4E bkW5mmmOJIhtObOAi6dzRHuFWusDP/4BGNJ3OTaKuRihloWRsONEDxD/FAwkxQn4X1QXNohMAiQ94 nR8EWx3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwkaQ-0000000CiRz-02BG; Tue, 16 Apr 2024 15:19:06 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwkaM-0000000CiOC-2SE5 for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2024 15:19:04 +0000 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) 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?xOU7QdIchsJzqdVFmdTflMmEwCtURrBUevZMfby861mzDxx3gBI5UyP4yRHmfhxk4?= =?utf-8?q?eyN9TBxqYizmRHaizJzh/DGAiahVFXru6cSu8/hbW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fnqBhDRPH3gAGmQT?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240416_081902_762489_CC695CCC X-CRM114-Status: UNSURE ( 8.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"; };