kernel: iio: Add dps310.ko 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>
Link: https://github.com/openwrt/openwrt/pull/20101
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Elwin Huang 2025-09-20 08:09:54 +00:00 committed by Hauke Mehrtens
parent 2f61f77fb0
commit c98b96bca0

View file

@ -333,6 +333,23 @@ endef
$(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
DEPENDS:=+kmod-i2c-core
TITLE:=HTU21 humidity & temperature sensor