]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: iio: Add dps310.ko I2C driver 20101/head
authorElwin Huang <s09289728096@gmail.com>
Sat, 20 Sep 2025 08:09:54 +0000 (08:09 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Sep 2025 12:45:19 +0000 (14:45 +0200)
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>
package/kernel/linux/modules/iio.mk

index a8327f54d0d834af21cfe3e4e209a684aaf83936..a55dd5480537d6ccad10de8786f059cb8344adec 100644 (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