Commit 8a636db3 authored by Jagath Jog J's avatar Jagath Jog J Committed by Jonathan Cameron
Browse files

iio: imu: Add driver for BMI323 IMU



The Bosch BMI323 is a 6-axis low-power IMU that provide measurements for
acceleration, angular rate, and temperature. This sensor includes
motion-triggered interrupt features, such as a step counter, tap detection,
and activity/inactivity interrupt capabilities.

The driver supports various functionalities, including data ready, FIFO
data handling, and events such as tap detection, step counting, and
activity interrupts.

Signed-off-by: default avatarJagath Jog J <jagathjog1996@gmail.com>
Link: https://lore.kernel.org/r/20231013034808.8948-3-jagathjog1996@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent a0357c08
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -2254,3 +2254,21 @@ Description:
		If a label is defined for this event add that to the event
		specific attributes. This is useful for userspace to be able to
		better identify an individual event.

What:		/sys/.../events/in_accel_gesture_tap_wait_timeout
KernelVersion:	6.7
Contact:	linux-iio@vger.kernel.org
Description:
		Enable tap gesture confirmation with timeout.

What:		/sys/.../events/in_accel_gesture_tap_wait_dur
KernelVersion:	6.7
Contact:	linux-iio@vger.kernel.org
Description:
		Timeout value in seconds for tap gesture confirmation.

What:		/sys/.../events/in_accel_gesture_tap_wait_dur_available
KernelVersion:	6.7
Contact:	linux-iio@vger.kernel.org
Description:
		List of available timeout value for tap gesture confirmation.
+7 −0
Original line number Diff line number Diff line
@@ -3647,6 +3647,13 @@ S: Maintained
F:	Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml
F:	drivers/iio/accel/bma400*
BOSCH SENSORTEC BMI323 IMU IIO DRIVER
M:	Jagath Jog J <jagathjog1996@gmail.com>
L:	linux-iio@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml
F:	drivers/iio/imu/bmi323/
BPF JIT for ARM
M:	Russell King <linux@armlinux.org.uk>
M:	Puranjay Mohan <puranjay12@gmail.com>
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@ config ADIS16480
	  ADIS16485, ADIS16488 inertial sensors.

source "drivers/iio/imu/bmi160/Kconfig"
source "drivers/iio/imu/bmi323/Kconfig"
source "drivers/iio/imu/bno055/Kconfig"

config FXOS8700
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ adis_lib-$(CONFIG_IIO_ADIS_LIB_BUFFER) += adis_buffer.o
obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o

obj-y += bmi160/
obj-y += bmi323/
obj-y += bno055/

obj-$(CONFIG_FXOS8700) += fxos8700_core.o
+33 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
#
# BMI323 IMU driver
#

config BMI323
	tristate
	select IIO_BUFFER
	select IIO_TRIGGERED_BUFFER

config BMI323_I2C
	tristate "Bosch BMI323 I2C driver"
	depends on I2C
	select BMI323
	select REGMAP_I2C
	help
	  Enable support for the Bosch BMI323 6-Axis IMU connected to I2C
	  interface.

	  This driver can also be built as a module. If so, the module will be
	  called bmi323_i2c.

config BMI323_SPI
	tristate "Bosch BMI323 SPI driver"
	depends on SPI
	select BMI323
	select REGMAP_SPI
	help
	  Enable support for the Bosch BMI323 6-Axis IMU connected to SPI
	  interface.

	  This driver can also be built as a module. If so, the module will be
	  called bmi323_spi.
Loading