Dear NXP,
I am using IMX8QM-MEK with Android 9 Automotive. Fxas21002 gyroscope raw data is not getting. By event is got from the gyroscope.
mek_8q:/ # dmesg | grep -i fxas
[ 0.741372] input: fxas2100x as /devices/platform/5a800000.i2c/i2c-2/2-0020/input/input1
[ 0.741485] fxas2100x 2-0020: fxas2100x device driver probe successfully
mek_8q:/ # echo 1 > /sys/devices/virtual/misc/FreescaleGyroscope/enable
mek_8q:/ # getevent
add device 1: /dev/input/event1
name: "fxas2100x"
add device 2: /dev/input/event0
name: "fxos8700"
add device 3: /dev/input/event2
name: "sc-powerkey"
/dev/input/event1: 0000 0003 00000000
/dev/input/event1: 0003 0000 fffffffb
/dev/input/event1: 0003 0001 ffffffe4
/dev/input/event1: 0003 0002 ffffffff
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0003 0000 fffffffd
/dev/input/event1: 0003 0001 ffffffe6
/dev/input/event1: 0003 0002 0000000d
Do we needs to do any configuration to get data.
Thanks & Regards,
Solved! Go to Solution.
Thank you for the reply. There is a GYRO support as given for Application Processor as well as MCU. But, by default disabled in kernel.
AP: source/vendor/nxp-opensource/kernel_imx/drivers/misc/fxas2100x.c
MCU: source/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QM/middleware/issdk/driverexamples/imx/mekmimx8qm/fxas21002/
Thanks & Regards,
Unfortunately if you review the Release Notes of the Android 9 Automotive, there is no driver available for this device, you need to download the basic Android 9 or Linux BSP to get the driver. I apogolize for this inconvenience.
Thank you for the reply. There is a GYRO support as given for Application Processor as well as MCU. But, by default disabled in kernel.
AP: source/vendor/nxp-opensource/kernel_imx/drivers/misc/fxas2100x.c
MCU: source/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QM/middleware/issdk/driverexamples/imx/mekmimx8qm/fxas21002/
Thanks & Regards,