diff mbox series

[1/1] ARM: dts: imx7s: Add DMA channels for CSPI peripherals

Message ID 20231023094612.374487-1-alexander.stein@ew.tq-group.com (mailing list archive)
State New, archived
Headers show
Series [1/1] ARM: dts: imx7s: Add DMA channels for CSPI peripherals | expand

Commit Message

Alexander Stein Oct. 23, 2023, 9:46 a.m. UTC
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 <alexander.stein@ew.tq-group.com>
---
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(+)

Comments

Shawn Guo Nov. 27, 2023, 3 a.m. UTC | #1
On Mon, Oct 23, 2023 at 11:46:12AM +0200, Alexander Stein wrote:
> 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 <alexander.stein@ew.tq-group.com>

Applied, thanks!
diff mbox series

Patch

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";
 				};