mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 00:17:44 +00:00
064a74637c
This patch adds support to the Industrial IO subsystem for the Silicon Labs Si7013/20/21 Relative Humidity and Temperature Sensors. Website: http://www.silabs.com/products/sensors/humidity-sensors/Pages/si7013-20-21.aspx These are i2c devices which measure relative humidity and temperature and all use the same protocol. The Si7013 has an additional input with programmable linearization which is not supported because that's complicated and I didn't need it. Signed-off-by: David Barksdale <dbarksdale@uplogix.com> -- Changes since v1: * Renamed to si7020 and replaced Si701x/2x with Si7013/20/21. * Removed unneeded mutex. * Pre-computed floating-point constant expressions. * Removed address_list and I2C_CLASS_HWMON. Changes since v2: * Return correct raw sensor values. * Rename dev variable to indio_dev. * Issue a software reset command during probe. * Un-broke string literal. Changes since v3: * enum changed to #define Signed-off-by: Jonathan Cameron <jic23@kernel.org>
35 lines
955 B
Text
35 lines
955 B
Text
#
|
|
# humidity sensor drivers
|
|
#
|
|
menu "Humidity sensors"
|
|
|
|
config DHT11
|
|
tristate "DHT11 (and compatible sensors) driver"
|
|
depends on GPIOLIB
|
|
help
|
|
This driver supports reading data via a single interrupt
|
|
generating GPIO line. Currently tested are DHT11 and DHT22.
|
|
Other sensors should work as well as long as they speak the
|
|
same protocol.
|
|
|
|
config SI7005
|
|
tristate "SI7005 relative humidity and temperature sensor"
|
|
depends on I2C
|
|
help
|
|
Say yes here to build support for the Silabs Si7005 relative
|
|
humidity and temperature sensor.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called si7005.
|
|
|
|
config SI7020
|
|
tristate "Si7013/20/21 Relative Humidity and Temperature Sensors"
|
|
depends on I2C
|
|
help
|
|
Say yes here to build support for the Silicon Labs Si7013/20/21
|
|
Relative Humidity and Temperature Sensors.
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
will be called si7020.
|
|
|
|
endmenu
|