-
Notifications
You must be signed in to change notification settings - Fork 1.4k
applications: sdp: mspi: extend MSPI API with reset functions #21076
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
applications: sdp: mspi: extend MSPI API with reset functions #21076
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 49ed243cc6b9ff8df9a33d96ee564ef25c04c606 more detailssdk-nrf:
Github labels
List of changed files detected by CI (7)Outputs:ToolchainVersion: 4ffa2202d5 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
|
3022645 to
98eb5fc
Compare
Fix setting previous state of not used pins in RX path. Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
Extend MSPI API with custom functions handling reset pins. Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
796f200 to
3b18859
Compare
3b18859 to
c4e432b
Compare
957e5f1 to
ce74520
Compare
Change cast of opcode in ep_recv function to uint32_t instead of uint8_t. Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
ce74520 to
49ed243
Compare
|
You can find the documentation preview for this PR here. |
|
|
||
| /** | ||
| * @brief Configure reset pin. It should be used if there is a chance that reset pin overlaps with | ||
| * any data pin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * any data pin. | |
| * any data pin and the pin cannot be driven using the GPIO driver. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be added as nrf_mspi_nrfe.h and handled like here:
zephyrproject-rtos/zephyr@d15c9fe#diff-d885f38f08e1f9834b82662415584d86d30ebe27189a3df3530e4f359c75fdd5
|
|
||
| /* Get state of all VIO to reset it correctly after transfer. */ | ||
| prev_out = nrf_vpr_csr_vio_out_get(); | ||
| prev_out = nrf_vpr_csr_vio_out_get() >> 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment why it is needed.
|
Closing, after discussion with @anangl we came to the conclusion that these changes are not needed, since reset gpio defined in dts should not overlay if any MSPI data pin. If it does, it should be handled internally in MSPI driver as pull-up or holding high state until QUAD mode is enabled in flash, which is the current solution in SDP MSPI. |



Extend MSPI API with custom functions handling reset pins.
Needs changes from(merged)#20870 (d033f90 commit)#21205, otherwise stack overflow in ICMsg happens.