[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240912210749.3080157-1-lanzano.alex@gmail.com>
Date: Thu, 12 Sep 2024 17:07:17 -0400
From: Alex Lanzano <lanzano.alex@...il.com>
To: Alex Lanzano <lanzano.alex@...il.com>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Jagath Jog J <jagathjog1996@...il.com>,
Nuno Sa <nuno.sa@...log.com>,
Ramona Gradinariu <ramona.bolboaca13@...il.com>
Cc: linux-kernel-mentees@...ts.linuxfoundation.org,
skhan@...uxfoundation.org,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-iio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v4 0/2] Add I2C driver for Bosch BMI270 IMU
Add basic I2C support for the Bosch BMI270 IMU.
References:
https://www.bosch-sensortec.com/products/motion-sensors/imus/bmi270/
Signed-off-by: Alex Lanzano <lanzano.alex@...il.com>
---
Changes in v4:
- Include linux/bitfield.h to bmi270_core.c
- Add comments documenting sleep functions
- Increase configuration delay to be inline with datasheet
Changes in v3:
- Remove code pertaining to buffer / triggered buffer
- Move register definitions from struct to defines
- Add bit mask defines for registers and replace hardcoded values
- Create macros for accel and gryo channels
- Code style cleanup
Changes in v2:
- Remove spi example in binding documentation
- Add more properties to i2c example in binding documentation
---
Alex Lanzano (2):
dt-bindings: iio: imu: add bmi270 bindings
iio: imu: Add i2c driver for bmi270 imu
.../bindings/iio/imu/bosch,bmi270.yaml | 77 ++++++
MAINTAINERS | 7 +
drivers/iio/imu/Kconfig | 1 +
drivers/iio/imu/Makefile | 1 +
drivers/iio/imu/bmi270/Kconfig | 21 ++
drivers/iio/imu/bmi270/Makefile | 6 +
drivers/iio/imu/bmi270/bmi270.h | 62 +++++
drivers/iio/imu/bmi270/bmi270_core.c | 258 ++++++++++++++++++
drivers/iio/imu/bmi270/bmi270_i2c.c | 48 ++++
9 files changed, 481 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,bmi270.yaml
create mode 100644 drivers/iio/imu/bmi270/Kconfig
create mode 100644 drivers/iio/imu/bmi270/Makefile
create mode 100644 drivers/iio/imu/bmi270/bmi270.h
create mode 100644 drivers/iio/imu/bmi270/bmi270_core.c
create mode 100644 drivers/iio/imu/bmi270/bmi270_i2c.c
--
2.46.0
Powered by blists - more mailing lists