diff mbox series

[1/2] dt-bindings: iio: st,st-sensors.yaml New iis2mdc bindings

Message ID 20210305070536.2880-1-Qing-wu.Li@leica-geosystems.com.cn (mailing list archive)
State New, archived
Headers show
Series [1/2] dt-bindings: iio: st,st-sensors.yaml New iis2mdc bindings | expand

Commit Message

LI Qingwu March 5, 2021, 7:05 a.m. UTC
Add support for ST magnetometer lsm303ah,sm303dac and iis2mdc.
The patch tested with IIS2MDC instrument.

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
---
 Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Rob Herring (Arm) March 8, 2021, 9:55 p.m. UTC | #1
On Fri, Mar 05, 2021 at 07:05:35AM +0000, LI Qingwu wrote:
> Add support for ST magnetometer lsm303ah,sm303dac and iis2mdc.
> The patch tested with IIS2MDC instrument.
> 
> Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
> ---
>  Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> index db291a9390b7..6fd61ffde72b 100644
> --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
> @@ -66,6 +66,11 @@ properties:
>        - st,lis3mdl-magn
>        - st,lis2mdl
>        - st,lsm9ds1-magn
> +      - st,lsm303ah_magn
> +      - st,ism303dac_magn
> +      - st,iis2mdc_magn
> +      - st,lsm303agr_magn
> +      - st,lis2mdl_magn

s/_/-/

Though if magnetometer is the only function of these devices, then the 
part number only should be enough and '_magn' is redundant.

>          # Pressure sensors
>        - st,lps001wp-press
>        - st,lps25h-press
> -- 
> 2.17.1
>
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 db291a9390b7..6fd61ffde72b 100644
--- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
+++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml
@@ -66,6 +66,11 @@  properties:
       - st,lis3mdl-magn
       - st,lis2mdl
       - st,lsm9ds1-magn
+      - st,lsm303ah_magn
+      - st,ism303dac_magn
+      - st,iis2mdc_magn
+      - st,lsm303agr_magn
+      - st,lis2mdl_magn
         # Pressure sensors
       - st,lps001wp-press
       - st,lps25h-press