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

[nrf fromlist] drivers: mspi: Add driver for Designware SSI based controllers #2136

Merged
merged 13 commits into from
Dec 16, 2024

Conversation

anangl
Copy link
Contributor

@anangl anangl commented Oct 18, 2024

Add a generic driver for controllers based on the Designware SSI core.
With small vendor-specific adaptations covering integration details,
it should be possible to use it for many devices.

@anangl
Copy link
Contributor Author

anangl commented Oct 21, 2024

Rebased.

@nordic-piks nordic-piks requested a review from a team October 21, 2024 11:34
@anangl anangl force-pushed the mspi_dw_ncs branch 3 times, most recently from 67d47fa to 4f0f1a6 Compare November 8, 2024 13:43
@anangl
Copy link
Contributor Author

anangl commented Nov 8, 2024

Rebased.

@anangl anangl force-pushed the mspi_dw_ncs branch 2 times, most recently from 4e9edee to 8e1183e Compare November 15, 2024 08:43
@anangl
Copy link
Contributor Author

anangl commented Nov 15, 2024

Rebased.

@shanthanordic shanthanordic added this to the ncs-2.9.0 milestone Nov 21, 2024
Copy link
Contributor

@nordic-piks nordic-piks left a comment

Choose a reason for hiding this comment

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

Test execution at CI OK, newly added tests executed and passed.

@anangl anangl marked this pull request as ready for review December 3, 2024 23:09
@bjarki-andreasen bjarki-andreasen mentioned this pull request Dec 14, 2024
@anangl anangl force-pushed the mspi_dw_ncs branch 2 times, most recently from aa13515 to ddf120e Compare December 14, 2024 19:43
The commit sets CONFIG_ZTEST_STACK_SIZE to 4096.

Fixes #79801

Signed-off-by: Dominik Ermel <[email protected]>
(cherry picked from commit 3e8ea52)
rettichschnidi and others added 12 commits December 15, 2024 20:08
…cally

By sorting the lines alphabetically, merge conflicts can be reduced.

Signed-off-by: Reto Schneider <[email protected]>
(cherry picked from commit 7fa5a22)
…trollers

Add a generic driver for MSPI controllers based on the DesignWare
SSI core. With small vendor-specific adaptations covering integration
details, it should be possible to use the driver for various devices.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
…devices

Add a flash driver intended to handle various flash devices
connected over MSPI bus as long as they support JEDEC SFDP.
This is an initial commit providing only basic operations
in Octal I/O mode with some hard-coded values for Macronix
MX25Ux series chips.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
This is a follow-up to commit 45d827a.

Although routing for those pins is configured via UICR, pinctrl still
needs to be involved so that it is possible to set desired drive mode
for them etc.
Add also the missing RWDS pin.

Upstream PR #: 80042
Applied as a [nrf noup] due to a conflict.

Signed-off-by: Andrzej Głąbek <[email protected]>
…ing"

This reverts commit f68b2ed.

Signed-off-by: Andrzej Głąbek <[email protected]>
This is a follow-up to commit cdf45cb234077522b5cef2da084869af43d42dc1.

Adjust the DTS node for the nRF EXMIF peripheral so that it is possible
to handle the peripheral with the generic MSPI driver for DW SSI based
controllers and use all its data lines in communication.
Also adjust the related board files accordingly.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
…option changes

It is no longer needed to enable a specific flash driver in the sample
configuration. An appropriate driver (together with its dependencies,
like the SPI bus) for a given target will be enabled automatically
based on what is enabled in DTS.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
…g option changes

It is no longer needed to enable a specific flash driver in the sample
configuration. An appropriate driver (together with its dependecies,
like the SPI bus) for a given target will be enabled automatically
based on what is enabled in DTS.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
…-nor" devices

Extend several flash samples and tests so that they can also be used
with "jedec,mspi-nor" devices.
Add configurations needed for the nrf54h20dk/nrf54h20/cpuapp target.

Upstream PR #: 80042
Applied as a [nrf noup] due to a conflict.

Signed-off-by: Andrzej Głąbek <[email protected]>
…y map

Access to this region must be requested through UICR by a local
domain that want to use the Execute In Place (XIP) feature of
the EXMIF peripheral.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
… nRF54H20 DK

Add nRF54H20 DK specific entries to allow using the sample on this
board.

Upstream PR #: 80042

Signed-off-by: Andrzej Głąbek <[email protected]>
Copy link

@shanthanordic shanthanordic left a comment

Choose a reason for hiding this comment

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

approiving for scope

@jukkar jukkar merged commit 9edbdaf into nrfconnect:main Dec 16, 2024
16 checks passed
@anangl anangl deleted the mspi_dw_ncs branch December 16, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants