[source] kernel: add kmod-iio-bmp280

LEDE Commits lede-commits at lists.infradead.org
Mon Oct 23 07:24:06 PDT 2017


stintel pushed a commit to source.git, branch master:
https://git.lede-project.org/683350873e18f592124cb2cce771d5459d27b2bd

commit 683350873e18f592124cb2cce771d5459d27b2bd
Author: Stijn Tintel <stijn at linux-ipv6.be>
AuthorDate: Wed Oct 18 20:17:56 2017 +0300

    kernel: add kmod-iio-bmp280
    
    This driver supports the Bosch Sensortec BMP180/BMP280 pressure and
    temperature sensors. It also supports the BME280 sensors with an
    additional humidity channel.
    
    Tested I2C and SPI modes with a BME280 sensor on a Raspberry Pi Zero W.
    
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 package/kernel/linux/modules/iio.mk | 48 +++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index 29ccd6a..396ee7f 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -70,3 +70,51 @@ define KernelPackage/iio-dht11/description
 endef
 
 $(eval $(call KernelPackage,iio-dht11))
+
+define KernelPackage/iio-bmp280
+  SUBMENU:=$(IIO_MENU)
+  TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor
+  DEPENDS:=@LINUX_4_9 +kmod-iio-core +kmod-regmap
+  KCONFIG:=CONFIG_BMP280
+  FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280.ko
+endef
+
+define KernelPackage/iio-bmp280/description
+ This driver adds support for Bosch Sensortec BMP180 and BMP280 pressure and
+ temperature sensors. Also supports the BME280 with an additional humidity
+ sensor channel.
+endef
+
+$(eval $(call KernelPackage,iio-bmp280))
+
+
+define KernelPackage/iio-bmp280-i2c
+  SUBMENU:=$(IIO_MENU)
+  TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (I2C)
+  DEPENDS:=+kmod-iio-bmp280 +kmod-i2c-core
+  KCONFIG:=CONFIG_BMP280_I2C
+  FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-i2c.ko
+  AUTOLOAD:=$(call AutoProbe,iio-bmp280-i2c)
+endef
+define KernelPackage/iio-bmp280-i2c/description
+ This driver adds support for Bosch Sensortec's digital pressure and
+ temperature sensor connected via I2C.
+endef
+
+$(eval $(call KernelPackage,iio-bmp280-i2c))
+
+
+define KernelPackage/iio-bmp280-spi
+  SUBMENU:=$(IIO_MENU)
+  TITLE:=BMP180/BMP280/BME280 pressure/temperatur sensor (SPI)
+  DEPENDS:=+kmod-iio-bmp280 +kmod-spi-bitbang
+  KCONFIG:=CONFIG_BMP280_SPI
+  FILES:=$(LINUX_DIR)/drivers/iio/pressure/bmp280-spi.ko
+  AUTOLOAD:=$(call AutoProbe,iio-bmp280-spi)
+endef
+define KernelPackage/iio-bmp280-spi/description
+ This driver adds support for Bosch Sensortec's digital pressure and
+ temperature sensor connected via SPI.
+endef
+
+$(eval $(call KernelPackage,iio-bmp280-spi))



More information about the lede-commits mailing list