-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add support ospi driver for Renesas RA8 devices #80799
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 ospi driver for Renesas RA8 devices #80799
Conversation
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
8f49aa6 to
ae8e589
Compare
ae8e589 to
a585f29
Compare
a585f29 to
7d172b6
Compare
|
Rebase with main to solve conflicts. |
|
Hello @GeorgeCGV : Could you please help us review again? Thank you so much. |
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.
Pull Request Overview
This PR adds support for the Renesas RA8 OSPI driver across several areas including test configurations, device tree bindings, driver implementation, board support files, and Kconfig updates. Key changes include:
- Adding and updating overlay and configuration files for ek_ra8m1 and ek_ra8d1 boards to support the new OSPI driver.
- Introducing driver and binding files (including new opcodes and transfer structures) for the Renesas RA OSPI NOR flash.
- Updating Kconfig and CMakeLists.txt to integrate the new driver into the build system.
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/drivers/flash/common/boards/ek_ra8[d1/m1]ospi_b* | Added configuration files and overlays for OSPI NOR flash testing on RA8 boards |
| samples/drivers/spi_flash/src/main.c & samples/drivers/jesd216/src/main.c | Updated samples to recognize the new Renesas RA OSPI NOR flash driver |
| modules/Kconfig.renesas & drivers/flash/Kconfig.renesas_ra_ospi | Added Kconfig entries for the new OSPI driver integration |
| dts/bindings/* | Added new bindings files for OSPI and Flash Controller specific to Renesas RA devices |
| drivers/flash/spi_nor.h & drivers/flash/flash_renesas_ra_ospi_b.h | Introduced opcodes and transfer definitions for the S28Hx512T flash and OSPI transactions |
| boards/renesas/ek_ra8[m1/d1]/*.dts and pinctrl files | Updated board files to enable and configure the new OSPI NOR flash device |
KhiemNguyenT
left a comment
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.
LGTM
|
hi @de-nordic, could you please revisit this PR? |
drivers/flash/spi_nor.h
Outdated
| #define SPI_NOR_CMD_WR_WRARG 0x71 /* Write Any Register for S28Hx512T */ | ||
| #define SPI_NOR_CMD_RSFDPID 0x5A /* Read SFDP ID for S28Hx512T */ | ||
| #define SPI_NOR_CMD_RREG 0x65 /* Read Any Register for S28Hx512T */ | ||
| #define SPI_NOR_CMD_SE_256KB 0xDC /* Sector Erase 256KB for S28Hx512T */ | ||
| #define SPI_NOR_CMD_ERCHP 0x60 /* Erase Chip for S28Hx512T */ | ||
|
|
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.
No. it fit his is S28Hx512T specific, it does not land here. Get your own header for that. Specifically that nothing of this is used in spi_nor.c
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.
thank you, I have separated it to another header
drivers/flash/spi_nor.h
Outdated
| #define SPI_NOR_OCMD_WEN 0x0606 /* Octal Write enable for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_RSR 0x0505 /* Octal Read status register for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_WR_REG2 0x7171 /* Octal Write config register 2 for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_RDID 0x9F9F /* Octal Read JEDEC ID for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_RSFDPID 0x5A5A /* Octal Read SFDP ID for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_RREG 0x6565 /* Octal Read Any Register for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_PP_4B 0x1212 /* Octal Page Program 4 Byte Address for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_READ 0xEEEE /* Octal Read data for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_RST_EN 0x6666 /* Octal Reset Enable for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_RST_MEM 0x9999 /* Reset Memory for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_SE_4KB 0x2121 /* Octal Sector Erase 4Kb address for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_SE_256KB 0xDCDC /* Octal Sector Erase 256Kb address for S28Hx512T */ | ||
| #define SPI_NOR_OCMD_ERCHP 0x6060 /* Octal Erase Chip for S28Hx512T */ |
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.
Same here.
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.
fixed, thank you
5ea0da0
5ea0da0 to
bbc2dd5
Compare
Support OSPI flash driver on EK-RA8M1 and EK-RA8D1 with ospi_b and S28HL512T flash. Signed-off-by: Tri Nguyen <[email protected]> Signed-off-by: Thao Luong <[email protected]>
Add ospi node on Renesas RA8 devicetree to support QSPI flash driver Signed-off-by: Quy Tran <[email protected]>
Add support for OSPI flash driver on EK-RA8D1 and EK-RA8M1 Signed-off-by: Quy Tran <[email protected]>
Add support test app "flash/common" for testing Renesas RA OSPI_B on ek_ra8m1, ek_ra8d1 Signed-off-by: Khoa Nguyen <[email protected]>
Add support OSPI for Renesas ek_ra8m1, ek_ra8d1 to run sample jesd216 Signed-off-by: Khoa Nguyen <[email protected]> Signed-off-by: Tri Nguyen <[email protected]> Signed-off-by: Thao Luong <[email protected]>
Add support OSPI for Renesas ek_ra8m1, ek_ra8d1 to run sample spi_flash Signed-off-by: Khoa Nguyen <[email protected]> Signed-off-by: Tri Nguyen <[email protected]> Signed-off-by: Thao Luong <[email protected]>
bbc2dd5 to
8fdb94d
Compare
|
|
hi @de-nordic, could you please confirm your requested change? |
I re-assigning the PR to @KhiemNguyenT as Renesas representative. |
KhiemNguyenT
left a comment
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.
Thank you. LGTM.



Add support for ospi driver running on Renesas RA8 (RA8M1 and RA8D1)
Note: This PR requires #79766 is merged