dts: bindings: add bindings for 4 sensors

Provide dts yaml bindings for 4 sensors supported by disco_l475_iot1
board:
-hts221, lis3mdl, lps22hb and lsm6dsl
Devices are denoted as i2c-devices and, as such, inherits from
i2c-device.yaml

Signed-Off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2017-11-17 10:38:32 +01:00 committed by Kumar Gala
commit c0773cf381
4 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#
# Copyright (c) 2017, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: STMicroelectronics MEMS sensors HTS221
id: st,hts221
version: 0.1
description: >
This binding gives a base representation of HTS221 humidity and temperature
sensor
inherits:
!include i2c-device.yaml
properties:
compatible:
constraint: "st,hts221"
...

View file

@ -0,0 +1,21 @@
#
# Copyright (c) 2017, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: STMicroelectronics MEMS sensors LIS3MDL
id: st,lis3mdl-magn
version: 0.1
description: >
This binding gives a base representation of LIS3MDL magnetometer
inherits:
!include i2c-device.yaml
properties:
compatible:
constraint: "st,lis3mdl-magn"
...

View file

@ -0,0 +1,21 @@
#
# Copyright (c) 2017, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: STMicroelectronics MEMS sensors LPS22HB
id: st,lps22hb-press
version: 0.1
description: >
This binding gives a base representation of LPS22HB pressure sensor
inherits:
!include i2c-device.yaml
properties:
compatible:
constraint: "st,lps22hb-press"
...

View file

@ -0,0 +1,22 @@
#
# Copyright (c) 2017, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: STMicroelectronics MEMS sensors LSM6DSL
id: st,lps22hb-press
version: 0.1
description: >
This binding gives a base representation of LSM6DSL 6-axis accelerometer
and gyrometer
inherits:
!include i2c-device.yaml
properties:
compatible:
constraint: "st,lsm6dsl"
...