How to write spi custom device driver for sensor

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to write spi custom device driver for sensor

5,178件の閲覧回数
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,167件の閲覧回数
AldoG
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

5,149件の閲覧回数
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,135件の閲覧回数
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 件の賞賛
返信