Skip to content

Commit 4661440

Browse files
committed
icm42688: RTIO device for streaming
An experimental idea to enable streaming fifo data from the sensor using RTIO with the existing sensor API. A sensor reader could easily be built on top of the buffer to produce meaningful values. There are many ways this can be built currently. Using either the existing trigger work context (system workqueue or own thread) when SPI_RTIO=n or using a sequence. With or without SPI_SAM_DMA (where only polling SPI transfers are used). This is a really nice setup to explore and experiment with RTIO, SPI, and a really fast sensor. Signed-off-by: Tom Burdick <[email protected]>
1 parent 208c3f6 commit 4661440

File tree

3 files changed

+532
-34
lines changed

3 files changed

+532
-34
lines changed

drivers/sensor/icm42688/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# SPDX-License-Identifier: Apache-2.0
66

7+
DT_COMPAT_ICM42688 := invensense,icm42688
8+
79
config ICM42688
810
bool "ICM42688 Six-Axis Motion Tracking Device"
911
default y
@@ -58,4 +60,10 @@ config ICM42688_THREAD_STACK_SIZE
5860
help
5961
The thread stack size.
6062

63+
config ICM42688_RTIO
64+
bool "ICM42688 RTIO Support"
65+
depends on RTIO
66+
help
67+
Enable RTIO support for ICM42688 allowing for scatter gather like requests against the fifo.
68+
6169
endif # ICM42688

0 commit comments

Comments
 (0)