-
Notifications
You must be signed in to change notification settings - Fork 729
cherry-pick nRF TWIS driver and TWIM RTIO patches #2488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bjarki-andreasen
merged 10 commits into
nrfconnect:main
from
bjarki-andreasen:cherry-pick-nrf-twis
Feb 24, 2025
Merged
cherry-pick nRF TWIS driver and TWIM RTIO patches #2488
bjarki-andreasen
merged 10 commits into
nrfconnect:main
from
bjarki-andreasen:cherry-pick-nrf-twis
Feb 24, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b598a74 to
e06e150
Compare
e06e150 to
bf8dd6a
Compare
nordic-piks
approved these changes
Feb 21, 2025
The macros placing the DMA memory buffer in the appropriate section in RAM was malformed. This PR fixes it. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit bb2833d)
Add nrf54h20 to test suite. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 37c3efc)
…suite Add nrf54l15 cpuapp to test suite. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 7699361)
The buffer used for the TWIM DMA needs to be allocated to the section provided with the memory-regions dt prop. The macros for doing this where malformed. This commit fixes and cleans up the macros. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 62815dd)
…quired The DMA buffer needs to be used both for tx and rx if required. Extend RTIO driver variant to use DMA buffer and copy received data from it to user buffer. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 125752e)
Add nRF boards to the rtio_loopback sample. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 7d5a912)
Add nrf54h20 board support to the i2c rtio loopback sample. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 5c7f47d)
RTIO correctly declares tx buffers as const, however, the existing I2C API and NRFX (SDK) drivers don't. Therefor cast the const buf to non-const when passing the tx buf to the twim driver from the RTIO call to avoid the const warning. The tx buffer is being treated as const data naturally in the NRFX driver, its just not declared as such since we reuse the buffer for both RX and TX data. Alternatively the SDK and "shim" drivers built on top of it need to be updated, which is quite a bit of work :) Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 2e00923)
Add i2c_bus_short fixture to the rtio_loopback sample to ensure it is only run on boards with the bus shorted. The i2c_bus_short fixture is also used in the i2c_target_api test suite. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 846b468)
bf8dd6a to
84bf96c
Compare
…o console The harness was set to ztest, but the sample requires the console harness to match on the "sample complete" line, its not actually using ztest. Signed-off-by: Bjarki Arge Andreasen <[email protected]> (cherry picked from commit 7ee4011)
84bf96c to
8d630aa
Compare
gmarull
approved these changes
Feb 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry pick the nRF TWIS driver and nRF TWIM RTIO patches from upstream