[meta-freescale] how to access i2c bus on imx6q sabrelite

Philip Craig phil at blackmoth.com.au
Tue Jul 23 16:46:14 PDT 2013


On Wed, Jul 24, 2013 at 2:30 AM, Thanassis Silis <djnass_18 at hotmail.com> wrote:
> if, however, i try:
>
> i2cset 2 0x5A 0x1A 1
>
> it works! The "2" was a reasonable choice resembling i2c-2, but looking into
> i2cset.c (& i2cbusses.c),
> it seems that the code is looking into /dev/i2c/X, where X= the number given
> in the argument).
> But I have no "folder" /dev/i2c/.

The code first tries /dev/i2c/2, and when that fails it tries
/dev/i2c-2. You can confirm this using strace.

> This is puzzling. What is more, I don't know how to access the i2c-2 bus
> from my application, as

Your application can do the same as i2cset.



More information about the meta-freescale mailing list