VAR-SOM-MX6 I2C: Difference between revisions

From Variscite Wiki
Line 1: Line 1:
{{PageHeader|VAR-SOM-MX6 - I2C}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__
{{PageHeader|VAR-SOM-MX6 - I2C}} {{DocImage|category1=VAR-SOM-MX6|category2=Yocto}} __toc__


The I2C devices are handled with special drivers. for Example eeprom will use the


= I2C buses =
= I2C buses =

Revision as of 15:02, 10 December 2015

VAR-SOM-MX6 - I2C


The I2C devices are handled with special drivers. for Example eeprom will use the

I2C buses

List I2C available devices:

root@var-som-mx6:~# ls -l /dev/i2c-*
crw------- 1 root root 89, 0 Dec  6 10:31 /dev/i2c-0
crw------- 1 root root 89, 1 Dec  6 10:31 /dev/i2c-1
crw------- 1 root root 89, 2 Dec  6 10:31 /dev/i2c-2

System class:

root@var-som-mx6:~# ls /sys/class/i2c-dev/
i2c-0  i2c-1  i2c-2

I2C device per bus

Scan bus 0:

root@var-som-mx6:~# i2cdetect -y -r 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         

Scan bus 1:

root@var-som-mx6:~# i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- UU -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- 37 -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- 49 -- -- -- -- -- -- 
50: UU -- -- -- -- -- 56 57 -- 59 -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         

Scan bus 2:

root@var-som-mx6:~# i2cdetect -y -r 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --