summaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity/Kconfig
diff options
context:
space:
mode:
authorAndreas Klinger <ak@it-klinger.de>2017-01-31 19:03:45 +0100
committerJonathan Cameron <jic23@kernel.org>2017-02-04 13:19:20 +0100
commitfeda2840040fcf87d826b0aec945a98222e656ba (patch)
treef595e7b7a67b53e1c69516ad8594540263f219e4 /drivers/iio/proximity/Kconfig
parentiio: distance: add dt binding for devantech-srf04 (diff)
downloadlinux-feda2840040fcf87d826b0aec945a98222e656ba.tar.xz
linux-feda2840040fcf87d826b0aec945a98222e656ba.zip
iio: distance: add devantech us ranger srf04
This patch adds support for the ultrasonic ranger srf04 of devantech. This device is measuring the distance of objects in a range between 1 cm and 3 meters and a theoretical resolution of 3 mm. There are two GPIOs used: - trigger: set as output to the device when the measurement should start - echo: set by the device when the ultrasonic wave is sent out and reset when the echo is recognized; this needs to be an interrupt input The time between setting and resetting the echo pin is the time the waveform needed for one round trip. This time is recorded in the interrupt handler. The distance is calculated in the read function by using the ultrasonic speed at 20 degrees celsius which is about 343 m/s. Signed-off-by: Andreas Klinger <ak@it-klinger.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/proximity/Kconfig')
-rw-r--r--drivers/iio/proximity/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig
index ab96cb7a0054..5b81a8c9d438 100644
--- a/drivers/iio/proximity/Kconfig
+++ b/drivers/iio/proximity/Kconfig
@@ -32,6 +32,17 @@ config LIDAR_LITE_V2
To compile this driver as a module, choose M here: the
module will be called pulsedlight-lite-v2
+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