Skip to content

Conversation

anthony289478
Copy link
Contributor

@anthony289478 anthony289478 commented Sep 11, 2025

Add support for SPI transfers using RTIO and fix minor typo in DT yaml to match rm3100.h defs.

Copy link
Contributor

@teburd teburd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me with some minor feedback

LOG_ERR("Failed to trigger POLL");
rtio_iodev_sqe_err(iodev_sqe, err);
} else {
rm3100_stream_submit(dev, iodev_sqe);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we shouldn't be calling rm3100_stream_submit() unless it is indeed streaming (multi-shot events).

I suspect if the intend is to manually poll each sample to better control the ODR pace, then you don't expect to use the streaming-mode, yeah?

If that's the case, I suggest making them mutually exclusive and then handle the GPIO config-firing on a file separate from rm3100_stream.c

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats fine, the logic will be basically a direct copy paste of what is used in rm3100_stream.c which is why I chose to reuse the function.

Copy link
Member

@ubieda ubieda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW - The first two patches look good and straightforward to me: If you want to file a standalone PR to address the GPIO-driven one-shot reads, that's good with me as well.

@anthony289478
Copy link
Contributor Author

FWIW - The first two patches look good and straightforward to me: If you want to file a standalone PR to address the GPIO-driven one-shot reads, that's good with me as well.

Sure

@anthony289478 anthony289478 changed the title Add support for SPI transfers on RM3100 and one-shots using GPIO Add support for SPI transfers on RM3100 and fix DT yaml typo Sep 24, 2025
Add support for SPI

Signed-off-by: Anthony Williams <[email protected]>
Rename RM33100 to RM3100 in yaml comment to align
with rm3100.h defines.

Signed-off-by: Anthony Williams <[email protected]>
@anthony289478
Copy link
Contributor Author

one-shot is moved to #96522
For reference, the force rebase branch from 9e98103 to 47624ec was because github actions was giving weird errors. Last time this happened it was because I was too far out of date.

Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@kartben kartben merged commit bfa6f4a into zephyrproject-rtos:main Sep 30, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants