mirror of
https://github.com/Heleguo/lede.git
synced 2025-12-18 03:41:30 +00:00
kernel/iio: Add dps310 I2C driver
This commit add kernel module support for Infineon DPS310/DPS368/DPS422 digital barometric air pressure and temperature sensor. Test on custom board based on Mediatek MT7988a. Signed-off-by: Elwin Huang <s09289728096@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
d8e4a5ac16
commit
aef3288993
@ -317,6 +317,24 @@ endef
|
|||||||
|
|
||||||
$(eval $(call KernelPackage,iio-bmp280-spi))
|
$(eval $(call KernelPackage,iio-bmp280-spi))
|
||||||
|
|
||||||
|
|
||||||
|
define KernelPackage/iio-dps310
|
||||||
|
TITLE:=DPS310/DPS368/DPS422 pressure temperatur sensor
|
||||||
|
DEPENDS:=+kmod-regmap-i2c
|
||||||
|
KCONFIG:=CONFIG_DPS310
|
||||||
|
FILES:=$(LINUX_DIR)/drivers/iio/pressure/dps310.ko
|
||||||
|
AUTOLOAD:=$(call AutoProbe,dps310)
|
||||||
|
$(call AddDepends/iio)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/iio-dps310/description
|
||||||
|
Kernel module for Infineon DPS310/DPS368/DPS422 pressure and
|
||||||
|
temperature I2C sensor.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,iio-dps310))
|
||||||
|
|
||||||
|
|
||||||
define KernelPackage/iio-htu21
|
define KernelPackage/iio-htu21
|
||||||
DEPENDS:=+kmod-i2c-core
|
DEPENDS:=+kmod-i2c-core
|
||||||
TITLE:=HTU21 humidity & temperature sensor
|
TITLE:=HTU21 humidity & temperature sensor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user