STMicroelectronics / st-mems-android-linux-drivers-iio

stm mems iio drivers for Android and Linux platforms.
GNU General Public License v2.0
23 stars 1 forks source link

Enable Wake-up interrupt with lsm6dsox driver and lsm6dso MEMS. #19

Open SimoneBongini opened 2 months ago

SimoneBongini commented 2 months ago

Hello, I merged (yesterday) the lsm6dsox driver into my v5.15 Linux Kernel in order to run with lsm6dso MEMS. I'd like to enable the wake-up functionality (and setting the threshold) in order trigger an interrupt on a certain acceleration value, but I'm not able to find entry on sysfs to manage that functionality. I mean, for example "in_accel_x_thresh_either_en" "in_accel_x_thresh_either_value" etc

Before, I was using https://github.com/STMicroelectronics/linux/tree/v5.15-stm32mp/drivers/iio/imu/st_lsm6dsx driver with lsm6dsl MEMS, and the wake-up functionality was present and working.

Thanks a lot in advance