[PATCH 0/3] BMI270: Add support for step counter and motion events

From: Gustavo Silva
Date: Thu Apr 24 2025 - 20:15:04 EST


This series adds support for step counter and motion events using
interrupts in the BMI270 driver.

The step counter can be enabled, disabled, and configured with a
watermark, all from userspace.

Any-motion and no-motion events are generated by detecting changes
in the acceleration slope on each axis.

Signed-off-by: Gustavo Silva <gustavograzs@xxxxxxxxx>
---
Gustavo Silva (3):
iio: imu: bmi270: add channel for step counter
iio: imu: bmi270: add step counter watermark event
iio: imu: bmi270: add support for motion events

drivers/iio/imu/bmi270/bmi270_core.c | 523 ++++++++++++++++++++++++++++++++++-
1 file changed, 520 insertions(+), 3 deletions(-)
---
base-commit: b475195fecc79a1a6e7fb0846aaaab0a1a4cb2e6
change-id: 20250424-bmi270-events-74c6ef5f4243

Best regards,
--
Gustavo Silva <gustavograzs@xxxxxxxxx>