aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHartmut Knaack <knaack.h@gmx.de>2018-09-11 01:33:37 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2018-09-22 21:20:55 +0200
commitd3a492c72f15ecf8debe56a3ee35eb213c9d9bcc (patch)
treed5285a8743425ddc79f6aa01d8ea414d0b00ce65 /package
parent265dcb05ea4e4ca7fd780f496f20b17327598338 (diff)
downloadupstream-d3a492c72f15ecf8debe56a3ee35eb213c9d9bcc.tar.gz
upstream-d3a492c72f15ecf8debe56a3ee35eb213c9d9bcc.tar.bz2
upstream-d3a492c72f15ecf8debe56a3ee35eb213c9d9bcc.zip
kernel: add Si7020 relative humidity/temperature sensor driver
Add support for the Silicon Labs Si7020 family of relative humidity and temperature sensors using the I2C bus. Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/iio.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index d0c2c365ca..b7eb048516 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -157,6 +157,24 @@ endef
$(eval $(call KernelPackage,iio-htu21))
+define KernelPackage/iio-si7020
+ SUBMENU:=$(IIO_MENU)
+ DEPENDS:=+kmod-i2c-core +kmod-iio-core
+ TITLE:=Silicon Labs Si7020 sensor
+ KCONFIG:= CONFIG_SI7020
+ FILES:=$(LINUX_DIR)/drivers/iio/humidity/si7020.ko
+ AUTOLOAD:=$(call AutoLoad,56,si7020)
+endef
+
+define KernelPackage/iio-si7020/description
+ Support for Silicon Labs Si7020 family of relative humidity and
+ temperature sensors connected via I2C. Following models are usable:
+ Si7013, Si7020, Si7021, Hoperf TH06.
+endef
+
+$(eval $(call KernelPackage,iio-si7020))
+
+
define KernelPackage/iio-tsl4531
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-i2c-core +kmod-iio-core