Skip to contentSkip to conversation

iio: add support for Bosch BMX055 IMU

PATCH In review Jun Yan 3 participants 8 messages Feb 5 – Mar 1

Subsystems (2)
lore
Share & tools
lore

Jun Yan

author
#0 lore raw

v4 cover iio: add support for Bosch BMX055 IMU

The BMX055[1] is a Bosch 9-axis IMU integrating a 3-axis accelerometer, gyroscope and geomagnetic sensor.

It supports SPI/I²C interfaces, and existing compatible drivers can be reused by simply adding the corresponding dt-bindings for fallback coompatibles as follows:

- accelerometer: bmc150_accel
- gyroscope: bmg160
- magnetometer: bmc150_magn

Changes in v4:
- Please replace underscores with hyphens in the compatibles.
- Link to v3: https://lore.kernel.org/all/[email protected]/

Changes in v3:
- Drop the Linux-related comments in the bosch,bma25 dt-bindings.
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Use fallback compatibles instead of introducing a new device ID in the driver.
- Link to v1: https://lore.kernel.org/all/[email protected]/

[1] https://cdn.sparkfun.com/assets/b/9/1/f/4/bst-bmx055-ds000_datasheet.pdf

Jun Yan (3):
dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding
dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055
magnetometer binding
dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope
binding

 .../bindings/iio/accel/bosch,bma255.yaml      | 40 ++++++++++---------
 .../bindings/iio/gyroscope/bosch,bmg160.yaml  | 12 ++++--
 .../iio/magnetometer/bosch,bmc150_magn.yaml   | 14 ++++---
 3 files changed, 38 insertions(+), 28 deletions(-)
Signature · 1 line
2.52.0
author
#1 lore raw

PATCH v4 1/3 dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding

Add the device-tree binding for the Bosch BMX055 IMU (accelerometer part), which is compatible with bmc150_accel.

Datasheet: https://cdn.sparkfun.com/assets/b/9/1/f/4/bst-bmx055-ds000_datasheet.pdf

---
 .../bindings/iio/accel/bosch,bma255.yaml      | 40 ++++++++++---------
 1 file changed, 21 insertions(+), 19 deletions(-)
Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml +21 -19
index c1387e02eb82..7f9c5eec35dd 100644
@@ -16,25 +16,27 @@ description:
 
 properties:
   compatible:
-    enum:
-      # bmc150-accel driver in Linux
-      - bosch,bma222
-      - bosch,bma222e
-      - bosch,bma250e
-      - bosch,bma253
-      - bosch,bma254
-      - bosch,bma255
-      - bosch,bma280
-      - bosch,bmc150_accel
-      - bosch,bmc156_accel
-      - bosch,bmi055_accel
-
-      # bma180 driver in Linux
-      - bosch,bma023
-      - bosch,bma150
-      - bosch,bma180
-      - bosch,bma250
-      - bosch,smb380
+    oneOf:
+      - enum:
+          - bosch,bma222
+          - bosch,bma222e
+          - bosch,bma250e
+          - bosch,bma253
+          - bosch,bma254
+          - bosch,bma255
+          - bosch,bma280
+          - bosch,bmc150_accel
+          - bosch,bmc156_accel
+          - bosch,bmi055_accel
+
+          - bosch,bma023
+          - bosch,bma150
+          - bosch,bma180
+          - bosch,bma250
+          - bosch,smb380
+      - items:
+          - const: bosch,bmx055-accel
+          - const: bosch,bmc150_accel
 
   reg:
     maxItems: 1
Signature · 1 line
2.52.0
author
#2 lore raw

PATCH v4 2/3 dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding

In reply to Jun Yan

Add the device-tree binding for the bosch BMX055 IMU (magnetometer part), which is compatible with bmc150_magn.

Datasheet: https://cdn.sparkfun.com/assets/b/9/1/f/4/bst-bmx055-ds000_datasheet.pdf

---
 .../iio/magnetometer/bosch,bmc150_magn.yaml        | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml +9 -5
index a3838ab0c524..c1a6892b0194 100644
@@ -21,11 +21,15 @@ properties:
     description:
       Note the bmm150_magn is a deprecated compatible as this part contains only
       a magnetometer.
-    enum:
-      - bosch,bmc150_magn
-      - bosch,bmc156_magn
-      - bosch,bmm150
-      - bosch,bmm150_magn
+    oneOf:
+      - enum:
+          - bosch,bmc150_magn
+          - bosch,bmc156_magn
+          - bosch,bmm150
+          - bosch,bmm150_magn
+      - items:
+          - const: bosch,bmx055-magn
+          - const: bosch,bmc150_magn
 
   reg:
     maxItems: 1
Signature · 1 line
2.52.0
author
#3 lore raw

PATCH v4 3/3 dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding

In reply to Jun Yan

Add the device-tree binding for the bosch BMX055 IMU (gyroscope part), which is compatible with bmg160.

Datasheet: https://cdn.sparkfun.com/assets/b/9/1/f/4/bst-bmx055-ds000_datasheet.pdf

---
 .../bindings/iio/gyroscope/bosch,bmg160.yaml         | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml +8 -4
index 3c6fe74af0b8..fcbd4b430e48 100644
@@ -11,10 +11,14 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - bosch,bmg160
-      - bosch,bmi055_gyro
-      - bosch,bmi088_gyro
+    oneOf:
+      - enum:
+          - bosch,bmg160
+          - bosch,bmi055_gyro
+          - bosch,bmi088_gyro
+      - items:
+          - const: bosch,bmx055-gyro
+          - const: bosch,bmg160
 
   reg:
     maxItems: 1
Signature · 1 line
2.52.0
author
#6 lore raw
Quoted 8 lines
Quoted 2 lines · On Thu, 5 Feb 2026 18:39:18 +0000 Conor Dooley <[email protected]> wrote:

pw-bot: not-applicable

Applied to the testing branch of iio.git

This patch series commit was not found in the testing branch.

could it have been missed?

Best regards,

Jun Yan

Quoted 4 lines

Thanks,

Jonathan

maintainer
#7 lore raw
Quoted 11 lines · On Tue, 24 Feb 2026 22:11:42 +0800 Jun Yan <[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines · On Thu, 5 Feb 2026 18:39:18 +0000 Conor Dooley <[email protected]> wrote:

pw-bot: not-applicable

Applied to the testing branch of iio.git

This patch series commit was not found in the testing branch.

could it have been missed?

Good catch. I clearly messed something up here :(

Applied and pushed out now.

Jonathan

Quoted 9 lines

Best regards,

Jun Yan

Quoted 4 lines

Thanks,

Jonathan