Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU
@ 2026-02-03 14:39 Jun Yan
  2026-02-03 14:39 ` [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding Jun Yan
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jun Yan @ 2026-02-03 14:39 UTC (permalink / raw)
  To: devicetree, linux-iio; +Cc: linusw, stephan, hns, jic23, Jun Yan

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 v3:
- Drop the Linux-related comments in the bosch,bma25 dt-bindings.
- Link to v2: https://lore.kernel.org/all/20260202110304.236320-1-jerrysteve1101@gmail.com/

- Changes in v2:
- Use fallback compatibles instead of introducing a new device ID in the driver.
- Link to v1: https://lore.kernel.org/all/20260129071105.389493-1-jerrysteve1101@gmail.com/

[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      | 41 ++++++++++---------
 .../bindings/iio/gyroscope/bosch,bmg160.yaml  | 12 ++++--
 .../iio/magnetometer/bosch,bmc150_magn.yaml   | 14 ++++---
 3 files changed, 39 insertions(+), 28 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding
  2026-02-03 14:39 [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Jun Yan
@ 2026-02-03 14:39 ` Jun Yan
  2026-02-04 17:57   ` Conor Dooley
  2026-02-06 12:47   ` Linus Walleij
  2026-02-03 14:39 ` [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding Jun Yan
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ messages in thread
From: Jun Yan @ 2026-02-03 14:39 UTC (permalink / raw)
  To: devicetree, linux-iio; +Cc: linusw, stephan, hns, jic23, Jun Yan

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
Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 .../bindings/iio/accel/bosch,bma255.yaml      | 41 ++++++++++---------
 1 file changed, 22 insertions(+), 19 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
index c1387e02eb82..969a8ed3f539 100644
--- a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
@@ -16,25 +16,28 @@ 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,bmx055_accel
+
+          - bosch,bma023
+          - bosch,bma150
+          - bosch,bma180
+          - bosch,bma250
+          - bosch,smb380
+      - items:
+          - const: bosch,bmx055
+          - const: bosch,bmc150_accel
 
   reg:
     maxItems: 1
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding
  2026-02-03 14:39 [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Jun Yan
  2026-02-03 14:39 ` [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding Jun Yan
@ 2026-02-03 14:39 ` Jun Yan
  2026-02-04 17:58   ` Conor Dooley
  2026-02-03 14:39 ` [PATCH v3 3/3] dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding Jun Yan
  2026-02-03 23:36 ` [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Linus Walleij
  3 siblings, 1 reply; 10+ messages in thread
From: Jun Yan @ 2026-02-03 14:39 UTC (permalink / raw)
  To: devicetree, linux-iio; +Cc: linusw, stephan, hns, jic23, 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
Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 .../iio/magnetometer/bosch,bmc150_magn.yaml        | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml
index a3838ab0c524..09d1dc861d4f 100644
--- a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml
+++ b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml
@@ -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
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v3 3/3] dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding
  2026-02-03 14:39 [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Jun Yan
  2026-02-03 14:39 ` [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding Jun Yan
  2026-02-03 14:39 ` [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding Jun Yan
@ 2026-02-03 14:39 ` Jun Yan
  2026-02-04 17:58   ` Conor Dooley
  2026-02-03 23:36 ` [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Linus Walleij
  3 siblings, 1 reply; 10+ messages in thread
From: Jun Yan @ 2026-02-03 14:39 UTC (permalink / raw)
  To: devicetree, linux-iio; +Cc: linusw, stephan, hns, jic23, 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
Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
---
 .../bindings/iio/gyroscope/bosch,bmg160.yaml         | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
index 3c6fe74af0b8..e19aa1797f14 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
@@ -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
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU
  2026-02-03 14:39 [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Jun Yan
                   ` (2 preceding siblings ...)
  2026-02-03 14:39 ` [PATCH v3 3/3] dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding Jun Yan
@ 2026-02-03 23:36 ` Linus Walleij
  3 siblings, 0 replies; 10+ messages in thread
From: Linus Walleij @ 2026-02-03 23:36 UTC (permalink / raw)
  To: Jun Yan; +Cc: devicetree, linux-iio, stephan, hns, jic23

On Tue, Feb 3, 2026 at 3:40 PM Jun Yan <jerrysteve1101@gmail.com> wrote:

> 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

The series:
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding
  2026-02-03 14:39 ` [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding Jun Yan
@ 2026-02-04 17:57   ` Conor Dooley
  2026-02-06 12:47   ` Linus Walleij
  1 sibling, 0 replies; 10+ messages in thread
From: Conor Dooley @ 2026-02-04 17:57 UTC (permalink / raw)
  To: Jun Yan; +Cc: devicetree, linux-iio, linusw, stephan, hns, jic23

[-- Attachment #1: Type: text/plain, Size: 75 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: not-applicable

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding
  2026-02-03 14:39 ` [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding Jun Yan
@ 2026-02-04 17:58   ` Conor Dooley
  2026-02-05 14:31     ` Jun Yan
  0 siblings, 1 reply; 10+ messages in thread
From: Conor Dooley @ 2026-02-04 17:58 UTC (permalink / raw)
  To: Jun Yan; +Cc: devicetree, linux-iio, linusw, stephan, hns, jic23

[-- Attachment #1: Type: text/plain, Size: 1548 bytes --]

On Tue, Feb 03, 2026 at 10:39:42PM +0800, Jun Yan wrote:
> 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
> Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
> ---
>  .../iio/magnetometer/bosch,bmc150_magn.yaml        | 14 +++++++++-----
>  1 file changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml
> index a3838ab0c524..09d1dc861d4f 100644
> --- a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml
> +++ b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml
> @@ -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

s/_/-/ here please, we don't permit _s in new compatibles.
pw-bot: changes-requested

> +          - const: bosch,bmc150_magn
>  
>    reg:
>      maxItems: 1
> -- 
> 2.52.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 3/3] dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding
  2026-02-03 14:39 ` [PATCH v3 3/3] dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding Jun Yan
@ 2026-02-04 17:58   ` Conor Dooley
  0 siblings, 0 replies; 10+ messages in thread
From: Conor Dooley @ 2026-02-04 17:58 UTC (permalink / raw)
  To: Jun Yan; +Cc: devicetree, linux-iio, linusw, stephan, hns, jic23

[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]

On Tue, Feb 03, 2026 at 10:39:43PM +0800, Jun Yan wrote:
> 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
> Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
> ---
>  .../bindings/iio/gyroscope/bosch,bmg160.yaml         | 12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
> index 3c6fe74af0b8..e19aa1797f14 100644
> --- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
> +++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
> @@ -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

Same here, please.
pw-bot: changes-requested

> +          - const: bosch,bmg160
>  
>    reg:
>      maxItems: 1
> -- 
> 2.52.0
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding
  2026-02-04 17:58   ` Conor Dooley
@ 2026-02-05 14:31     ` Jun Yan
  0 siblings, 0 replies; 10+ messages in thread
From: Jun Yan @ 2026-02-05 14:31 UTC (permalink / raw)
  To: conor; +Cc: devicetree, hns, jerrysteve1101, jic23, linusw, linux-iio,
	stephan

Hello,
> On Tue, Feb 03, 2026 at 10:39:42PM +0800, Jun Yan wrote:
> > Add the device-tree binding for the bosch BMX055 IMU (magnetometer
> > part), which is compatible with bmc150_magn.
> >=20
> > Datasheet: https://cdn.sparkfun.com/assets/b/9/1/f/4/bst-bmx055-ds000_dat=
> asheet.pdf
> > Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>
> > ---
> >  .../iio/magnetometer/bosch,bmc150_magn.yaml        | 14 +++++++++-----
> >  1 file changed, 9 insertions(+), 5 deletions(-)
> >=20
> > diff --git a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc=
> 150_magn.yaml b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bm=
> c150_magn.yaml
> > index a3838ab0c524..09d1dc861d4f 100644
> > --- a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_mag=
> n.yaml
> > +++ b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_mag=
> n.yaml
> > @@ -21,11 +21,15 @@ properties:
> >      description:
> >        Note the bmm150_magn is a deprecated compatible as this part conta=
> ins 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
> 
> s/_/-/ here please, we don't permit _s in new compatibles.
Got it, will change _ to - for the new compatibles.

Best regards,
Jun Yan
> pw-bot: changes-requested
> 
> > +          - const: bosch,bmc150_magn
> > =20
> >    reg:
> >      maxItems: 1
> > --=20
> > 2.52.0
> >=20
> >=20

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding
  2026-02-03 14:39 ` [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding Jun Yan
  2026-02-04 17:57   ` Conor Dooley
@ 2026-02-06 12:47   ` Linus Walleij
  1 sibling, 0 replies; 10+ messages in thread
From: Linus Walleij @ 2026-02-06 12:47 UTC (permalink / raw)
  To: Jun Yan; +Cc: devicetree, linux-iio, stephan, hns, jic23

On Tue, Feb 3, 2026 at 3:40 PM Jun Yan <jerrysteve1101@gmail.com> wrote:

> 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
> Signed-off-by: Jun Yan <jerrysteve1101@gmail.com>

Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-02-06 12:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03 14:39 [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Jun Yan
2026-02-03 14:39 ` [PATCH v3 1/3] dt-bindings: iio: accel: bosch,bma255: add bmx055 accel binding Jun Yan
2026-02-04 17:57   ` Conor Dooley
2026-02-06 12:47   ` Linus Walleij
2026-02-03 14:39 ` [PATCH v3 2/3] dt-bindings: iio: magnetometer: bosch,bmc150_magn: add bmx055 magnetometer binding Jun Yan
2026-02-04 17:58   ` Conor Dooley
2026-02-05 14:31     ` Jun Yan
2026-02-03 14:39 ` [PATCH v3 3/3] dt-bindings: iio: gyroscope: bosch,bmg160: add bmx055 gyroscope binding Jun Yan
2026-02-04 17:58   ` Conor Dooley
2026-02-03 23:36 ` [PATCH v3 0/3] iio: add support for Bosch BMX055 IMU Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox