diff mbox series

[2/2] dt-bindings: iio: imu: st_lsm6dsx: add asm330lhhxg1

Message ID 90d675537e58c9c339545a895e8164a843821682.1706093274.git.lorenzo@kernel.org (mailing list archive)
State Changes Requested
Headers show
Series add support for ASM330LHHXG1 | expand

Commit Message

Lorenzo Bianconi Jan. 24, 2024, 10:52 a.m. UTC
Add device bindings for asm330lhhxg1 IMU sensor.
Use asm330lhhx as fallback device for asm330lhhxg1 since it implements
all the features currently supported by asm330lhhxg1.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
 Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jonathan Cameron Jan. 27, 2024, 3:04 p.m. UTC | #1
On Wed, 24 Jan 2024 11:52:34 +0100
Lorenzo Bianconi <lorenzo@kernel.org> wrote:

> Add device bindings for asm330lhhxg1 IMU sensor.
> Use asm330lhhx as fallback device for asm330lhhxg1 since it implements
> all the features currently supported by asm330lhhxg1.

Can we clarify if the hardware of the asm330lhhxg1 supports
1) Exactly the same features as the asm330lhhx
   (Valid use for a fallback compatible, because we might find
    bugs etc in future).
2) More features, but the asm330lhhx features set is a subset.
   (Most valid use for a fallback compatible)
3) Different features from the asm330llhhx but driver only supports
   a set both support? (this is a problem)

I 'think' it is 2 from your text, but I'm not 100% sure I've understood
correctly.
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
>  Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> index 28b667a9cb76..7ba3de66a2e1 100644
> --- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> +++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> @@ -49,6 +49,9 @@ properties:
>        - items:
>            - const: st,asm330lhb
>            - const: st,asm330lhh
> +      - items:
> +          - const: st,asm330lhhxg1
> +          - const: st,asm330lhhx
>  
>    reg:
>      maxItems: 1
Lorenzo Bianconi Jan. 28, 2024, 10:35 a.m. UTC | #2
> On Wed, 24 Jan 2024 11:52:34 +0100
> Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> 
> > Add device bindings for asm330lhhxg1 IMU sensor.
> > Use asm330lhhx as fallback device for asm330lhhxg1 since it implements
> > all the features currently supported by asm330lhhxg1.
> 
> Can we clarify if the hardware of the asm330lhhxg1 supports
> 1) Exactly the same features as the asm330lhhx
>    (Valid use for a fallback compatible, because we might find
>     bugs etc in future).
> 2) More features, but the asm330lhhx features set is a subset.
>    (Most valid use for a fallback compatible)

Hi Jonathan,

afaik asm330lhhx supports a subset of asm330lhhxg1 features (adding st folks in
cc for some clarification here) but they are not implemented in st_lsm6dsx.

Regards,
Lorenzo

> 3) Different features from the asm330llhhx but driver only supports
>    a set both support? (this is a problem)
> 
> I 'think' it is 2 from your text, but I'm not 100% sure I've understood
> correctly.
> > 
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> >  Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> > index 28b667a9cb76..7ba3de66a2e1 100644
> > --- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> > +++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> > @@ -49,6 +49,9 @@ properties:
> >        - items:
> >            - const: st,asm330lhb
> >            - const: st,asm330lhh
> > +      - items:
> > +          - const: st,asm330lhhxg1
> > +          - const: st,asm330lhhx
> >  
> >    reg:
> >      maxItems: 1
>
Jonathan Cameron Jan. 28, 2024, 1:38 p.m. UTC | #3
On Sun, 28 Jan 2024 11:35:23 +0100
Lorenzo Bianconi <lorenzo@kernel.org> wrote:

> > On Wed, 24 Jan 2024 11:52:34 +0100
> > Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> >   
> > > Add device bindings for asm330lhhxg1 IMU sensor.
> > > Use asm330lhhx as fallback device for asm330lhhxg1 since it implements
> > > all the features currently supported by asm330lhhxg1.  
> > 
> > Can we clarify if the hardware of the asm330lhhxg1 supports
> > 1) Exactly the same features as the asm330lhhx
> >    (Valid use for a fallback compatible, because we might find
> >     bugs etc in future).
> > 2) More features, but the asm330lhhx features set is a subset.
> >    (Most valid use for a fallback compatible)  
> 
> Hi Jonathan,
> 
> afaik asm330lhhx supports a subset of asm330lhhxg1 features (adding st folks in
> cc for some clarification here) but they are not implemented in st_lsm6dsx.

Great.  State that a little more clearly in the patch description for
v2 please.

Thanks,

Jonathan

> 
> Regards,
> Lorenzo
> 
> > 3) Different features from the asm330llhhx but driver only supports
> >    a set both support? (this is a problem)
> > 
> > I 'think' it is 2 from your text, but I'm not 100% sure I've understood
> > correctly.  
> > > 
> > > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > > ---
> > >  Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 3 +++
> > >  1 file changed, 3 insertions(+)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> > > index 28b667a9cb76..7ba3de66a2e1 100644
> > > --- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> > > +++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
> > > @@ -49,6 +49,9 @@ properties:
> > >        - items:
> > >            - const: st,asm330lhb
> > >            - const: st,asm330lhh
> > > +      - items:
> > > +          - const: st,asm330lhhxg1
> > > +          - const: st,asm330lhhx
> > >  
> > >    reg:
> > >      maxItems: 1  
> >
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
index 28b667a9cb76..7ba3de66a2e1 100644
--- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
+++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
@@ -49,6 +49,9 @@  properties:
       - items:
           - const: st,asm330lhb
           - const: st,asm330lhh
+      - items:
+          - const: st,asm330lhhxg1
+          - const: st,asm330lhhx
 
   reg:
     maxItems: 1