I.MX6UL I2C DMA Enable

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

I.MX6UL I2C DMA Enable

1,479 Views
zahomz
Contributor III

Hi,

I configure the dts as follow(yocto version is 4.1.15_2.0.0), but i2c dma also couldn't be used:

1000             i2c3: i2c@021a8000 {
1001                 #address-cells = <1>;
1002                 #size-cells = <0>;
1003                 compatible = "fsl,imx6ul-i2c", "fsl,imx21-i2c";
1004                 reg = <0x021a8000 0x4000>;
1005                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
1006                 clocks = <&clks IMX6UL_CLK_I2C3>;
1007                 dmas = <&sdma 9 7 1>, <&sdma 10 7 2>;
1008                 dma-names = "rx", "tx";
1009                 status = "disabled";
1010             };


187 &i2c3 {
188     clock_frequency = <400000>;
189     pinctrl-names = "default";
190     pinctrl-0 = <&pinctrl_i2c3>;
191     status = "okay";
192 }

How could I enable i2c dma for i.mx6ul?

 

Thanks,

Zahom

0 Kudos
3 Replies

863 Views
igorpadykov
NXP Employee
NXP Employee

Hi Zahom

please refer to Table 3-4. SDMA Channel Usage attached Linux Manual

for supported sdma modules. Unfortunately i2c sdma is not supported.

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

0 Kudos

863 Views
zahomz
Contributor III

Hi igor,

Thansk very much for your reply. I found dma functions in linux i2c driver code(i2c-imx.c), Does those functions we can't use?

pastedImage_3.png

0 Kudos

863 Views
igorpadykov
NXP Employee
NXP Employee

Hi Zahom

 

what is full file name/location, as this may be for processor (like i.MX28) not using sdma

 

Best regards
igor

0 Kudos