Let's code a Linux Driver - 26: Device Tree Driver for an SPI device (IIO compatible)



#GNU #Linux #Tutorial #Driver #DriverDevelopment

Let’s leave userspace and head towards Kernelspace!

In this series of videos I will show you how to write your own Linux Driver. Today I will show you how to write a Linux Device Tree Driver for an SPI device. Therefore I will use a simple Atmega SPI ADC. The driver will be IIO compatible.

You want to support my work? You can buy me a coffee here: https://www.buymeacoffee.com/johannes4linux

If you want to contact me, you can find my E-Mail on www.gnu-linux.rocks

Here is the link to my git-repo:

https://github.com/Johannes4Linux/Linux_Driver_Tutorial

Videos to understand this one:

You want to learn more? Check out my playlist:

Resources for this video:
https://raspberrypi.stackexchange.com/questions/66718/how-to-use-bmp280-spi-kernel-module
https://www.kernel.org/doc/html/v4.11/driver-api/spi.html

One thought on “Let's code a Linux Driver – 26: Device Tree Driver for an SPI device (IIO compatible)”
  1. How the hell did you get so good at this, Johannes? Do you do Embedded Linux stuff professionally? I usually work on MCU stuff and get a panicky feeling when I have to dive into embedded Linux applications.

Leave a Reply

Your email address will not be published.