- Notifications
You must be signed in to change notification settings - Fork 8.1k
Support xspi on rt700 #94921
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
base: main
Are you sure you want to change the base?
Support xspi on rt700 #94921
Conversation
@hakehuang Can you help to trigger the unit test? |
boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.yaml Outdated Show resolved Hide resolved
do you want to enable all spi flash testing based on this? if so, please update the board support list. |
1d8539d
to cd8df3d
Compare boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts Outdated Show resolved Hide resolved
cd8df3d
to 235acff
Compare boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts Outdated Show resolved Hide resolved
boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts Outdated Show resolved Hide resolved
boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts Outdated Show resolved Hide resolved
boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts Outdated Show resolved Hide resolved
boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu1.dts Outdated Show resolved Hide resolved
8c0467f
to a36ad82
Compare board testing pass. on v4.2.0-5922-ga36ad82ca689
|
@dleach02 Can we merge this PR for 4.3.0 release together with zephyrproject-rtos/hal_nxp#597 |
a36ad82
to 3649b92
Compare @SuperHeroAbner I rebased your PR to clear CI. Please note the comment on the HAL PR. |
3649b92
to 5e173b9
Compare help @SuperHeroAbner to rebase to the latest main |
5e173b9
to 50ffa72
Compare 50ffa72
to b95e436
Compare Add mcux xspi driver suppport. Add the flash and psram driver support based on xspi driver. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Move nxp,xspi.yaml from spi bindings to mtd, it should be flash controllor rather than simple bus controller. Delete the xspi flash mx25um51345g bindling yaml file which is useless. Enable flash and two psrams on RT700 core0 and one psram on core1. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add flash and psram dts based on RT700 board resource. Add the clock and power setting for XSPI in board specfic initilization function. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Update the Kconfig to parse the dts. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Add memc sample for XSPI PSRAM. Add spi_flash sample for XSPI Nor Flash. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
Update hal_nxp to latest main. Signed-off-by: Ruijia Wang <ruijia.wang@nxp.com>
b95e436
to 2fe2385
Compare # FRAD configuration | ||
start-address: | ||
type: int | ||
description: Start address of the region |
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.
What region?
description: Enable AHB read prefetch feature. | ||
| ||
child-binding: | ||
description: NXP XSPI configurations |
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 child-binding doesn't seem to be used in DT, what is it for?
|
Add Zephyr XSPI driver as memc driver.
Add xspi psram and flash driver to handle those different memory cases. The goal is using them to cover all PSRAM and FLASH types. Currently they can only work with the memory on NXP RT700 board.
Porting them to the samples drivers/memc and drivers/spi_flash. RT700 cpu0 supports XSPI0(Flash used in XIP), XSPI1(PSRAM as default), XSPI2(PSRAM). The cpu2 supports XSPI2(PSRAM).