Skip to content

Commit

Permalink
iio:proximity:sx9360: Add sx9360 support
Browse files Browse the repository at this point in the history
A simplified version of SX9324, it only have one pin and
2 phases (aka channels).
Only one event is presented.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20220101203800.290387-2-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Gwendal Grignou authored and Jonathan Cameron committed Jan 23, 2022
1 parent a8ee3b3 commit 1cdb4c4
Show file tree
Hide file tree
Showing 3 changed files with 824 additions and 0 deletions.
14 changes: 14 additions & 0 deletions drivers/iio/proximity/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@ config SX9324
To compile this driver as a module, choose M here: the
module will be called sx9324.

config SX9360
tristate "SX9360 Semtech proximity sensor"
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select REGMAP_I2C
select SX_COMMON
depends on I2C
help
Say Y here to build a driver for Semtech's SX9360
proximity/button sensor, a simplified SX9324.

To compile this driver as a module, choose M here: the
module will be called sx9360.

config SX9500
tristate "SX9500 Semtech proximity sensor"
select IIO_BUFFER
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/proximity/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ obj-$(CONFIG_SRF04) += srf04.o
obj-$(CONFIG_SRF08) += srf08.o
obj-$(CONFIG_SX9310) += sx9310.o
obj-$(CONFIG_SX9324) += sx9324.o
obj-$(CONFIG_SX9360) += sx9360.o
obj-$(CONFIG_SX_COMMON) += sx_common.o
obj-$(CONFIG_SX9500) += sx9500.o
obj-$(CONFIG_VCNL3020) += vcnl3020.o
Expand Down
Loading

0 comments on commit 1cdb4c4

Please sign in to comment.