IMX6ULL - SDMA in ecspi1

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

IMX6ULL - SDMA in ecspi1

1,459 Views
crcn
Contributor I

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.

Labels (1)
Tags (3)
0 Kudos
1 Reply

802 Views
Yuri
NXP Employee
NXP Employee

Hello,

  please look at the following

[U-Boot] [PATCH 19/21] arm: dts: add device tree for i.MX6ULL 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos