Skip to content

Commit df4e1cf

Browse files
committed
drivers/sensor/st: add support to IIS3DWB accel
The IIS3DWB is a system-in-package featuring a 3-axis digital vibration sensor with low noise over an ultrawide and flat frequency range. The wide bandwidth, low noise, very stable and repeatable sensitivity, together with the capability of operating over an extended temperature range (up to +105 C), make the device particularly suitable for vibration monitoring in industrial applications. Datasheet: https://www.st.com/en/mems-and-sensors/iis3dwb.html This driver is currently only supporting the polling-mode read_and_decode APIs (both blocking and non-blocking). This driver is based on stmemsc HAL i/f v2.9.1. Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 parent 6e34acc commit df4e1cf

File tree

13 files changed

+953
-1
lines changed

13 files changed

+953
-1
lines changed

drivers/sensor/st/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ add_subdirectory_ifdef(CONFIG_IIS2ICLX iis2iclx)
1111
add_subdirectory_ifdef(CONFIG_IIS2MDC iis2mdc)
1212
add_subdirectory_ifdef(CONFIG_IIS328DQ iis328dq)
1313
add_subdirectory_ifdef(CONFIG_IIS3DHHC iis3dhhc)
14+
add_subdirectory_ifdef(CONFIG_IIS3DWB iis3dwb)
1415
add_subdirectory_ifdef(CONFIG_ISM330DHCX ism330dhcx)
1516
add_subdirectory_ifdef(CONFIG_LIS2DE12 lis2de12)
1617
add_subdirectory_ifdef(CONFIG_LIS2DH lis2dh)

drivers/sensor/st/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ source "drivers/sensor/st/iis2iclx/Kconfig"
1010
source "drivers/sensor/st/iis2mdc/Kconfig"
1111
source "drivers/sensor/st/iis328dq/Kconfig"
1212
source "drivers/sensor/st/iis3dhhc/Kconfig"
13+
source "drivers/sensor/st/iis3dwb/Kconfig"
1314
source "drivers/sensor/st/ism330dhcx/Kconfig"
1415
source "drivers/sensor/st/lis2de12/Kconfig"
1516
source "drivers/sensor/st/lis2dh/Kconfig"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ST Microelectronics IIS3DWB accelerometer sensor
2+
#
3+
# Copyright (c) 2025 STMicroelectronics
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
zephyr_library()
8+
9+
zephyr_library_sources(iis3dwb.c)
10+
zephyr_library_sources_ifdef(CONFIG_SENSOR_ASYNC_API iis3dwb_decoder.c)
11+
12+
zephyr_library_include_directories(../stmemsc)

drivers/sensor/st/iis3dwb/Kconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ST Microelectronics IIS3DWB accelerometer sensor
2+
3+
# Copyright (c) 2025 STMicroelectronics
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
menuconfig IIS3DWB
7+
bool "IIS3DWB accelerometer sensor"
8+
default y
9+
depends on DT_HAS_ST_IIS3DWB_ENABLED
10+
depends on ZEPHYR_HAL_ST_MODULE
11+
select SPI
12+
select HAS_STMEMSC
13+
select USE_STDC_IIS3DWB
14+
help
15+
Enable driver for IIS3DWB SPI-based accelerometer sensor.
16+
17+
if IIS3DWB
18+
19+
config IIS3DWB_ENABLE_TEMP
20+
bool "Temperature"
21+
help
22+
Enable/disable temperature sensor
23+
24+
25+
endif # IIS3DWB

0 commit comments

Comments
 (0)