-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[WIP] stm32 mspi drivers for the MSPI flash and controller #78186
Draft
FRASTM
wants to merge
15
commits into
zephyrproject-rtos:main
Choose a base branch
from
FRASTM:mspi_stm32
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,174
−11
Conversation
This file contains 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
FRASTM
changed the title
stm32 mspi drivers for the MSPI flash and controller
[WIP] stm32 mspi drivers for the MSPI flash and controller
Sep 10, 2024
FRASTM
force-pushed
the
mspi_stm32
branch
4 times, most recently
from
September 12, 2024 16:21
6dd0042
to
c574a3d
Compare
reading external NOR at offset 0 in spi/str mode :
|
FRASTM
force-pushed
the
mspi_stm32
branch
7 times, most recently
from
September 19, 2024 16:33
8ff65f9
to
4617600
Compare
FRASTM
force-pushed
the
mspi_stm32
branch
12 times, most recently
from
September 27, 2024 09:49
a63ea6e
to
2e07eb4
Compare
FRASTM
force-pushed
the
mspi_stm32
branch
2 times, most recently
from
October 15, 2024 10:12
49f0d98
to
e23716f
Compare
Add the mspi-device and mspi-flash controller bindings for the stm32 devices. Signed-off-by: Francois Ramu <[email protected]>
Replace the xpsi by the mspi node in the DTS of the stm32h5 serie Signed-off-by: Francois Ramu <[email protected]>
Declare the mspi node of the stm32h573i_dk in place of the xspi. New properties are declared according to the mspi-controller.yaml. Only SPi/STR supported yet. XIP not supported yet. Signed-off-by: Francois Ramu <[email protected]>
Include there the jesd216.h and spi_nor.h header files for adding the command and jedec structure to be used by the mspi driver Signed-off-by: Francois Ramu <[email protected]>
Enable the stm32 MSPI controller based on the xspi peripheral Signed-off-by: Francois Ramu <[email protected]>
Enable the MSPI NOR multi-SPI flash device accessed through a mspi controller Signed-off-by: Francois Ramu <[email protected]>
Add the functions to verfify device and configure the mspi controller device. Signed-off-by: Francois Ramu <[email protected]>
Make the read and write access to the mspi NOR device in sync/async PIO and DMA bus mode. Including the dummyCycles Signed-off-by: Francois Ramu <[email protected]>
Propose read an write access in sync/ascync on PIO/DMA to the flash device. Signed-off-by: Francois Ramu <[email protected]>
For stm32 mcus, this commit adds a reset, jedec and configuration commands to be sent to the device through the mspi controller. Signed-off-by: Francois Ramu <[email protected]>
This commit adds a reset and jedec commands and a memory configuration io_mode/data_rate sent to the NOR flash device through the controller. Signed-off-by: Francois Ramu <[email protected]>
Add another mode for selecting read/write the status reg of a device Signed-off-by: Francois Ramu <[email protected]>
Declare the stm32h573i_dk node to be MSPI compatible when running the samples/drivers/jesd216 or samples/drivers/mspi/ Only SPI/STR mode. No DMA in this version. Signed-off-by: Francois Ramu <[email protected]>
Add a function to poll the NOR flash status register with a MSPI_REG set as direction and bit mask/value se to the packet structure This info is going to the MSPI driver through mspi_transceive function Signed-off-by: Francois Ramu <[email protected]>
Get the bit mask/value structure when polling the device status register bits and send the corresponding HAL_XSPI_AutoPolling function. This function is blocking until the callback matches the expected bits. Signed-off-by: Francois Ramu <[email protected]>
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.
this PR is introducing the MSPI driver device a controller for the stm32 mcus : stm32H5 serie
---> compat is
mspi_nor_mx25
---> compat is
st,stm32-mspi-controller
Build an run the samples/drivers/mspi/mspi_flash/ on stm32h573i_dk disco kit