How to enable dma for SPIDEV on imx8m mini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable dma for SPIDEV on imx8m mini

517 Views
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 Kudos
1 Reply

478 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using?

0 Kudos