Skip to content

Commit 4dceb0b

Browse files
bperseghettijgoppert
authored andcommitted
samples: sensor: sensor_shell: add vmu_rt1170.
Adds support for testing sensor shell streaming on the vmu_rt1170 with RTIO. Co-Authored-by: James Goppert <[email protected]> Signed-off-by: Benjamin Perseghetti <[email protected]>
1 parent deeb8f8 commit 4dceb0b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright 2025 CogniPilot Foundation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_DEBUG=y
5+
CONFIG_SENSOR_SHELL_STREAM=y
6+
CONFIG_SENSOR_LOG_LEVEL_DBG=n
7+
CONFIG_RTIO_SUBMIT_SEM=y
8+
CONFIG_SPI_RTIO=y
9+
CONFIG_SPI_ASYNC=y
10+
CONFIG_SYS_CLOCK_TICKS_PER_SEC=10000
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* Copyright 2025 CogniPilot Foundation */
2+
/* SPDX-License-Identifier: Apache-2.0 */
3+
4+
&lpspi1 {
5+
/delete-node/ icm42688p0@0;
6+
/delete-property/ dmas;
7+
/delete-property/ dma-names;
8+
};
9+
10+
&lpspi2 {
11+
status = "okay";
12+
cs-gpios =<&gpio3 24 GPIO_ACTIVE_LOW>;
13+
14+
icm42688_1: icm42688p1@0 {
15+
compatible = "invensense,icm42688";
16+
reg = <0>;
17+
int-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
18+
spi-max-frequency = <24000000>;
19+
accel-pwr-mode = <ICM42688_DT_ACCEL_LN>;
20+
accel-odr = <ICM42688_DT_ACCEL_ODR_1000>;
21+
accel-fs = <ICM42688_DT_ACCEL_FS_16>;
22+
gyro-pwr-mode = <ICM42688_DT_GYRO_LN>;
23+
gyro-odr = <ICM42688_DT_GYRO_ODR_1000>;
24+
gyro-fs = <ICM42688_DT_GYRO_FS_2000>;
25+
};
26+
};

0 commit comments

Comments
 (0)