From patchwork Wed Jul 31 06:09:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13748089 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 65663C3DA7F for ; Wed, 31 Jul 2024 06:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=I+IjmRSHFT9092jQXqLQkEJ9RgRr5atsJ4FNP8n6k6Q=; b=S+1G9fUzBCW+D1izyNlcPHw1qW 1eZhCQZRi3GQIRksu5YosOvmth0LOR3EjkbuBA+kvxIxkzZADGGiLRw5ZqiUmESZ/03zeZrNUcVLy oZY6IhtfETP/k0Mx/yYBZApPxE6XAcg01FcJQUP68TUW0enjAlwWgmA4qqP4qjalf2wdiQQiJchay 18JH1vgzbIOTA5JtDPp0TPrNGPYqeQjHgp9f0UFUUrrxHdhJldU2umfxjL4HYL9ahQsv+N10vjCut 19ksAwMaiQOb0tc7pIFI09eP71+xlzQSsDc216npTfgsH5qkH9dSY4fhjkGOOdzvJfWUu5T+zzxAL Z7UxzuFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2Xp-0000000HT0u-2QfY; Wed, 31 Jul 2024 06:10:41 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ2XM-0000000HStr-0HdN for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 06:10:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1722406212; x=1753942212; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=I+IjmRSHFT9092jQXqLQkEJ9RgRr5atsJ4FNP8n6k6Q=; b=B3Sry8kCNyvZwUaNuoNFd/2nm25ZzoS9XprOiZHPkquYBIvx6czIyOWZ oDUW6vGyDHNEERgjVR7ijv8USUW8Sd4xnJxgitmivV+ltrxoCQmrzNEGV R/cxR0vI1ktre25bMJifn5+9/upPZyxQ6A1tfTtJa0xXvhdS7KyFAR4fM dxv0NnUJOOZcD4zpAdFdUqc0vnRE/b6fDoWvDb7wPT/GEeaCErpYaKQbM tT27RxI7dNXdO66P24DZgaPzez2grtcT0AP4THrQJsHsDWNAqxkAIcm3b fylKGcApIJhGg0rE5p3ZcX4ES8a+lO/jnvE3irhAnydCsUlEAU6qqdkLS Q==; X-CSE-ConnectionGUID: VmZnERn9Rumknvgp7/ewGA== X-CSE-MsgGUID: ASxSmmMVQIiXuwyGRdrT5w== X-IronPort-AV: E=Sophos;i="6.09,250,1716242400"; d="scan'208";a="38161191" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 31 Jul 2024 08:10:07 +0200 X-CheckPoint: {66A9D53F-31-CA1431AC-CF855369} X-MAIL-CPID: C7074174ECA8638E2C3C0A45063836FB_1 X-Control-Analysis: str=0001.0A782F19.66A9D540.001F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8280C1656CD; Wed, 31 Jul 2024 08:10:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1722406203; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=I+IjmRSHFT9092jQXqLQkEJ9RgRr5atsJ4FNP8n6k6Q=; b=F3WN1anSGymuxpWM7AtvbXAadr/aNOAkrRYL9oegZKvE31ipSPTrdqkWOIIa9d+le83mPF HME1A2baodn/FrZhxeqEC4rNY85OC98G5vj4XHGRBtmbWNrQWBf5qDku9IEomKEBrAsN+F vg8zk+BOson810TPsjYQVL+WY3T6szC+nOxkiz07rMHAKanMNcIdGuFZWEJJHQOJr1sRsm kSy2YPTp/uocKVOaN0/6wQ8Kke9Zz8/ZvAkVhDZLV/KeNxF0yaGbhIcPhcyQ8lcwMuVU4b A0AZaZlNeZKoa/GIvBARZDM9ULOPaWZ3EV6lIVIu0DM0ssbTWo5d8OtxrBzfFA== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Clark Wang , Alexander Stein , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/1] arm64: dts: imx8-ss-dma: enable dma support for lpspi Date: Wed, 31 Jul 2024 08:09:58 +0200 Message-Id: <20240731060959.897105-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_231012_658433_1B6B4BA1 X-CRM114-Status: UNSURE ( 8.77 ) 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: Clark Wang Add DMA configurations for LPSPI nodes on i.MX8QX/QM/DXL. Signed-off-by: Clark Wang Signed-off-by: Alexander Stein Reviewed-by: Peng Fan --- Changes in v2: * Added missing space character * Move 'dma-names' below 'dmas' arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index 1ee9496c988c5..575be8115e427 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -34,6 +34,8 @@ lpspi0: spi@5a000000 { assigned-clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>; power-domains = <&pd IMX_SC_R_SPI_0>; + dmas = <&edma2 1 0 0>, <&edma2 0 0 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -50,6 +52,8 @@ lpspi1: spi@5a010000 { assigned-clocks = <&clk IMX_SC_R_SPI_1 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>; power-domains = <&pd IMX_SC_R_SPI_1>; + dmas = <&edma2 3 0 0>, <&edma2 2 0 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -66,6 +70,8 @@ lpspi2: spi@5a020000 { assigned-clocks = <&clk IMX_SC_R_SPI_2 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>; power-domains = <&pd IMX_SC_R_SPI_2>; + dmas = <&edma2 5 0 0>, <&edma2 4 0 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; }; @@ -82,6 +88,8 @@ lpspi3: spi@5a030000 { assigned-clocks = <&clk IMX_SC_R_SPI_3 IMX_SC_PM_CLK_PER>; assigned-clock-rates = <60000000>; power-domains = <&pd IMX_SC_R_SPI_3>; + dmas = <&edma2 7 0 0>, <&edma2 6 0 FSL_EDMA_RX>; + dma-names = "tx", "rx"; status = "disabled"; };