]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: imu: bmi270: add support for motion events
authorGustavo Silva <gustavograzs@gmail.com>
Tue, 16 Sep 2025 23:38:23 +0000 (20:38 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Oct 2025 10:59:16 +0000 (11:59 +0100)
commit3c2a24f7e807fda3078e3f87839b09c5ce93c90b
treebb0cad67948e758a28d6dbd370b0b83d1fa89601
parent92c7ae3486143a44ecc974531704b905d22a784a
iio: imu: bmi270: add support for motion events

Any-motion event can be enabled on a per-axis basis and triggers a
combined event when motion is detected on any axis.

No-motion event is triggered if the rate of change on all axes falls
below a specified threshold for a configurable duration. A fake channel
is used to report this event.

Threshold and duration can be configured from userspace.

Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/bmi270/bmi270_core.c