mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
6eb17c6c8a
This driver was originally written by ST in 2016 as a misc input device driver, and hasn't been maintained for a long time. I grabbed some code from it's API and reformed it into an iio proximity device driver. This version of driver uses i2c bus to talk to the sensor and polling for measuring completes, so no irq line is needed. It can be tested with reading from /sys/bus/iio/devices/iio:deviceX/in_distance_input Signed-off-by: Song Qiang <songqiang1304521@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
107 lines
2.8 KiB
Plaintext
107 lines
2.8 KiB
Plaintext
#
|
|
# Proximity sensors
|
|
#
|
|
|
|
menu "Lightning sensors"
|
|
|
|
config AS3935
|
|
tristate "AS3935 Franklin lightning sensor"
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
depends on SPI
|
|
help
|
|
Say Y here to build SPI interface support for the Austrian
|
|
Microsystems AS3935 lightning detection sensor.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called as3935
|
|
|
|
endmenu
|
|
|
|
menu "Proximity and distance sensors"
|
|
|
|
config ISL29501
|
|
tristate "Intersil ISL29501 Time Of Flight sensor"
|
|
depends on I2C
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
select IIO_KFIFO_BUF
|
|
help
|
|
Say Y here if you want to build a driver for the Intersil ISL29501
|
|
Time of Flight sensor.
|
|
|
|
To compile this driver as a module, choose M here: the module will be
|
|
called isl29501.
|
|
|
|
config LIDAR_LITE_V2
|
|
tristate "PulsedLight LIDAR sensor"
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
depends on I2C
|
|
help
|
|
Say Y to build a driver for PulsedLight LIDAR range finding
|
|
sensor.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called pulsedlight-lite-v2
|
|
|
|
config RFD77402
|
|
tristate "RFD77402 ToF sensor"
|
|
depends on I2C
|
|
help
|
|
Say Y to build a driver for the RFD77420 Time-of-Flight (distance)
|
|
sensor module with I2C interface.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called rfd77402.
|
|
|
|
config SRF04
|
|
tristate "Devantech SRF04 ultrasonic ranger sensor"
|
|
depends on GPIOLIB
|
|
help
|
|
Say Y here to build a driver for Devantech SRF04 ultrasonic
|
|
ranger sensor. This driver can be used to measure the distance
|
|
of objects. It is using two GPIOs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called srf04.
|
|
|
|
config SX9500
|
|
tristate "SX9500 Semtech proximity sensor"
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
select REGMAP_I2C
|
|
depends on I2C
|
|
help
|
|
Say Y here to build a driver for Semtech's SX9500 capacitive
|
|
proximity/button sensor.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called sx9500.
|
|
|
|
config SRF08
|
|
tristate "Devantech SRF02/SRF08/SRF10 ultrasonic ranger sensor"
|
|
select IIO_BUFFER
|
|
select IIO_TRIGGERED_BUFFER
|
|
depends on I2C
|
|
help
|
|
Say Y here to build a driver for Devantech SRF02/SRF08/SRF10
|
|
ultrasonic ranger sensors with i2c interface.
|
|
This driver can be used to measure the distance of objects.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called srf08.
|
|
|
|
config VL53L0X_I2C
|
|
tristate "STMicroelectronics VL53L0X ToF ranger sensor (I2C)"
|
|
depends on I2C
|
|
help
|
|
Say Y here to build a driver for STMicroelectronics VL53L0X
|
|
ToF ranger sensors with i2c interface.
|
|
This driver can be used to measure the distance of objects.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called vl53l0x-i2c.
|
|
|
|
endmenu
|