Skip to content
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

General fix for MSPI drivers and Apollo3p mspi feature update #81762

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

swift-tk
Copy link
Collaborator

@swift-tk swift-tk commented Nov 22, 2024

Updates for the common files

  1. Standarlized transfer priority and add a medium level.
  2. Improve the mspi_async example.
  3. Moved ambiq specific macro to mspi_ambiq header from shared drivers.
  4. Add the CONFIG_MSPI_* macro for optional features in shared drivers
  5. Add atxp032 driver to jesd216 example.

Ambiq specific update:
Introduce the am_hal_mspi_cq_scatter_xfer api with three modes(STREAM, NORMAL, LOOP) that can dynamically set transfer related settings in command queue.

Tests:
\zephyr\tests\drivers\mspi\api
\zephyr\tests\drivers\mspi\flash
\zephyr\samples\drivers\jesd216
\zephyr\samples\drivers\memc
\zephyr\samples\drivers\mspi\mspi_async
\zephyr\samples\drivers\mspi\mspi_flash

@zephyrbot
Copy link
Collaborator

zephyrbot commented Nov 22, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_ambiq zephyrproject-rtos/hal_ambiq@87a188b (main) ❌ Impostor SHA: zephyrproject-rtos/hal_ambiq@1f1c8f7 zephyrproject-rtos/[email protected]

DNM label due to: 1 impostor SHA

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_ambiq DNM This PR should not be merged (Do Not Merge) labels Nov 22, 2024
@swift-tk swift-tk force-pushed the apollo3p-mspi-feature-update branch from 970a5e9 to b0e390a Compare November 22, 2024 12:10
@swift-tk swift-tk changed the title Apollo3p mspi feature update General fix for MSPI drivers and Apollo3p mspi feature update Nov 22, 2024
@swift-tk swift-tk force-pushed the apollo3p-mspi-feature-update branch 3 times, most recently from 5435c3c to 6ca2b9d Compare November 22, 2024 16:27
@swift-tk swift-tk force-pushed the apollo3p-mspi-feature-update branch from 6ca2b9d to 505d24f Compare November 23, 2024 08:59
Standarlized transfer priority and add a medium level.

Signed-off-by: Swift Tian <[email protected]>
@swift-tk swift-tk force-pushed the apollo3p-mspi-feature-update branch 5 times, most recently from 2c6a15e to 4051429 Compare November 26, 2024 11:23
The example now takes necessary information from the device tree and
print better transfer status. The packets are re-ordered to show more
complex transfer scenario.

Signed-off-by: Swift Tian <[email protected]>
@swift-tk swift-tk force-pushed the apollo3p-mspi-feature-update branch from 4051429 to 3621190 Compare December 3, 2024 08:20
@swift-tk
Copy link
Collaborator Author

swift-tk commented Dec 3, 2024

Further improve the mspi_async example.

  1. The timeout parameter was missing from xfer1 and xfer2.
  2. Better log print.

1. Moved ambiq specific macro to mspi_ambiq header.
2. Always fill rx&tx dummy settings regardless of transfer direction.
3. Add the CONFIG_MSPI_* macro for optional features.
4. Fixed the ID read process and add k_sleep during busy_wait in
   atxp032 driver.

Signed-off-by: Swift Tian <[email protected]>
1. Use the newly introduced am_hal_mspi_cq_scatter_xfer api
2. Remove async PIO support
3. Use separate AM_HAL_MSPI_REQ_SCRAMB_CONFIG instead of
   am_hal_mspi_device_configure
4. Add MSPI_DEVICE_CONFIG_RX_DUMMY & MSPI_DEVICE_CONFIG_TX_DUMMY
   support and bug fix.
5. Unblock sync dma transcieve.
6. The transfers now able to be queued from different async
   mspi_transceive calls.

Signed-off-by: Swift Tian <[email protected]>
Add the flash_mspi_atxp032 driver to the example and verified that
flash_mspi_atxp032_read_sfdp is working as expected.

Signed-off-by: Swift Tian <[email protected]>
@swift-tk swift-tk force-pushed the apollo3p-mspi-feature-update branch from 3621190 to c6e81b9 Compare December 4, 2024 10:00
@aaronyegx
Copy link
Contributor

Please create a PR of HAL to update the correct SHA. Overall it looks good to me.

@fabiobaltieri fabiobaltieri added DNM (manifest) This PR should not be merged (controlled by action-manifest) and removed DNM This PR should not be merged (Do Not Merge) labels Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants