-
Notifications
You must be signed in to change notification settings - Fork 636
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
EXMIF support in NCS #1682
Merged
Merged
EXMIF support in NCS #1682
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
anangl
approved these changes
May 7, 2024
The Synopsys Designware SPI peripheral exists in two versions with slightly different register layouts. Added a Kconfig option that makes the driver compatible with the HSSI register layout. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit 8ec1e0c) Signed-off-by: Rafał Kuźnia <[email protected]>
Added EXMIP pinctrl definitions, which allow selecting pin functions by name in DTS. The definitions are added, but not used in pinctrl_nrf.c. The nrf-regtool reads the pinctrl configuration and applies the settings using different mechanisms. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit 45d827a) Signed-off-by: Rafał Kuźnia <[email protected]>
The nRF54H20 implements a variant of the SPI DW peripheral that has slightly different register layout. Enable it in the defconfig. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit fe98eb7) Signed-off-by: Rafał Kuźnia <[email protected]>
Added EXMIF peripheral DTS description and bindings. The peripheral operates as an SPI device. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit 4d30ccb) Signed-off-by: Rafał Kuźnia <[email protected]>
The nRF54H20dk has mx25uw6345g flash device on board. Added DTS description and pinctrl configuration. The flash device node is disabled by default. The flash device needs to be powered-on using the nRF Connect for Desktop Board Configurator application. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit e9c6990) Signed-off-by: Rafał Kuźnia <[email protected]>
Configure the sample for nRF54H20 CPUAPP. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit b1de9a6) Signed-off-by: Rafał Kuźnia <[email protected]>
The Synopsys Designware SPI peripheral core is wrapped in hardware that manages interrupts, power and clock. The SPI core registers are shifted by 0x500 bytes. Before the SPI core is used, the power and clock must be enabled by writing to EXMIF.TASKS_START register. Interrupts must be enabled by writing to EXMIF.INTENSET/INTENCLR registers. The SER register must be configured unconditionally during peripheral setup. Otherwise, the serial transaction does not complete. Signed-off-by: Rafał Kuźnia <[email protected]>
The nRF54H20 EXMIF peripheral requires word accesses. Doing accesses of byte or half-word sizes results in bus fault. Upstream PR: zephyrproject-rtos/zephyr#72497 Signed-off-by: Rafał Kuźnia <[email protected]>
carlescufi
approved these changes
May 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Note: Contains one [noup] commit.