summaryrefslogtreecommitdiff
path: root/drivers/iio/chemical/Kconfig
diff options
context:
space:
mode:
authorTomasz Duszynski <tomasz.duszynski@octakon.com>2021-05-03 08:00:13 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-05-17 13:49:10 +0100
commitb2e171f5a5c6003bd2e9a8f7dfd8acf714af429b (patch)
tree3a55fb7abd0a3e6b664ce503186271fc984afb9b /drivers/iio/chemical/Kconfig
parent8f3f130852785dac0759843835ca97c3bacc2b10 (diff)
iio: sps30: add support for serial interface
Sensor has support for both i2c and serial communication interfaces. Both offer very similar set of features. Minor differences don't impact overall functionality like doing measurements, etc. Support for i2c have already been added, this patch adds support for the latter ie. serial interface. Signed-off-by: Tomasz Duszynski <tomasz.duszynski@octakon.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/chemical/Kconfig')
-rw-r--r--drivers/iio/chemical/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/chemical/Kconfig b/drivers/iio/chemical/Kconfig
index 2b45a76ab7bc..a4920646e9be 100644
--- a/drivers/iio/chemical/Kconfig
+++ b/drivers/iio/chemical/Kconfig
@@ -148,6 +148,17 @@ config SPS30_I2C
To compile this driver as a module, choose M here: the module will
be called sps30_i2c.
+config SPS30_SERIAL
+ tristate "SPS30 particulate matter sensor serial driver"
+ depends on SERIAL_DEV_BUS
+ select SPS30
+ help
+ Say Y here to build support for the Sensirion SPS30 serial interface
+ driver.
+
+ To compile this driver as a module, choose M here: the module will
+ be called sps30_serial.
+
config VZ89X
tristate "SGX Sensortech MiCS VZ89X VOC sensor"
depends on I2C