Skip to content

Commit 72ad02b

Browse files
djcampelloJonathan Cameron
authored andcommitted
iio: Add SEMTECH SX9310/9311 sensor driver
Add SEMTECH SX9310/9311 driver. The device has the following entry points: Usual frequency: - sampling_frequency - sampling_frequency_available Instant reading of current values for different sensors: - in_proximity0_raw - in_proximity1_raw - in_proximity2_raw - in_proximity3_comb_raw and associated events in events/ Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Enrico Granata <egranata@chromium.org> Signed-off-by: Daniel Campello <campello@chromium.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 4bb2b8f commit 72ad02b

4 files changed

Lines changed: 1093 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity3_comb_raw
2+
Date: February 2019
3+
KernelVersion: 5.6
4+
Contact: Daniel Campello <campello@chromium.org>
5+
Description:
6+
Proximity measurement indicating that some object is
7+
near the combined sensor. The combined sensor presents
8+
proximity measurements constructed by hardware by
9+
combining measurements taken from a given set of
10+
physical sensors.

‎drivers/iio/proximity/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ config SRF04
101101
To compile this driver as a module, choose M here: the
102102
module will be called srf04.
103103

104+
config SX9310
105+
tristate "SX9310/SX9311 Semtech proximity sensor"
106+
select IIO_BUFFER
107+
select IIO_TRIGGERED_BUFFER
108+
select REGMAP_I2C
109+
depends on I2C
110+
help
111+
Say Y here to build a driver for Semtech's SX9310/SX9311 capacitive
112+
proximity/button sensor.
113+
114+
To compile this driver as a module, choose M here: the
115+
module will be called sx9310.
116+
104117
config SX9500
105118
tristate "SX9500 Semtech proximity sensor"
106119
select IIO_BUFFER

‎drivers/iio/proximity/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_PING) += ping.o
1212
obj-$(CONFIG_RFD77402) += rfd77402.o
1313
obj-$(CONFIG_SRF04) += srf04.o
1414
obj-$(CONFIG_SRF08) += srf08.o
15+
obj-$(CONFIG_SX9310) += sx9310.o
1516
obj-$(CONFIG_SX9500) += sx9500.o
1617
obj-$(CONFIG_VL53L0X_I2C) += vl53l0x-i2c.o
1718

0 commit comments

Comments
 (0)