sensors: move lps25hb and lsm6ds0 to dts

Introduce yaml binding files for sensors LPS25HB and LSM6DS0.
Fix description issue in lps22hb yaml file

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2018-02-02 11:28:48 +01:00 committed by Kumar Gala
commit 2ede6c67ff
5 changed files with 52 additions and 1 deletions

View file

@ -13,6 +13,8 @@ menuconfig LPS25HB
Enable driver for LPS25HB I2C-based pressure and temperature
sensor.
if !HAS_DTS_I2C_DEVICE
config LPS25HB_DEV_NAME
string
prompt "Device name"
@ -40,6 +42,8 @@ config LPS25HB_I2C_MASTER_DEV_NAME
Specify the device name of the I2C master device to which
LPS25HB is connected.
endif
menu "Attributes"
depends on LPS25HB

View file

@ -15,6 +15,8 @@ menuconfig LSM6DS0
Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope
sensor.
if !HAS_DTS_I2C_DEVICE
config LSM6DS0_DEV_NAME
string "LSM6DS0 device name"
depends on LSM6DS0
@ -38,6 +40,8 @@ config LSM6DS0_I2C_MASTER_DEV_NAME
Specify the device name of the I2C master device to which LSM6DS0 is
connected.
endif
config LSM6DS0_ACCEL_ENABLE_X_AXIS
bool "Enable accelerometer X axis"
depends on LSM6DS0

View file

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

View file

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

View file

@ -5,7 +5,7 @@
#
---
title: STMicroelectronics MEMS sensors LSM6DSL
id: st,lps22hb-press
id: st,lsm6dsl
version: 0.1
description: >