Basic I2C Driver for Beginners

2,693 views
Skip to first unread message

jeshu

unread,
May 27, 2013, 2:34:07 PM5/27/13
to beagl...@googlegroups.com
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 :)

Jason Stapels

unread,
May 28, 2013, 4:51:36 PM5/28/13
to beagl...@googlegroups.com

Micka

unread,
May 29, 2013, 3:32:02 AM5/29/13
to beagl...@googlegroups.com
Or or, u should watch this awesome tutorial :



Micka,
On Wed, May 29, 2013 at 2:42 AM, <elizab...@gmail.com> wrote:
Or, start with/use an i2c eeprom driver, like used for the cape eeprom interface.

I don't have access to my BB kernel source right now, but it most likely looks something like this: http://lxr.free-electrons.com/source/drivers/i2c/chips/eeprom.c?v=2.6.28;a=arm 

On Tuesday, May 28, 2013 1:51:36 PM UTC-7, Jason Stapels wrote:
You can start with the basic kernel driver docs and go from there:

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages