Does the kernel 4.1.5 or 4.4 supports I2C with DMA on iMX6ul?

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

Does the kernel 4.1.5 or 4.4 supports I2C with DMA on iMX6ul?

1,502 次查看
bba
Contributor III

Hello,

does the kernel supprts I2C with DMA support. If yes, how we have to modify the DTS?

Thanks,

Birger

标签 (3)
0 项奖励
回复
4 回复数

1,282 次查看
fabio_estevam
NXP Employee
NXP Employee

The i2c driver supports DMA since kernel 3.19 and it has been tested on other platforms such as Vybrid/Layerscape.

It would not be too difficult to add DMA support on i.MX. You need to add 'dmas' and 'dma-names' (take a look at the uart ports as reference) in the imx6ul.dtsi and also make sure to configure IOMUXC_GPR_GPR0 to select DMA for the I2C port you are interested to. Please note that on imx6ul the DMA can be configured to I2C/SPI, so you need to configure it properly in IOMUXC_GPR_GPR0.

0 项奖励
回复

1,282 次查看
bba
Contributor III

Thanks Fabio,

I will try it later.

0 项奖励
回复

1,282 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Birger,

unfortunately I2C is not supported with DMA en Kernel 4.1. And NXP does not have an official release of Kernel 4.4.

Sorry for the inconvenience.


Regards,
Carlos

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

0 项奖励
回复

1,282 次查看
bba
Contributor III

Hi Carlos,

thanks for reply. Do you have any idea, if it is supported by the latest mainline kernel 4.9?

Regards,

Birger

0 项奖励
回复