]> git.baikalelectronics.ru Git - kernel.git/commit
iio: gyro: adxrs290: Add triggered buffer support
authorNishant Malpani <nish.malpani25@gmail.com>
Thu, 10 Sep 2020 18:04:48 +0000 (23:34 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Sep 2020 09:51:23 +0000 (10:51 +0100)
commita8dc10aab8b8a0d234a358109add24c878007488
treea514cd798e518ecc56c175ced35aeb025aafbfd4
parent5b61df2b18dc54e4fbbed7764c2cdcc18fa4b873
iio: gyro: adxrs290: Add triggered buffer support

Provide a way for continuous data capture by setting up buffer support. The
data ready signal exposed at the SYNC pin of the ADXRS290 is exploited as
a hardware interrupt which triggers to fill the buffer.

Triggered buffer setup was tested with both hardware trigger (DATA_RDY) and
software triggers (sysfs-trig & hrtimer).

Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200910180450.29696-2-nish.malpani25@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/Kconfig
drivers/iio/gyro/adxrs290.c