diff mbox series

[2/3] dt-bindings: iio: st: Add Silan SC7A20 accelerometer

Message ID 20220130034441.15474-3-samuel@sholland.org (mailing list archive)
State Changes Requested
Headers show
Series iio: Silan SC7A20 accelerometer support | expand

Commit Message

Samuel Holland Jan. 30, 2022, 3:44 a.m. UTC
This chip appears to be a clone of the LIS2DH, as the register bit
definitions match exactly.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 +
 1 file changed, 1 insertion(+)

Comments

Jonathan Cameron Jan. 30, 2022, 2:12 p.m. UTC | #1
On Sat, 29 Jan 2022 21:44:40 -0600
Samuel Holland <samuel@sholland.org> wrote:

> This chip appears to be a clone of the LIS2DH, as the register bit
> definitions match exactly.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>
> ---
> 
>  Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> index 71de5631ebae..70f755041d8a 100644
> --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> @@ -24,6 +24,7 @@ properties:
>      oneOf:
>        - description: STMicroelectronics Accelerometers

It's not an STMicroelectronics part, so add a new block for silan ones.

Thanks,

Jonathan


>          enum:
> +          - silan,sc7a20
>            - st,h3lis331dl-accel
>            - st,lis2de12
>            - st,lis2dw12
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
index 71de5631ebae..70f755041d8a 100644
--- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
+++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
@@ -24,6 +24,7 @@  properties:
     oneOf:
       - description: STMicroelectronics Accelerometers
         enum:
+          - silan,sc7a20
           - st,h3lis331dl-accel
           - st,lis2de12
           - st,lis2dw12