ARM: dts: imx7s: Add DMA channels for CSPI peripherals
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 23 Oct 2023 09:46:12 +0000 (11:46 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 27 Nov 2023 02:59:54 +0000 (10:59 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx7s.dtsi

index b563383be6951b6e51dcc04ba960ea9b95a4dcdb..38a72f969b4e3174b19b997dfa838b248ab0768e 100644 (file)
                                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";
                        };
 
                                        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";
                                };
 
                                        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";
                                };
 
                                        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";
                                };