How to write spi custom device driver for sensor

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

How to write spi custom device driver for sensor

5,177 Views
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.

Labels (1)
0 Kudos
Reply
3 Replies

5,166 Views
AldoG
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

5,148 Views
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 Kudos
Reply

5,134 Views
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 Kudos
Reply