How to enable dma for SPIDEV on imx8m mini

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to enable dma for SPIDEV on imx8m mini

1,130 次查看
Arun_kumar
Contributor I

Following are the changes in dts file for ecspi1 node

&ecspi1 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
spi-slave;
dmas = <&sdma1 0 7 1>, <&sdma1 1 7 2>;
dma-names = "rx", "tx";
status = "okay";

slave@0{
compatible = "linux,spislave","rohm,dh2228fv","spidev";
spi-max-frequency = <4000000>;
reg = <0>;
enable-dma = <0x1>;
};

};

Please let me know if anything wrong in this and what else changes more has to be made to enable DMA.

 

0 项奖励
回复
1 回复

1,091 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using?

0 项奖励
回复