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

View file

@ -15,6 +15,8 @@ menuconfig LSM6DS0
Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope
sensor. sensor.
if !HAS_DTS_I2C_DEVICE
config LSM6DS0_DEV_NAME config LSM6DS0_DEV_NAME
string "LSM6DS0 device name" string "LSM6DS0 device name"
depends on LSM6DS0 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 Specify the device name of the I2C master device to which LSM6DS0 is
connected. connected.
endif
config LSM6DS0_ACCEL_ENABLE_X_AXIS config LSM6DS0_ACCEL_ENABLE_X_AXIS
bool "Enable accelerometer X axis" bool "Enable accelerometer X axis"
depends on LSM6DS0 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 title: STMicroelectronics MEMS sensors LSM6DSL
id: st,lps22hb-press id: st,lsm6dsl
version: 0.1 version: 0.1
description: > description: >