Skip to content

Commit c7d0877

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 and set 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 6413185 commit c7d0877

File tree

7 files changed

+1140
-0
lines changed

7 files changed

+1140
-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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()
4+
5+
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_HDC3020_ENABLED || DT_HAS_TI_HDC3021_ENABLED || \
10+
DT_HAS_TI_HDC3022_ENABLED
11+
select I2C
12+
help
13+
Enable driver for TI HDC302X temperature and humidity sensors
14+
(e.g. HDC3020, HDC3021, HDC3022).

0 commit comments

Comments
 (0)