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

Thanassis Silis djnass_18 at hotmail.com
Tue Jul 23 09:30:32 PDT 2013


Hello everyone,
I am attempting to utilise the i2c-2 port from an application I am developing.
I am running yocto dylan (v1.4.1) on the sabrelite board.


The three i2c buses appear under /dev/i2c-[012] . I have connected an i2c slave in port "J7" (i2c-3 from the HW manual (rev11) and schematics (RevD) is exposed there).
 i2cdetect returns:
root at imx6qsabrelite:~# i2cdetect -l
i2c-0    i2c           imx-i2c                             I2C adapter
i2c-1    i2c           imx-i2c                             I2C adapter
i2c-2    i2c           imx-i2c                             I2C adapter But I can't use the nodes /dev/i2c-X .
if i try using i2cset, with the node name , as :
i2cset /dev/i2c-2 0x5A 0x1A 1i2cset i2c-2 0x5A 0x1A 1it fails saying:
Error: I2C bus name doesn't match any bus present! if, however, i try:
i2cset 2 0x5A 0x1A 1it 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/.
 This is puzzling. What is more, I don't know how to access the i2c-2 bus from my application, as
Thank you in advance for your help.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20130723/26663ed2/attachment.html>


More information about the meta-freescale mailing list