Skip to content

Commit 15c42ae

Browse files
drivers: sensor: ti: Add TI temp sensor HDC302x
The HDC302X sensor driver is added, you can use this driver to read temperature and humidity. Also set an offset, upper and lower limits to get warned when temperature or humidity get out of band. The sensor is build for ultra low power applications. Signed-off-by: COUSSEMENT Stijn <[email protected]>
1 parent 3d5e9cd commit 15c42ae

File tree

7 files changed

+1141
-0
lines changed

7 files changed

+1141
-0
lines changed

drivers/sensor/ti/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ add_subdirectory_ifdef(CONFIG_LM95234 lm95234)
1212
add_subdirectory_ifdef(CONFIG_OPT3001 opt3001)
1313
add_subdirectory_ifdef(CONFIG_TI_HDC ti_hdc)
1414
add_subdirectory_ifdef(CONFIG_TI_HDC20XX ti_hdc20xx)
15+
add_subdirectory_ifdef(CONFIG_TI_HDC302X ti_hdc302x)
1516
add_subdirectory_ifdef(CONFIG_TMAG5170 tmag5170)
1617
add_subdirectory_ifdef(CONFIG_TMAG5273 tmag5273)
1718
add_subdirectory_ifdef(CONFIG_TMP007 tmp007)

drivers/sensor/ti/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ source "drivers/sensor/ti/lm95234/Kconfig"
1212
source "drivers/sensor/ti/opt3001/Kconfig"
1313
source "drivers/sensor/ti/ti_hdc/Kconfig"
1414
source "drivers/sensor/ti/ti_hdc20xx/Kconfig"
15+
source "drivers/sensor/ti/ti_hdc302x/Kconfig"
1516
source "drivers/sensor/ti/tmag5170/Kconfig"
1617
source "drivers/sensor/ti/tmag5273/Kconfig"
1718
source "drivers/sensor/ti/tmp007/Kconfig"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 Psicontrol N.V.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
zephyr_library()
5+
6+
zephyr_library_sources(ti_hdc302x.c)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# TI_HDC302X temperature and humidity sensor configuration options
2+
3+
# Copyright (c) 2025 Psicontrol N.V.
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config TI_HDC302X
7+
bool "Texas Instruments HDC302X Temperature and Humidity Sensor"
8+
default y
9+
depends on DT_HAS_TI_HDC302X_ENABLED
10+
select I2C
11+
select CRC
12+
help
13+
Enable driver for TI HDC302X temperature and humidity sensors
14+
(e.g. HDC3020, HDC3021, HDC3022).

0 commit comments

Comments
 (0)