lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241011153751.65152-1-justin@justinweiss.com>
Date: Fri, 11 Oct 2024 08:37:46 -0700
From: Justin Weiss <justin@...tinweiss.com>
To: Alex Lanzano <lanzano.alex@...il.com>,
	Jonathan Cameron <jic23@...nel.org>,
	Lars-Peter Clausen <lars@...afoo.de>
Cc: Justin Weiss <justin@...tinweiss.com>,
	linux-iio@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	"Derek J . Clark" <derekjohn.clark@...il.com>,
	Philip Müller <philm@...jaro.org>
Subject: [PATCH 0/3] Add i2c driver for Bosch BMI260 IMU

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@...tinweiss.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ