From patchwork Mon Oct 23 09:46:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13432632 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 63CDECDB474 for ; Mon, 23 Oct 2023 09:46:44 +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:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0BLaCAEgwg378AcEP2L8/3h/b6MYf2sNKIEdBK0D2ss=; b=qXPfHtvyJTXdu0 zllWiFsuBw7Q4O8TUt+3Zn93opyB3WczidMb0tW/AxXdTLETu0XKkgewUPaYIe6nfbLavsknYN+5g o6wXdk5XEW5kZ7Y9wHMmIZo4ZDuwmNu/QjE+OPHRC1Cm4wL5tvbbT9gE77XSSygY6d/WPAQ6C5Ysd eABb0Mpiltm0ODrnAZnacNOXZsHzSjmoqN3tv6EV+eRlsgJwfB1IyNmjryMXnw4wgaufNkHwJjSBd NKmBIS9w16tjSWLvQ71/6NqusW/J+PUIrxUemDP8CCjHI4mLwLTg+MAHE+7bKjntK4df5dNsBDj0Z +cS1iaHVJL2HTCvOMBcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qurVq-006uvf-2X; Mon, 23 Oct 2023 09:46:18 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qurVn-006uv4-2s for linux-arm-kernel@lists.infradead.org; Mon, 23 Oct 2023 09:46:17 +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=1698054375; x=1729590375; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yNDakSBJiLDmDrrKfDAnDXHB76PZcRTWX3Nz0Nx2QS0=; b=adgv07dUXAo30L8NB9H2u63Be1XCnAH/VPNPwq7BYV3zrLk81bL955mg jFsgIWlKU+PaB/l1gAZ1vyuvTDF+ytoOrqJ3rt2pMn3p/ZWgb/s3AWqgY LkXg8LfL7Vc9CKUtyT7VWyJ4dJw29wjdx2Wx9tZ6IEoKt+jyAKVsaD9Z4 sfYmoKDbDBeya6DDYJrpe6FGg+QjnzartXaC/kYdwahY9pjO9j0pPGJuf RM9dF7AJMz2KZQ7iA7D4X3eoh48LOvzUcFOST3ChquQxW8mKsUq/X5nfr IdxJvGt4RlOkFs+1St3OOdlfNLSb5rFeijPIJRu/8MlzoGkymzu/Ui9X2 A==; X-IronPort-AV: E=Sophos;i="6.03,244,1694728800"; d="scan'208";a="33597591" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 23 Oct 2023 11:46:12 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 9829828007F; Mon, 23 Oct 2023 11:46:12 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] ARM: dts: imx7s: Add DMA channels for CSPI peripherals Date: Mon, 23 Oct 2023 11:46:12 +0200 Message-Id: <20231023094612.374487-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231023_024616_322303_320FD7F0 X-CRM114-Status: GOOD ( 10.16 ) 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 This adds the rx/tx DMA channels for CSPI peripherals. Channel numbers are taken from i.MX7D RM Rev1 01/2018. Peripheral types ID (7) is selected according to fsl,imx-sdma.yaml and is similar to i.MX6 and i.MX8M platforms. Same goes for transfer priority ID (last number). Signed-off-by: Alexander Stein --- Tested on TQMa7D/MBa7x using the on-board SPI attached NOR flash. arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi index b563383be695..38a72f969b4e 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi @@ -725,6 +725,8 @@ ecspi4: spi@30630000 { clocks = <&clks IMX7D_ECSPI4_ROOT_CLK>, <&clks IMX7D_ECSPI4_ROOT_CLK>; clock-names = "ipg", "per"; + dma-names = "rx", "tx"; + dmas = <&sdma 6 7 1>, <&sdma 7 7 2>; status = "disabled"; }; @@ -880,6 +882,8 @@ ecspi1: spi@30820000 { clocks = <&clks IMX7D_ECSPI1_ROOT_CLK>, <&clks IMX7D_ECSPI1_ROOT_CLK>; clock-names = "ipg", "per"; + dma-names = "rx", "tx"; + dmas = <&sdma 0 7 1>, <&sdma 1 7 2>; status = "disabled"; }; @@ -892,6 +896,8 @@ ecspi2: spi@30830000 { clocks = <&clks IMX7D_ECSPI2_ROOT_CLK>, <&clks IMX7D_ECSPI2_ROOT_CLK>; clock-names = "ipg", "per"; + dma-names = "rx", "tx"; + dmas = <&sdma 2 7 1>, <&sdma 3 7 2>; status = "disabled"; }; @@ -904,6 +910,8 @@ ecspi3: spi@30840000 { clocks = <&clks IMX7D_ECSPI3_ROOT_CLK>, <&clks IMX7D_ECSPI3_ROOT_CLK>; clock-names = "ipg", "per"; + dma-names = "rx", "tx"; + dmas = <&sdma 4 7 1>, <&sdma 5 7 2>; status = "disabled"; };