AnsweredAssumed Answered

IMX6ULL - SDMA in ecspi1

Question asked by crcn on May 22, 2017
Latest reply on May 23, 2017 by Yuri Muhin

Hello,

I'm working with IMX6ULL and I'm trying configure SDMA in ecspi1, but without success.

this is my configuration in device tree:

&sdma {
   compatible = "fsl,imx6ull-sdma";
   reg = <0x020ec000 0x4000>;
   interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
   clocks = <&clks IMX6UL_CLK_SDMA>,
   <&clks IMX6UL_CLK_SDMA>;
   clock-names = "ipg", "ahb";
   #dma-cells = <3>;
   iram = <&ocram>;
   fsl,sdma-ram-script-name = "imx/sdma/sdma-imx6q.bin";
};
&ecspi1 {
   fsl,spi-num-chipselects=<1>;
   cs-gpios = <0>;
   pinctrl-names = "default";
   pinctrl-0 = <&pinctrl_ecspi1>;
   status = "okay";
   dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
   dma-names = "rx", "tx";
   spidev@0x00 {
      compatible = "spidev";
      spi-max-frequency = <60000000>;
   reg = <0>;
   };
};

This configuration is correct? Someone have made this before?

Thanks.

Outcomes