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

Add support Flash QSPI on S32ZE #434

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

Conversation

congnguyenhuu
Copy link
Contributor

Add baremetal driver for QSPI on S32ZE devices and headers for QSPI on SoC S32Z270

@congnguyenhuu congnguyenhuu changed the title Add support flash qspi on S32ZE Add support Flash QSPI on S32ZE Sep 6, 2024
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from de1e7aa to c8a26f1 Compare September 6, 2024 09:56
@Dat-NguyenDuy
Copy link
Collaborator

Could you pls explain why these values are chosen:

 P4_QSPI0_1X_CLK is 200 MHz
 P4_QSPI0_2X_CLK is 400 MHz
 P4_QSPI1_1X_CLK is 150 MHz
 P4_QSPI1_2X_CLK is 300 MHz

@congnguyenhuu
Copy link
Contributor Author

Could you pls explain why these values are chosen:

 P4_QSPI0_1X_CLK is 200 MHz
 P4_QSPI0_2X_CLK is 400 MHz
 P4_QSPI1_1X_CLK is 150 MHz
 P4_QSPI1_2X_CLK is 300 MHz

these value is maximum value frequency that is configurable in range of QSPI frequency

@manuargue manuargue self-assigned this Sep 12, 2024
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from c8a26f1 to 20cc4cc Compare September 12, 2024 02:18
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch 2 times, most recently from 08e4b37 to fc0b5b6 Compare September 27, 2024 11:16
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from fc0b5b6 to 27ee5e0 Compare October 1, 2024 02:13
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch 2 times, most recently from 82edd1b to d31db8b Compare October 21, 2024 02:10
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from d31db8b to 6e845c6 Compare October 25, 2024 08:34
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from 6e845c6 to 30b1f30 Compare November 11, 2024 04:08
@manuargue manuargue requested a review from dleach02 November 20, 2024 02:16
@EmilioCBen EmilioCBen self-requested a review November 20, 2024 20:42
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from 30b1f30 to c9e4ba1 Compare December 2, 2024 11:04
@manuargue
Copy link
Member

@dleach02 this is ready for merging, zephyr side approved by assignee

This is the Mem_ExFls Qspi baremetal driver for s32ze

Signed-off-by: Cong Nguyen Huu <[email protected]>
Use zephyr .nocache section for non-cacheable variables.

Signed-off-by: Cong Nguyen Huu <[email protected]>
Code autogenerated with S32 Design Studio for s32ze

Signed-off-by: Cong Nguyen Huu <[email protected]>
Adapt macros that are used in the QSPI memc and
QSPI flash shim drivers.

Signed-off-by: Cong Nguyen Huu <[email protected]>
Select PERIPHPLL_DFS0 clock as QSPI0 clock source
Select PERIPHPLL_DFS2 clock as QSPI1 clock source
Update QSPI dividers so that value clocks:
 P4_QSPI0_1X_CLK is 200 MHz
 P4_QSPI0_2X_CLK is 400 MHz
 P4_QSPI1_1X_CLK is 150 MHz
 P4_QSPI1_2X_CLK is 300 MHz

Signed-off-by: Cong Nguyen Huu <[email protected]>
@congnguyenhuu congnguyenhuu force-pushed the nxp-s32ze-support-flash-qspi branch from c9e4ba1 to 0b5c196 Compare December 11, 2024 02:22
@congnguyenhuu
Copy link
Contributor Author

I rebased the latest hal_nxp

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.

4 participants