2017-07-19 22:59:43 +08:00
|
|
|
# Kconfig - VL53L0X time of flight sensor configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 STMicroelectronics
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig VL53L0X
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "VL53L0X time of flight sensor"
|
2018-09-17 08:23:36 +08:00
|
|
|
depends on I2C && HAS_DTS_I2C
|
2017-07-19 22:59:43 +08:00
|
|
|
select HAS_STLIB
|
|
|
|
help
|
|
|
|
Enable driver for VL53L0X I2C-based time of flight sensor.
|
|
|
|
|
2018-09-13 06:23:26 +08:00
|
|
|
if VL53L0X
|
|
|
|
|
2018-05-07 17:34:18 +08:00
|
|
|
config VL53L0X_XSHUT_CONTROL_ENABLE
|
|
|
|
bool "Enable XSHUT pin control"
|
|
|
|
help
|
|
|
|
Enable it if XSHUT pin is controlled by host.
|
|
|
|
|
2017-07-19 22:59:43 +08:00
|
|
|
config VL53L0X_XSHUT_GPIO_DEV_NAME
|
2018-08-14 22:19:20 +08:00
|
|
|
string "GPIO device"
|
2017-07-19 22:59:43 +08:00
|
|
|
default "GPIO_6"
|
2018-05-07 17:34:18 +08:00
|
|
|
depends on VL53L0X_XSHUT_CONTROL_ENABLE
|
2017-07-19 22:59:43 +08:00
|
|
|
help
|
|
|
|
The device name of the GPIO device to which the VL53L0X xshut pin
|
|
|
|
is connected.
|
|
|
|
|
|
|
|
config VL53L0X_XSHUT_GPIO_PIN_NUM
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Interrupt GPIO pin number"
|
2017-07-19 22:59:43 +08:00
|
|
|
default 6
|
2018-05-07 17:34:18 +08:00
|
|
|
depends on VL53L0X_XSHUT_CONTROL_ENABLE
|
2017-07-19 22:59:43 +08:00
|
|
|
help
|
|
|
|
The number of the GPIO on which the xshut signal from the VL53L0X
|
|
|
|
is connected.
|
|
|
|
|
|
|
|
config VL53L0X_PROXIMITY_THRESHOLD
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Proximity threshold in millimeters"
|
2017-07-19 22:59:43 +08:00
|
|
|
default 100
|
|
|
|
help
|
|
|
|
Threshold used for proximity detection when sensor is used with SENSOR_CHAN_PROX.
|
2018-09-13 06:23:26 +08:00
|
|
|
|
|
|
|
endif # VL53L0X
|