All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Add WoM feature as an IIO event
@ 2024-03-11 16:05 inv.git-commit
  2024-03-11 16:05 ` [PATCH v3 1/4] iio: imu: inv_mpu6050: add WoM (Wake-on-Motion) sensor inv.git-commit
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: inv.git-commit @ 2024-03-11 16:05 UTC (permalink / raw)
  To: jic23; +Cc: lars, linux-iio, Jean-Baptiste Maneyrol

From: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>

Add WoM (Wake-on-Motion) feature for all chips supporting it (all except
MPU-6000/6050/9150). WoM compares the magnitude of the current accel sample
with the previous one against a threshold and returns an interrupt event if
the value is higher.

WoM is checking against all axes and maps best to ROC since it compares the
last 2 samples. Thus report WoM as an accel x|y|z roc_rising IIO event, add
system wakeup functionality if WoM is on and put the chip in low-power mode
when the system is suspended. Corresponding ROC value is in SI units since
the chip is using an absolute value in mg.

v2:
- Rework to use accel x|y|z roc for reporting WoM event
- Use only datasheet advertised bits for MPU-6500 family chips

v3
- Coding style fixes
- Convert mutex usage to guard/scoped_guard

Jean-Baptiste Maneyrol (4):
  iio: imu: inv_mpu6050: add WoM (Wake-on-Motion) sensor
  iio: imu: inv_mpu6050: add WoM event as accel event
  iio: imu: inv_mpu6050: add new interrupt handler for WoM events
  iio: imu: inv_mpu6050: add WoM suspend wakeup with low-power mode

 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c    | 542 ++++++++++++++++--
 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h     |  36 +-
 drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c    |  17 +-
 drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c |  83 ++-
 4 files changed, 595 insertions(+), 83 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-08-14 15:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-11 16:05 [PATCH v3 0/4] Add WoM feature as an IIO event inv.git-commit
2024-03-11 16:05 ` [PATCH v3 1/4] iio: imu: inv_mpu6050: add WoM (Wake-on-Motion) sensor inv.git-commit
2024-03-11 16:05 ` [PATCH v3 2/4] iio: imu: inv_mpu6050: add WoM event as accel event inv.git-commit
2024-03-11 16:05 ` [PATCH v3 3/4] iio: imu: inv_mpu6050: add new interrupt handler for WoM events inv.git-commit
2024-07-23  8:25   ` Svyatoslav Ryhel
2024-08-06 16:53     ` Jonathan Cameron
2024-08-07 15:48       ` Jean-Baptiste Maneyrol
2024-08-07 16:03         ` Svyatoslav Ryhel
2024-08-07 16:18           ` Jean-Baptiste Maneyrol
2024-08-07 16:48             ` Svyatoslav Ryhel
2024-08-13 16:06             ` Jean-Baptiste Maneyrol
2024-08-13 16:09               ` Svyatoslav Ryhel
2024-08-14 14:39                 ` Jean-Baptiste Maneyrol
2024-08-14 15:53                   ` Svyatoslav Ryhel
2024-03-11 16:05 ` [PATCH v3 4/4] iio: imu: inv_mpu6050: add WoM suspend wakeup with low-power mode inv.git-commit
2024-03-16 13:54 ` [PATCH v3 0/4] Add WoM feature as an IIO event Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.