How can I read Accelerometer & Gyroscope sensors on im8qxp-mek (REV C1)?
I've built the full-image with yocto. I see a lot of i2c devices, should I use one of them to read sensors values? If yes, which one?
You can use the Lpi2c, is the one available to used, the menu configuration is: Select Device Drivers > I2C support > I2C Hardware Bus support > IMX Low Power I2C interface
and the driver is at:
The LPI2C device driver can use the standard SMBus interface to read and write the registers of the device connected to the LPI2C
bus. For more information, see include/linux/i2c.h.
Note:The LPI2C driver does not support the slave mode.