Basic I2C Driver for Beginners

Hello :),

I am currently working on I2C in my beaglebone black. And I accessed my I2C device (EEPROM) through I2C utilities (I2Cget and I2Cset) and /dev interface. Now I want to learn how to write a kernel driver for my I2C client.

Can anyone please share good tutorial ? Links ? or Simple I2C driver ? to understand the concepts.

Thanks :slight_smile:

You can start with the basic kernel driver docs and go from there:

https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Documentation/i2c/dev-interface

Or or, u should watch this awesome tutorial :

http://www.youtube.com/watch?v=8C2zk6B-eLU

Micka,