[][kernel][common][i2c][add zts8032 sensor support]
[Description]
Add zts8032 i2c sensor support for mediatek mt7988 SoC
[Release-log]
N/A
Change-Id: Ie6e75637898ff8f84bf216b7de1976c2cff4097e
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8099406
diff --git a/target/linux/mediatek/patches-5.4/999-2531-iio-add-zts8032-config.patch b/target/linux/mediatek/patches-5.4/999-2531-iio-add-zts8032-config.patch
new file mode 100644
index 0000000..f3cb997
--- /dev/null
+++ b/target/linux/mediatek/patches-5.4/999-2531-iio-add-zts8032-config.patch
@@ -0,0 +1,43 @@
+From 5b5c99a5cc6b6e2ec0fd3a5477a0e96868d09cd3 Mon Sep 17 00:00:00 2001
+From: Sam Shih <sam.shih@mediatek.com>
+Date: Wed, 11 Oct 2023 13:51:14 +0800
+Subject: [PATCH] add config
+
+---
+ drivers/iio/pressure/Kconfig | 7 +++++++
+ drivers/iio/pressure/Makefile | 1 +
+ 2 files changed, 8 insertions(+)
+
+diff --git a/drivers/iio/pressure/Kconfig b/drivers/iio/pressure/Kconfig
+index ba420e4..83bf432 100644
+--- a/drivers/iio/pressure/Kconfig
++++ b/drivers/iio/pressure/Kconfig
+@@ -64,6 +64,13 @@ config DPS310
+ This driver can also be built as a module. If so, the module will be
+ called dps310.
+
++config ZTS8032
++ tristate "Zilltek ZTS8032 barometric pressure sensor"
++ depends on I2C
++ select REGMAP_I2C
++ help
++ Support for the Zilltek ZTS8032 barometric pressure sensor.
++
+ config HID_SENSOR_PRESS
+ depends on HID_SENSOR_HUB
+ select IIO_BUFFER
+diff --git a/drivers/iio/pressure/Makefile b/drivers/iio/pressure/Makefile
+index d8f5ace..2433aad 100644
+--- a/drivers/iio/pressure/Makefile
++++ b/drivers/iio/pressure/Makefile
+@@ -10,6 +10,7 @@ bmp280-objs := bmp280-core.o bmp280-regmap.o
+ obj-$(CONFIG_BMP280_I2C) += bmp280-i2c.o
+ obj-$(CONFIG_BMP280_SPI) += bmp280-spi.o
+ obj-$(CONFIG_DPS310) += dps310.o
++obj-$(CONFIG_ZTS8032) += zts8032.o
+ obj-$(CONFIG_IIO_CROS_EC_BARO) += cros_ec_baro.o
+ obj-$(CONFIG_HID_SENSOR_PRESS) += hid-sensor-press.o
+ obj-$(CONFIG_HP03) += hp03.o
+--
+2.18.0
+