AnsweredAssumed Answered

Access PMIC with I2C on user space

Question asked by linh dong on Nov 17, 2016

Hello,

 

I'm trying to test I2C interface of PMIC on user space by read ID but it can't access. I don't know why?

I'm using PF0100 with address is 0x08 , ID is 0x10 , register ID is 0x00.

root@imx6_custom:/home# ./i2c_test
PMIC Test
Can't access i2c device
: Device or resource busy

Does It locked slave address from kernel? Do you have any way to read ID of PMIC on user space though I2C interface?

 

Thanks !

Original Attachment has been moved to: i2c_test.c.zip

Outcomes