Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tdk invensense icp201xx pressure sensor support #83914

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/sensor/tdk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ add_subdirectory_ifdef(CONFIG_ICM42605 icm42605)
add_subdirectory_ifdef(CONFIG_ICM42688 icm42688)
add_subdirectory_ifdef(CONFIG_ICM42X70 icm42x70)
add_subdirectory_ifdef(CONFIG_ICP101XX icp101xx)
add_subdirectory_ifdef(CONFIG_ICP201XX icp201xx)
add_subdirectory_ifdef(CONFIG_MPU6050 mpu6050)
add_subdirectory_ifdef(CONFIG_MPU9250 mpu9250)
# zephyr-keep-sorted-stop
1 change: 1 addition & 0 deletions drivers/sensor/tdk/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ source "drivers/sensor/tdk/icm42605/Kconfig"
source "drivers/sensor/tdk/icm42688/Kconfig"
source "drivers/sensor/tdk/icm42x70/Kconfig"
source "drivers/sensor/tdk/icp101xx/Kconfig"
source "drivers/sensor/tdk/icp201xx/Kconfig"
source "drivers/sensor/tdk/mpu6050/Kconfig"
source "drivers/sensor/tdk/mpu9250/Kconfig"
# zephyr-keep-sorted-stop
10 changes: 10 additions & 0 deletions drivers/sensor/tdk/icp201xx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(icp201xx_drv.c)
zephyr_library_sources_ifdef(CONFIG_SPI icp201xx_spi.c)
zephyr_library_sources_ifdef(CONFIG_I2C icp201xx_i2c.c)

zephyr_library_sources_ifdef(CONFIG_ICP201XX_TRIGGER icp201xx_trigger.c)
zephyr_library_include_directories(.)
25 changes: 25 additions & 0 deletions drivers/sensor/tdk/icp201xx/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ICP201xx High Accuracy, Low Power, Barometric Pressure and Temperature Sensor IC
#
# Copyright (c) 2025 TDK Invensense
#
# SPDX-License-Identifier: Apache-2.0

menuconfig ICP201XX
bool "ICP201xx Barometric Pressure and Temperature Sensor"
default y
depends on DT_HAS_INVENSENSE_ICP201XX_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_INVENSENSE_ICP201XX),i2c)
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_INVENSENSE_ICP201XX),spi)
select USE_EMD_ICP201XX
select FPU if CPU_HAS_FPU
help
Enable driver for ICP101xx Barometric Pressure and Temperature Sensor.

if ICP201XX

module = ICP201XX
thread_priority = 10
thread_stack_size = 1024
source "drivers/sensor/Kconfig.trigger_template"

endif # ICP201XX
Loading
Loading