From 443b7c7f1e559d711f351ca28d4384a7d590f91f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Tue, 2 Feb 2021 23:24:53 +0100 Subject: [PATCH] kernel: iio: add kernel module for Sensirion SCD30 I2C MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add support for the Sensirion SCD30 carbon dioxide sensor with onboard SHT31 for temperature and relative humidity measurements. Sensor is connected to I2C bus. Signed-off-by: Petr Å tetiar --- package/kernel/linux/modules/iio.mk | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk index a4b2ee93e9..a91a280f28 100644 --- a/package/kernel/linux/modules/iio.mk +++ b/package/kernel/linux/modules/iio.mk @@ -427,6 +427,58 @@ endef $(eval $(call KernelPackage,iio-lsm6dsx-spi)) +define KernelPackage/iio-scd30-core + SUBMENU:=$(IIO_MENU) + DEPENDS:=+kmod-iio-core +kmod-industrialio-triggered-buffer + TITLE:=Sensirion SCD30 carbon dioxide sensor core driver + KCONFIG:=CONFIG_SCD30_CORE + FILES:=$(LINUX_DIR)/drivers/iio/chemical/scd30_core.ko +endef + +define KernelPackage/iio-scd30-core/description + Support for the Sensirion SCD30 carbon dioxide sensor with onboard SHT31 for + temperature and relative humidity measurements. +endef + +$(eval $(call KernelPackage,iio-scd30-core)) + + +define KernelPackage/iio-scd30-i2c + SUBMENU:=$(IIO_MENU) + DEPENDS:=+kmod-iio-core +kmod-i2c-core +kmod-industrialio-triggered-buffer \ + +kmod-iio-scd30-core +kmod-lib-crc8 + TITLE:=Sensirion SCD30 I2C interface driver + KCONFIG:=CONFIG_SCD30_I2C + FILES:=$(LINUX_DIR)/drivers/iio/chemical/scd30_i2c.ko + AUTOLOAD:=$(call AutoProbe,scd30_i2c) +endef + +define KernelPackage/iio-scd30-i2c/description + Support for the Sensirion SCD30 carbon dioxide sensor with onboard SHT31 for + temperature and relative humidity measurements. Sensor is connected to I2C bus. +endef + +$(eval $(call KernelPackage,iio-scd30-i2c)) + + +define KernelPackage/iio-scd30-serial + SUBMENU:=$(IIO_MENU) + DEPENDS:=+kmod-iio-core +kmod-industrialio-triggered-buffer \ + +kmod-iio-scd30-core +kmod-serdev +kmod-lib-crc16 + TITLE:=Sensirion SCD30 serial interface driver + KCONFIG:=CONFIG_SCD30_SERIAL + FILES:=$(LINUX_DIR)/drivers/iio/chemical/scd30_serial.ko + AUTOLOAD:=$(call AutoProbe,scd30_serial) +endef + +define KernelPackage/iio-scd30-serial/description + Support for the Sensirion SCD30 carbon dioxide sensor with onboard SHT31 for + temperature and relative humidity measurements. Sensor is connected to serial bus. +endef + +$(eval $(call KernelPackage,iio-scd30-serial)) + + define KernelPackage/iio-sps30 SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer +kmod-lib-crc8 -- 2.30.2