[PATCH 02/11] arm64: dts: imx93: add dma support for lpspi[1..8]

Frank Li Frank.li at nxp.com
Tue Apr 16 08:49:59 PDT 2024


On Tue, Apr 16, 2024 at 11:26:38PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> Add dma support for lpspi[1..8]
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>  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 5c08e8787989..00f2526c4011 100644
> --- a/arch/arm64/boot/dts/freescale/imx93.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi

#include <dt-bindings/dma/fsl-edma.h>

> @@ -344,6 +344,8 @@ lpspi1: spi at 44360000 {
>  				clocks = <&clk IMX93_CLK_LPSPI1_GATE>,
>  					 <&clk IMX93_CLK_BUS_AON>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma1 11 0 0>, <&edma1 12 0 1>;
> +				dma-names = "tx", "rx";

1: should be FSL_EDMA_RX

>  				status = "disabled";
>  			};
>  
> @@ -356,6 +358,8 @@ lpspi2: spi at 44370000 {
>  				clocks = <&clk IMX93_CLK_LPSPI2_GATE>,
>  					 <&clk IMX93_CLK_BUS_AON>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma1 13 0 0>, <&edma1 14 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -724,6 +728,8 @@ lpspi3: spi at 42550000 {
>  				clocks = <&clk IMX93_CLK_LPSPI3_GATE>,
>  					 <&clk IMX93_CLK_BUS_WAKEUP>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma2 12 0 0>, <&edma2 13 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -736,6 +742,8 @@ lpspi4: spi at 42560000 {
>  				clocks = <&clk IMX93_CLK_LPSPI4_GATE>,
>  					 <&clk IMX93_CLK_BUS_WAKEUP>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma2 14 0 0>, <&edma2 15 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -945,6 +953,8 @@ lpspi5: spi at 426f0000 {
>  				clocks = <&clk IMX93_CLK_LPSPI5_GATE>,
>  					 <&clk IMX93_CLK_BUS_WAKEUP>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma2 79 0 0>, <&edma2 80 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -957,6 +967,8 @@ lpspi6: spi at 42700000 {
>  				clocks = <&clk IMX93_CLK_LPSPI6_GATE>,
>  					 <&clk IMX93_CLK_BUS_WAKEUP>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma2 81 0 0>, <&edma2 82 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -969,6 +981,8 @@ lpspi7: spi at 42710000 {
>  				clocks = <&clk IMX93_CLK_LPSPI7_GATE>,
>  					 <&clk IMX93_CLK_BUS_WAKEUP>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma2 83 0 0>, <&edma2 84 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -981,6 +995,8 @@ lpspi8: spi at 42720000 {
>  				clocks = <&clk IMX93_CLK_LPSPI8_GATE>,
>  					 <&clk IMX93_CLK_BUS_WAKEUP>;
>  				clock-names = "per", "ipg";
> +				dmas = <&edma2 85 0 0>, <&edma2 86 0 1>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> 
> -- 
> 2.37.1
> 



More information about the linux-arm-kernel mailing list