I2C Driver

362 views
Skip to first unread message

Mallikarjun B

unread,
Nov 29, 2011, 10:56:59 PM11/29/11
to Beagle Board
Hallo,

I am looking for some sample code for using DM3730 I2C Port.
Looking for I2C driver basically. Where can I get the same?

I can have a look at Linux soure or u-boot source.
But I want to do that if a sample is not available wneywhere else.

Regards,
Malik

John Weber

unread,
Dec 1, 2011, 9:39:13 AM12/1/11
to beagl...@googlegroups.com
I work for Avnet. We are teaching an Intro to Linux class (we call them
SpeedWays) at various locations in North America. Here is a very simple
driver for the TLC59108 LED driver on the ULCD kit. They use it as an I/O
expander to control some signals to the LCD panel.

https://github.com/davidweber/bb-misc/tree/master/drivers/TLC59108-Driver

It is not a tremendously complete driver, because it is meant to be a simple
example. It makes use of ioctl and sysfs. Read the comments at the top of
the main C file (tlc59108-i2c.c) for the alterations you need to make to the
board init file.

By the way, now is the time you need to get comfortable with the kernel and
bootloader source, building and configuring the kernel, and so on.

John

Hallo,

Regards,
Malik

--
You received this message because you are subscribed to the Google Groups
"Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to
beagleboard...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/beagleboard?hl=en.


Mallikarjun B

unread,
Dec 4, 2011, 10:51:53 PM12/4/11
to Beagle Board
Hallo John,

Thank you for the response. It seems that, the driver is for Linux OS.

But what I am looking for is, sample I2C code which directly interacts
with DM3730 I2C peripheral.

Regards,
Malik

On Dec 1, 7:39 pm, "John Weber" <rjohnwe...@gmail.com> wrote:
> I work for Avnet.  We are teaching an Intro to Linux class (we call them
> SpeedWays) at various locations in North America.  Here is a very simple
> driver for the TLC59108 LED driver on the ULCD kit.   They use it as an I/O
> expander to control some signals to the LCD panel.
>

> https://github.com/davidweber/bb-misc/tree/master/drivers/TLC59108-Dr...

> For more options, visit this group athttp://groups.google.com/group/beagleboard?hl=en.- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages