Hey, I am trying to interface MPU6050 and I2C-GPIO Expander(PCF8574) over i2c-4 of AIO 3399J.
And I have created an android application for MPU6050 using NDK.I am just using <linux/i2c-dev.h>(in my android application) to open the interface.But somehow I am not getting the bytes from the sensor.Do I need to write the drivers for MPU6050 separately or it should be fine?
Same for GPIO expander.
SDK have already include mpu driver, but you need to enable its driver.
take a sample with kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-edp.dts
there is sensor config inside.