2017-05-02 15:21:36 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Linaro Limited
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig LPS22HB
|
2018-08-14 16:19:20 +02:00
|
|
|
bool "LPS22HB pressure and temperature"
|
2017-09-21 20:28:16 +02:00
|
|
|
depends on I2C
|
2017-05-02 15:21:36 +02:00
|
|
|
help
|
|
|
|
Enable driver for LPS22HB I2C-based pressure and temperature
|
|
|
|
sensor.
|
|
|
|
|
2018-09-12 17:23:26 -05:00
|
|
|
if LPS22HB
|
|
|
|
|
2018-09-29 10:55:23 -05:00
|
|
|
if !HAS_DTS_I2C
|
2018-01-29 16:57:22 -06:00
|
|
|
|
2017-05-02 15:21:36 +02:00
|
|
|
config LPS22HB_DEV_NAME
|
2018-08-14 16:19:20 +02:00
|
|
|
string "Device name"
|
2017-05-02 15:21:36 +02:00
|
|
|
default "LPS22HB"
|
|
|
|
help
|
|
|
|
Device name used for LPS22HB sensor identification.
|
|
|
|
|
|
|
|
config LPS22HB_I2C_ADDR
|
2018-08-14 16:19:20 +02:00
|
|
|
hex "I2C address"
|
2017-05-02 15:21:36 +02:00
|
|
|
default 0x5D
|
|
|
|
range 0x5C 0x5D
|
|
|
|
help
|
|
|
|
I2C address of the LPS22HB sensor.
|
|
|
|
Use 0x5C if the SA0 pin is pulled to GND or 0x5D if the SA0
|
|
|
|
pin is pulled to VDD.
|
|
|
|
|
|
|
|
config LPS22HB_I2C_MASTER_DEV_NAME
|
2018-08-14 16:19:20 +02:00
|
|
|
string "I2C master where LPS22HB is connected"
|
2017-05-02 15:21:36 +02:00
|
|
|
default I2C_0_NAME
|
|
|
|
help
|
|
|
|
Specify the device name of the I2C master device to which
|
|
|
|
LPS22HB is connected.
|
|
|
|
|
2018-01-29 16:57:22 -06:00
|
|
|
endif
|
|
|
|
|
2017-05-02 15:21:36 +02:00
|
|
|
menu "Attributes"
|
|
|
|
|
|
|
|
config LPS22HB_SAMPLING_RATE
|
2018-08-14 16:19:20 +02:00
|
|
|
int "Output data rate"
|
2017-05-02 15:21:36 +02:00
|
|
|
default 25
|
|
|
|
help
|
|
|
|
Sensor output data rate expressed in samples per second.
|
|
|
|
Data rates supported by the chip are 1, 10, 25, 50, 75.
|
|
|
|
|
|
|
|
endmenu
|
2018-09-12 17:23:26 -05:00
|
|
|
|
|
|
|
endif # LPS22HB
|