public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add i2c driver for Bosch BMI260 IMU
@ 2024-10-11 15:37 Justin Weiss
  2024-10-11 15:37 ` [PATCH 1/3] iio: imu: Add i2c driver for bmi260 imu Justin Weiss
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Justin Weiss @ 2024-10-11 15:37 UTC (permalink / raw)
  To: Alex Lanzano, Jonathan Cameron, Lars-Peter Clausen
  Cc: Justin Weiss, linux-iio, linux-kernel, Derek J . Clark,
	Philip Müller

Add support for the Bosch BMI260 IMU to the BMI270 device driver.

The BMI270 and BMI260 have nearly identical register maps, but have
different chip IDs and firmware.

The BMI260 is the IMU on a number of handheld PCs. Unfortunately,
these devices often misidentify it in ACPI as a BMI160 ("BMI0160," for
example), and it can only be correctly identified using the chip
ID. I've changed the driver to fail if the chip ID isn't recognized so
the firmware initialization data isn't sent to incompatible devices.

Also add triggered buffer and scale / sampling frequency attributes,
which the input tools commonly used on handheld PCs require to support
IMUs.

Like the BMI270, the BMI260 requires firmware to be provided.

Signed-off-by: Justin Weiss <justin@justinweiss.com>
---

Justin Weiss (3):
  iio: imu: Add i2c driver for bmi260 imu
  iio: imu: Add triggered buffer for Bosch BMI270 IMU
  iio: imu: Add scale and sampling frequency to BMI270 IMU

 drivers/iio/imu/bmi270/Kconfig       |   1 +
 drivers/iio/imu/bmi270/bmi270.h      |  24 +-
 drivers/iio/imu/bmi270/bmi270_core.c | 369 ++++++++++++++++++++++++++-
 drivers/iio/imu/bmi270/bmi270_i2c.c  |  22 +-
 drivers/iio/imu/bmi270/bmi270_spi.c  |  11 +-
 5 files changed, 413 insertions(+), 14 deletions(-)


base-commit: 96be67caa0f0420d4128cb67f07bbd7a6f49e03a
-- 
2.47.0


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

end of thread, other threads:[~2024-10-18 18:02 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-11 15:37 [PATCH 0/3] Add i2c driver for Bosch BMI260 IMU Justin Weiss
2024-10-11 15:37 ` [PATCH 1/3] iio: imu: Add i2c driver for bmi260 imu Justin Weiss
2024-10-12 11:08   ` Jonathan Cameron
2024-10-13  2:41     ` Justin Weiss
2024-10-13 15:14       ` Jonathan Cameron
2024-10-13 20:36         ` Justin Weiss
2024-10-14 18:50           ` Jonathan Cameron
2024-10-11 15:37 ` [PATCH 2/3] iio: imu: Add triggered buffer for Bosch BMI270 IMU Justin Weiss
2024-10-12 11:18   ` Jonathan Cameron
2024-10-13  2:43     ` Justin Weiss
2024-10-13 15:17       ` Jonathan Cameron
2024-10-13 20:54         ` Justin Weiss
2024-10-14 19:01           ` Jonathan Cameron
2024-10-11 15:37 ` [PATCH 3/3] iio: imu: Add scale and sampling frequency to " Justin Weiss
2024-10-12 11:35   ` Jonathan Cameron
2024-10-13  2:45     ` Justin Weiss
2024-10-13 15:40       ` Jonathan Cameron
2024-10-13 20:55         ` Justin Weiss
2024-10-14 19:11           ` Jonathan Cameron
2024-10-16  1:20             ` Justin Weiss
2024-10-18 18:02               ` Jonathan Cameron
2024-10-12 10:57 ` [PATCH 0/3] Add i2c driver for Bosch BMI260 IMU Jonathan Cameron
2024-10-13  2:36   ` Justin Weiss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox