Closed Ghlens closed 3 years ago
Hi,
As you can see here: https://github.com/STMicroelectronics/STMems_Linux_IIO_drivers/blob/linux-4.4.y-gh/drivers/iio/imu/st_imu68/st_imu68_core.c#L583
The driver allocate the buffer if an interrupt is defined into the device tree, otherwise you need to go in polling to the raw read data
Thank you for your help. This confirms the way I thought the driver works.
I am trying to use an hr timer with the st_imu68_i2c driver and the LSMDS1 IMU sensor. But even though I have the CONFIG_IIO_BUFFER enabled, the scan_elements, trigger, and buffer directory are missing.
Our config contains the following IIO configuration:
I only got the directories to appear after I added an interrupt to the device tree like seen below. This however is a dummy interrupt as we do not have an actual physical wire connected to the IMU to the SOM.
Is there something I am doing wrong? Or does the st_im68 driver only support hardware interrupts?