How to write spi custom device driver for sensor

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

How to write spi custom device driver for sensor

5,187 次查看
Dhevan
Contributor IV

Hi,

I want to write custom linux spi device driver for imx8m mini.

Which kernal api and documentation i need to refer.

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

5,176 次查看
AldoG
NXP TechSupport
NXP TechSupport
0 项奖励
回复

5,158 次查看
Dhevan
Contributor IV

Hi @AldoG,

Thanks for your reply.

 If we wrote two independent kernel device driver our issue will resolve ?

I have another doubt's also.

kernel driver - spi-imx.c and spidev.c what will be the difference between these two driver?

 

Thanks & Regards,

      Vasu

0 项奖励
回复

5,144 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hi,

Sorry I don't know what kind of issue are you referring to.

For difference, spi-imx is the SPI Master controller driver, while spidev is a userspace kernel driver.

You can refer to the following documentation:
https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/spi/spidev.rst?h=lf-5.10.y

Best regards,
Aldo.

0 项奖励
回复