2022-05-10 16:43:33

by LI Qingwu

[permalink] [raw]
Subject: [PATCH V2 6/6] dt-bindings: iio: accel: Add bmi085 and bmi090l bindings

Adds the device-tree bindings for the Bosch
BMI085 and BMI090L IMU, the accelerometer part.

Signed-off-by: LI Qingwu <[email protected]>
---
Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
index 911a1ae9c83f..4290f5f88a8f 100644
--- a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
@@ -18,6 +18,8 @@ properties:
compatible:
enum:
- bosch,bmi088-accel
+ - bosch,bmi085-accel
+ - bosch,bmi090l-accel

reg:
maxItems: 1
--
2.25.1



2022-05-12 13:23:13

by Alexandru Ardelean

[permalink] [raw]
Subject: Re: [PATCH V2 6/6] dt-bindings: iio: accel: Add bmi085 and bmi090l bindings

On Tue, May 10, 2022 at 5:18 PM LI Qingwu
<[email protected]> wrote:
>
> Adds the device-tree bindings for the Bosch
> BMI085 and BMI090L IMU, the accelerometer part.
>

I think some datasheet links could be added to this file for the new devices.

The BMI088 has a link to its datasheet.

> Signed-off-by: LI Qingwu <[email protected]>
> ---
> Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
> index 911a1ae9c83f..4290f5f88a8f 100644
> --- a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
> +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
> @@ -18,6 +18,8 @@ properties:
> compatible:
> enum:
> - bosch,bmi088-accel
> + - bosch,bmi085-accel
> + - bosch,bmi090l-accel
>
> reg:
> maxItems: 1
> --
> 2.25.1
>

2022-05-14 16:17:41

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH V2 6/6] dt-bindings: iio: accel: Add bmi085 and bmi090l bindings

On Thu, 12 May 2022 10:32:55 +0300
Alexandru Ardelean <[email protected]> wrote:

> On Tue, May 10, 2022 at 5:18 PM LI Qingwu
> <[email protected]> wrote:
> >
> > Adds the device-tree bindings for the Bosch
> > BMI085 and BMI090L IMU, the accelerometer part.
> >
>
> I think some datasheet links could be added to this file for the new devices.
>
> The BMI088 has a link to its datasheet.
>
> > Signed-off-by: LI Qingwu <[email protected]>
> > ---
> > Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
> > index 911a1ae9c83f..4290f5f88a8f 100644
> > --- a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
> > +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml
> > @@ -18,6 +18,8 @@ properties:
> > compatible:
> > enum:
> > - bosch,bmi088-accel
> > + - bosch,bmi085-accel
> > + - bosch,bmi090l-accel

Alphabetical /numeric order preferred. Also, fun question of compatible
fallbacks as per the previous email. Other than ID you state the bmi080l
has same scales etc as the bmi088 so that one should definitely have
a fallback to bmi088.

The bmi085 is a little less obvious. We can detect the difference by
the chip id though so a fallback compatible probably makes sense for
that one as well. DT maintainers - I'll go with whatever you recommend
on that front.

Also, driver doesn't currently have an of_id_table so relies on the fallback
handling of the spi core. Please add an explicit table to the driver.

Thanks,

Jonathan

> >
> > reg:
> > maxItems: 1
> > --
> > 2.25.1
> >