Skip to content

Commit 6c5c3a5

Browse files
aviscontikartben
authored andcommitted
samples/sensor: stream_fifo: add sensortile_box_pro board
Add sensortile_box_pro board overlay and config files. This is good to verify lsm6dsv16x RTIO streaming over SPI bus. Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 parent 9285344 commit 6c5c3a5

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_RTIO=y
5+
CONFIG_LSM6DSV16X_STREAM=y
6+
CONFIG_LSM6DSV16X_ENABLE_TEMP=y
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
7+
8+
9+
/*
10+
* This devicetree overlay file will be automatically picked by the Zephyr
11+
* build system when building the sample for the sensortile_box_pro board.
12+
*/
13+
14+
/ {
15+
aliases {
16+
stream0 = &lsm6dsv16x_0;
17+
};
18+
};
19+
20+
&spi2 {
21+
lsm6dsv16x_0: lsm6dsv16x@0 {
22+
compatible = "st,lsm6dsv16x";
23+
24+
accel-odr = <LSM6DSV16X_DT_ODR_AT_480Hz>;
25+
accel-range = <LSM6DSV16X_DT_FS_16G>;
26+
gyro-odr = <LSM6DSV16X_DT_ODR_AT_480Hz>;
27+
gyro-range = <LSM6DSV16X_DT_FS_500DPS>;
28+
fifo-watermark = <64>;
29+
accel-fifo-batch-rate = <LSM6DSV16X_DT_XL_BATCHED_AT_15Hz>;
30+
gyro-fifo-batch-rate = <LSM6DSV16X_DT_GY_BATCHED_AT_15Hz>;
31+
temp-fifo-batch-rate = <LSM6DSV16X_DT_TEMP_BATCHED_AT_15Hz>;
32+
33+
sflp-odr = <LSM6DSV16X_DT_SFLP_ODR_AT_15Hz>;
34+
sflp-fifo-enable = <LSM6DSV16X_DT_SFLP_FIFO_GAME_ROTATION_GRAVITY_GBIAS>;
35+
};
36+
};

0 commit comments

Comments
 (0)