Skip to contentSkip to conversation

iio: imu: Add driver and dt-bindings for BMI323

PATCH Applied Jagath Jog J 3 participants 8 messages Oct 13, 2023 – Oct 19, 2023

Subsystems (3)
lore
Share & tools
lore

Jagath Jog J

author maintainer
#0 lore raw

v2 cover iio: imu: Add driver and dt-bindings for BMI323

Add dt-bindings and IIO driver for Bosch BMI323 a 6 axis IMU.

Complete list of device sysfs files
.

├── buffer
│   ├── data_available
│   ├── direction
│   ├── enable
│   ├── hwfifo_enabled
│   ├── hwfifo_watermark
│   ├── length
│   └── watermark
├── buffer0
│   ├── data_available
│   ├── direction
│   ├── enable
│   ├── hwfifo_enabled
│   ├── hwfifo_watermark
│   ├── in_accel_x_en
│   ├── in_accel_x_index
│   ├── in_accel_x_type
│   ├── in_accel_y_en
│   ├── in_accel_y_index
│   ├── in_accel_y_type
│   ├── in_accel_z_en
│   ├── in_accel_z_index
│   ├── in_accel_z_type
│   ├── in_anglvel_x_en
│   ├── in_anglvel_x_index
│   ├── in_anglvel_x_type
│   ├── in_anglvel_y_en
│   ├── in_anglvel_y_index
│   ├── in_anglvel_y_type
│   ├── in_anglvel_z_en
│   ├── in_anglvel_z_index
│   ├── in_anglvel_z_type
│   ├── in_timestamp_en
│   ├── in_timestamp_index
│   ├── in_timestamp_type
│   ├── length
│   └── watermark
├── current_timestamp_clock
├── dev
├── events
│   ├── in_accel_gesture_doubletap_en
│   ├── in_accel_gesture_doubletap_reset_timeout
│   ├── in_accel_gesture_doubletap_tap2_min_delay
│   ├── in_accel_gesture_doubletap_tap2_min_delay_available
│   ├── in_accel_gesture_doubletap_value
│   ├── in_accel_gesture_singletap_en
│   ├── in_accel_gesture_singletap_reset_timeout
│   ├── in_accel_gesture_singletap_value
│   ├── in_accel_gesture_tap_reset_timeout_available
│   ├── in_accel_gesture_tap_value_available
│   ├── in_accel_gesture_tap_wait_dur
│   ├── in_accel_gesture_tap_wait_dur_available
│   ├── in_accel_gesture_tap_wait_timeout
│   ├── in_accel_mag_falling_en
│   ├── in_accel_mag_falling_hysteresis
│   ├── in_accel_mag_falling_period
│   ├── in_accel_mag_falling_value
│   ├── in_accel_mag_hysteresis_available
│   ├── in_accel_mag_period_available
│   ├── in_accel_mag_rising_en
│   ├── in_accel_mag_rising_hysteresis
│   ├── in_accel_mag_rising_period
│   ├── in_accel_mag_rising_value
│   ├── in_accel_mag_value_available
│   ├── in_steps_change_en
│   └── in_steps_change_value
├── in_accel_mount_matrix
├── in_accel_oversampling_ratio
├── in_accel_oversampling_ratio_available
├── in_accel_sampling_frequency
├── in_accel_sampling_frequency_available
├── in_accel_scale
├── in_accel_scale_available
├── in_accel_x_raw
├── in_accel_y_raw
├── in_accel_z_raw
├── in_anglvel_mount_matrix
├── in_anglvel_oversampling_ratio
├── in_anglvel_oversampling_ratio_available
├── in_anglvel_sampling_frequency
├── in_anglvel_sampling_frequency_available
├── in_anglvel_scale
├── in_anglvel_scale_available
├── in_anglvel_x_raw
├── in_anglvel_y_raw
├── in_anglvel_z_raw
├── in_steps_en
├── in_steps_input
├── in_temp_offset
├── in_temp_raw
├── in_temp_scale
├── name
├── of_node -> ../../../../../../../firmware/devicetree/base/soc/i2c@7e804000/i2c_bmi323@68
├── power
│   ├── autosuspend_delay_ms
│   ├── control
│   ├── runtime_active_time
│   ├── runtime_status
│   └── runtime_suspended_time
├── scan_elements
│   ├── in_accel_x_en
│   ├── in_accel_x_index
│   ├── in_accel_x_type
│   ├── in_accel_y_en
│   ├── in_accel_y_index
│   ├── in_accel_y_type
│   ├── in_accel_z_en
│   ├── in_accel_z_index
│   ├── in_accel_z_type
│   ├── in_anglvel_x_en
│   ├── in_anglvel_x_index
│   ├── in_anglvel_x_type
│   ├── in_anglvel_y_en
│   ├── in_anglvel_y_index
│   ├── in_anglvel_y_type
│   ├── in_anglvel_z_en
│   ├── in_anglvel_z_index
│   ├── in_anglvel_z_type
│   ├── in_timestamp_en
│   ├── in_timestamp_index
│   └── in_timestamp_type
├── subsystem -> ../../../../../../../bus/iio
├── trigger
│   └── current_trigger
├── uevent
└── waiting_for_supplier

Changes from RFC to v2

Review by Andy:
- Sorted header files and added unit.h
- Splitting macro
- Defined new macros and enums to use in place of magic numbers.
- Used KILO instead of large number
- Used guard and scoped_guard from cleanup.h
- Used ARRAY_SIZE() instead of value
- Replaced kstrtoint with kstrtobool
- Used min() and in_range() from minmax.h
- Used GENMASK instead of magic number
- Remove error print from interrupt handler
- Removed casting and le16_to_cpup, used sign_extend32 for getting final value
- Used while loop instead of for
- Remove the check for the return value of 0 from fwnode_irq_get_byname()
- Used dev_err_probe() in all probe paths
- Removed 0 from i2c_ids[]
- Used read_flag_mask for spi regmap configuration
- Dropped blank line
- Used regmap_read_poll_timeout() function instead of while loop
- Applied fixes as per review

Review by Jonathan
- Used oversampling instead of averaging
- Reverse the order of avail_scan_masks
- Use FIELD_PREP() directly in place of set_mask_bits
- Remove irq_type from devm_request_threaded_irq
- Use FIELD_GET() with mask
- Added comment for delay used for feature engine enable
- Use dev_err_probe in all probe paths
- For I2C regmap, allocated memory in device private data
- Use pad_bits=16 for spi regmap_configuration
- Added both interrupts in the dt-bindings

Review by Krzysztof Kozlowski
- Removed duplicated words from subject
- Removed '|'
- Added supplies
- Used generic node name "imu"
- Removed spi example node

Review by Uwe Kleine-König
- Use probe instead of probe_new
- Placed datasheet in driver

Jagath Jog J (2):
dt-bindings: iio: imu: Add Bosch BMI323
iio: imu: Add driver for BMI323 IMU

 Documentation/ABI/testing/sysfs-bus-iio       |   18 +
 .../bindings/iio/imu/bosch,bmi323.yaml        |   77 +
 MAINTAINERS                                   |    7 +
 drivers/iio/imu/Kconfig                       |    1 +
 drivers/iio/imu/Makefile                      |    1 +
 drivers/iio/imu/bmi323/Kconfig                |   33 +
 drivers/iio/imu/bmi323/Makefile               |    7 +
 drivers/iio/imu/bmi323/bmi323.h               |  209 ++
 drivers/iio/imu/bmi323/bmi323_core.c          | 2139 +++++++++++++++++
 drivers/iio/imu/bmi323/bmi323_i2c.c           |  121 +
 drivers/iio/imu/bmi323/bmi323_spi.c           |   92 +
 11 files changed, 2705 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml
 create mode 100644 drivers/iio/imu/bmi323/Kconfig
 create mode 100644 drivers/iio/imu/bmi323/Makefile
 create mode 100644 drivers/iio/imu/bmi323/bmi323.h
 create mode 100644 drivers/iio/imu/bmi323/bmi323_core.c
 create mode 100644 drivers/iio/imu/bmi323/bmi323_i2c.c
 create mode 100644 drivers/iio/imu/bmi323/bmi323_spi.c
Signature · 1 line
2.20.1
author maintainer
#1 lore raw

PATCH v2 1/2 dt-bindings: iio: imu: Add Bosch BMI323

Add devicetree description document for Bosch BMI323, a 6-Axis IMU.

---
 .../bindings/iio/imu/bosch,bmi323.yaml        | 77 +++++++++++++++++++
 1 file changed, 77 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml
Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml new file +77 -0
new file mode 100644
index 000000000000..64ef26e19669
@@ -0,0 +1,77 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/imu/bosch,bmi323.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Bosch BMI323 6-Axis IMU
+
+maintainers:
+  - Jagath Jog J <[email protected]>
+
+description:
+  BMI323 is a 6-axis inertial measurement unit that supports acceleration and
+  gyroscopic measurements with hardware fifo buffering. Sensor also provides
+  events information such as motion, steps, orientation, single and double
+  tap detection.
+
+properties:
+  compatible:
+    const: bosch,bmi323
+
+  reg:
+    maxItems: 1
+
+  vdd-supply: true
+  vddio-supply: true
+
+  interrupts:
+    minItems: 1
+    maxItems: 2
+
+  interrupt-names:
+    minItems: 1
+    maxItems: 2
+    items:
+      enum:
+        - INT1
+        - INT2
+
+  drive-open-drain:
+    description:
+      set if the specified interrupt pin should be configured as
+      open drain. If not set, defaults to push-pull.
+
+  mount-matrix:
+    description:
+      an optional 3x3 mounting rotation matrix.
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+  - vddio-supply
+
+allOf:
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    // Example for I2C
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        imu@68 {
+            compatible = "bosch,bmi323";
+            reg = <0x68>;
+            vddio-supply = <&vddio>;
+            vdd-supply = <&vdd>;
+            interrupt-parent = <&gpio1>;
+            interrupts = <29 IRQ_TYPE_EDGE_RISING>;
+            interrupt-names = "INT1";
+        };
+    };
Signature · 1 line
2.20.1
author maintainer
#3 lore raw

PATCH v2 2/2 iio: imu: Add driver for BMI323 IMU

In reply to Jagath Jog J

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.

---
 Documentation/ABI/testing/sysfs-bus-iio |   18 +
 MAINTAINERS                             |    7 +
 drivers/iio/imu/Kconfig                 |    1 +
 drivers/iio/imu/Makefile                |    1 +
 drivers/iio/imu/bmi323/Kconfig          |   33 +
 drivers/iio/imu/bmi323/Makefile         |    7 +
 drivers/iio/imu/bmi323/bmi323.h         |  209 +++
 drivers/iio/imu/bmi323/bmi323_core.c    | 2139 +++++++++++++++++++++++
 drivers/iio/imu/bmi323/bmi323_i2c.c     |  121 ++
 drivers/iio/imu/bmi323/bmi323_spi.c     |   92 +
 10 files changed, 2628 insertions(+)
 create mode 100644 drivers/iio/imu/bmi323/Kconfig
 create mode 100644 drivers/iio/imu/bmi323/Makefile
 create mode 100644 drivers/iio/imu/bmi323/bmi323.h
 create mode 100644 drivers/iio/imu/bmi323/bmi323_core.c
 create mode 100644 drivers/iio/imu/bmi323/bmi323_i2c.c
 create mode 100644 drivers/iio/imu/bmi323/bmi323_spi.c
Documentation/ABI/testing/sysfs-bus-iio +18 -0
index 19cde14f3869..c66fc560ee4b 100644
@@ -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:	[email protected]
+Description:
+		Enable tap gesture confirmation with timeout.
+
+What:		/sys/.../events/in_accel_gesture_tap_wait_dur
+KernelVersion:	6.7
+Contact:	[email protected]
+Description:
+		Timeout value for tap gesture confirmation.
+
+What:		/sys/.../events/in_accel_gesture_tap_wait_dur_available
+KernelVersion:	6.7
+Contact:	[email protected]
+Description:
+		List of available timeout value for tap gesture confirmation.
MAINTAINERS +7 -0
index 4e07c032d06a..47ca415212a7 100644
@@ -3595,6 +3595,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 <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml
+F:	drivers/iio/imu/bmi323/
+
 BPF JIT for ARM
 M:	Shubham Bansal <[email protected]>
 L:	[email protected]
drivers/iio/imu/Kconfig +1 -0
index c2f97629e9cd..6c9a85294bc1 100644
@@ -54,6 +54,7 @@ config ADIS16480
 
 source "drivers/iio/imu/bmi160/Kconfig"
 source "drivers/iio/imu/bno055/Kconfig"
+source "drivers/iio/imu/bmi323/Kconfig"
 
 config FXOS8700
 	tristate
drivers/iio/imu/Makefile +1 -0
index 6eb612034722..627406476357 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o
 
 obj-y += bmi160/
 obj-y += bno055/
+obj-y += bmi323/
 
 obj-$(CONFIG_FXOS8700) += fxos8700_core.o
 obj-$(CONFIG_FXOS8700_I2C) += fxos8700_i2c.o
drivers/iio/imu/bmi323/Kconfig new file +33 -0
new file mode 100644
index 000000000000..ab37b285393c
@@ -0,0 +1,33 @@
+# 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.
drivers/iio/imu/bmi323/Makefile new file +7 -0
new file mode 100644
index 000000000000..a6a6dc0207c9
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for Bosch BMI323 IMU
+#
+obj-$(CONFIG_BMI323) += bmi323_core.o
+obj-$(CONFIG_BMI323_I2C) += bmi323_i2c.o
+obj-$(CONFIG_BMI323_SPI) += bmi323_spi.o
drivers/iio/imu/bmi323/bmi323.h new file +209 -0

209 lines not on this page · raw message

drivers/iio/imu/bmi323/bmi323_core.c new file +2139 -0

2,139 lines not on this page · raw message

drivers/iio/imu/bmi323/bmi323_i2c.c new file +121 -0

121 lines not on this page · raw message

drivers/iio/imu/bmi323/bmi323_spi.c new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
2.20.1
maintainer
#4 lore raw

Re: [PATCH v2 2/2] iio: imu: Add driver for BMI323 IMU

Quoted 10 lines · On Fri, 13 Oct 2023 09:18:08 +0530 Jagath Jog J <[email protected]> wrote:

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.

Hi Jagath,

Nice driver.

We are rapidly approaching the end of this cycle and as this is a large driver, I think it could do to remain on list at least a week before I apply it or until it picks up some tags from others if that happens sooner. Hence I'm afraid it might well sneak into next cycle.

A couple of really small things in the docs and build files from me.

Jonathan

Quoted 30 lines
---
 Documentation/ABI/testing/sysfs-bus-iio |   18 +
 MAINTAINERS                             |    7 +
 drivers/iio/imu/Kconfig                 |    1 +
 drivers/iio/imu/Makefile                |    1 +
 drivers/iio/imu/bmi323/Kconfig          |   33 +
 drivers/iio/imu/bmi323/Makefile         |    7 +
 drivers/iio/imu/bmi323/bmi323.h         |  209 +++
 drivers/iio/imu/bmi323/bmi323_core.c    | 2139 +++++++++++++++++++++++
 drivers/iio/imu/bmi323/bmi323_i2c.c     |  121 ++
 drivers/iio/imu/bmi323/bmi323_spi.c     |   92 +
 10 files changed, 2628 insertions(+)
 create mode 100644 drivers/iio/imu/bmi323/Kconfig
 create mode 100644 drivers/iio/imu/bmi323/Makefile
 create mode 100644 drivers/iio/imu/bmi323/bmi323.h
 create mode 100644 drivers/iio/imu/bmi323/bmi323_core.c
 create mode 100644 drivers/iio/imu/bmi323/bmi323_i2c.c
 create mode 100644 drivers/iio/imu/bmi323/bmi323_spi.c
Documentation/ABI/testing/sysfs-bus-iio +3 -0
index 19cde14f3869..c66fc560ee4b 100644
@@ -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

Documentation/ABI/testing/sysfs-bus-iio Description: · line 2268

Quoted 10 lines
Documentation/ABI/testing/sysfs-bus-iio +9 -0
+Contact:	[email protected]
+Description:
+		Enable tap gesture confirmation with timeout.
 
+
+What:		/sys/.../events/in_accel_gesture_tap_wait_dur
+KernelVersion:	6.7
+Contact:	[email protected]
+Description:
+		Timeout value for tap gesture confirmation.

Units need to be specified. Seconds?

Quoted 29 lines
Documentation/ABI/testing/sysfs-bus-iio +6 -0
+
+What:		/sys/.../events/in_accel_gesture_tap_wait_dur_available
+KernelVersion:	6.7
+Contact:	[email protected]
+Description:
+		List of available timeout value for tap gesture confirmation.
MAINTAINERS +7 -0
index 4e07c032d06a..47ca415212a7 100644
@@ -3595,6 +3595,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 <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/devicetree/bindings/iio/imu/bosch,bma400.yaml
+F:	drivers/iio/imu/bmi323/
+
 BPF JIT for ARM
 M:	Shubham Bansal <[email protected]>
 L:	[email protected]
drivers/iio/imu/Kconfig +0 -0
index c2f97629e9cd..6c9a85294bc1 100644

drivers/iio/imu/Kconfig config ADIS16480 · line 57

Quoted 4 lines
drivers/iio/imu/Kconfig +1 -0
@@ -54,6 +54,7 @@ config ADIS16480
 
 source "drivers/iio/imu/bmi160/Kconfig"
 source "drivers/iio/imu/bno055/Kconfig"
+source "drivers/iio/imu/bmi323/Kconfig"

Same on ordering.

drivers/iio/imu/Makefile obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o · line 19

Quoted 12 lines
drivers/iio/imu/Kconfig +0 -0
 config FXOS8700
 	tristate
drivers/iio/imu/Makefile +1 -0
index 6eb612034722..627406476357 100644
@@ -16,6 +16,7 @@ obj-$(CONFIG_IIO_ADIS_LIB) += adis_lib.o
 
 obj-y += bmi160/
 obj-y += bno055/
+obj-y += bmi323/ 

Alphabetical order.

Quoted 6 lines
drivers/iio/imu/bmi323/bmi323_core.c new file +0 -0
new file mode 100644
index 000000000000..0bd5dedd9a63
@@ -0,0 +1,2139 @@
author maintainer
#5 lore raw

Re: [PATCH v2 2/2] iio: imu: Add driver for BMI323 IMU

Quoted 14 lines · Jonathan Cameron
Quoted 10 lines · On Fri, 13 Oct 2023 09:18:08 +0530 Jagath Jog J <[email protected]> wrote:

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.

Quoted 8 lines

Hi Jagath,

Nice driver.

We are rapidly approaching the end of this cycle and as this is a large driver, I think it could do to remain on list at least a week before I apply it or until it picks up some tags from others if that happens sooner. Hence I'm afraid it might well sneak into next cycle.

Hi Jonathan

Thank you for reviewing, I understand the need for additional time to ensure a thorough review and to await feedback and tags from other reviewers. I'm okay with your schedule.

Quoted 8 lines

Documentation/ABI/testing/sysfs-bus-iio Description: · line 2268

Quoted 6 lines
Documentation/ABI/testing/sysfs-bus-iio +6 -0
+
+What:                /sys/.../events/in_accel_gesture_tap_wait_dur
+KernelVersion:       6.7
+Contact:     [email protected]
+Description:
+             Timeout value for tap gesture confirmation.

Units need to be specified. Seconds?

Yes, these are in seconds. I will add units in the next series.

Quoted 4 lines
Quoted 3 lines

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

Same on ordering.

Sure I will correct this in v3.

Regards
Jagath

maintainer Applied
#6 lore raw

Re: [PATCH v2 2/2] iio: imu: Add driver for BMI323 IMU

Quoted 42 lines · On Sun, 15 Oct 2023 16:00:34 +0530 Jagath Jog J <[email protected]> wrote:
Quoted 14 lines · Jonathan Cameron
Quoted 10 lines · On Fri, 13 Oct 2023 09:18:08 +0530 Jagath Jog J <[email protected]> wrote:

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.

Quoted 8 lines

Hi Jagath,

Nice driver.

We are rapidly approaching the end of this cycle and as this is a large driver, I think it could do to remain on list at least a week before I apply it or until it picks up some tags from others if that happens sooner. Hence I'm afraid it might well sneak into next cycle.

Hi Jonathan

Thank you for reviewing, I understand the need for additional time to ensure a thorough review and to await feedback and tags from other reviewers. I'm okay with your schedule.

Quoted 8 lines

Documentation/ABI/testing/sysfs-bus-iio Description: · line 2268

Quoted 6 lines
Documentation/ABI/testing/sysfs-bus-iio +6 -0
+
+What:                /sys/.../events/in_accel_gesture_tap_wait_dur
+KernelVersion:       6.7
+Contact:     [email protected]
+Description:
+             Timeout value for tap gesture confirmation.  

Units need to be specified. Seconds?

Yes, these are in seconds. I will add units in the next series.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

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

Same on ordering.

Sure I will correct this in v3.

Given they were so minor I've fixed them up whilst applying. I doubt this will make 6.7, but you never know if things happen to align. If not it can have a bit more build test exposure which will do no harm.

Applied to the togreg branch of iio.git and pushed out initially as testing for all the normal reasons.

Thanks,

Jonathan

Quoted 3 lines

Regards
Jagath

author maintainer
#7 lore raw

Re: [PATCH v2 2/2] iio: imu: Add driver for BMI323 IMU

Hi Jonathan, Andy and Krzysztof

Quoted 14 lines · Jonathan Cameron
Quoted 10 lines · On Sun, 15 Oct 2023 16:00:34 +0530 Jagath Jog J <[email protected]> wrote:
Quoted 9 lines · Jonathan Cameron
Quoted 5 lines · On Fri, 13 Oct 2023 09:18:08 +0530 Jagath Jog J <[email protected]> wrote:

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.

...

Quoted 7 lines

Given they were so minor I've fixed them up whilst applying. I doubt this will make 6.7, but you never know if things happen to align. If not it can have a bit more build test exposure which will do no harm.

Applied to the togreg branch of iio.git and pushed out initially as testing for all the normal reasons.

I greatly appreciate all the reviews and suggestions. Thank you for accepting the series.

Regards

Jagath