Skip to content

I2C Enablement

This is built on top of !25 (merged) which handles adding most of the QUP descriptions.

With CONFIG_I2C_CHARDEV=y (which I've left out here, we can just use modules for it for now if userspace needs to drive the device) you can see this:

[root@qti-snapdragon-03 ~]# ls /dev/i2c-1
i2c-15  i2c-18  
[root@qti-snapdragon-03 ~]# ls /dev/i2c-1
ls: cannot access '/dev/i2c-1': No such file or directory
[root@qti-snapdragon-03 ~]# i2cdetect 15
Warning: Can't use SMBus Quick Write command, will skip some addresses
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-15.
I will probe address range 0x08-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                                                 
10:                                                 
20:                                                 
30: 30 31 32 33 34 35 36 37                         
40:                                                 
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 
60:                                                 
70:                                                 
[root@qti-snapdragon-03 ~]# i2cdetect 18
Warning: Can't use SMBus Quick Write command, will skip some addresses
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-18.
I will probe address range 0x08-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                                                 
10:                                                 
20:                                                 
30: 30 31 32 33 34 35 36 37                         
40:                                                 
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 
60:                                                 
70:                                                 
[root@qti-snapdragon-03 ~]#
Edited by Andrew Halaney

Merge request reports