-
Couldn't load subscription status.
- Fork 0
drivers: Flash: Add SPI NAND Flash driver support #3
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
Conversation
Add SPI NAND Flash driver support Signed-off-by: Daniel Zhang <[email protected]>
Every commit in nrfconnect has to start with a tag like [nrf mergeup], [nrf fromtree], [nrf fromlist], [nrf noup]. This is absolutely irrelevant to us.
|
It compiles when added to the DT, so we can merge for now. |
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 SPI NAND Flash driver support by introducing a comprehensive driver implementation with optional software ECC support using BCH (Bose-Chaudhuri-Hocquenghem) error correction algorithms.
- Complete SPI NAND flash driver with read, write, and erase operations
- Optional software-based ECC support with BCH algorithm implementation
- Device tree binding and configuration support for SPI NAND devices
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
dts/bindings/mtd/jedec,spi-nand.yaml |
Device tree binding definition for SPI NAND flash devices |
drivers/flash/spi_nand.h |
Header file with SPI NAND constants, opcodes, and register definitions |
drivers/flash/spi_nand.c |
Main SPI NAND driver implementation with read/write/erase operations |
drivers/flash/bch.h |
BCH error correction header with data structures and function declarations |
drivers/flash/bch.c |
BCH error correction algorithm implementation |
drivers/flash/Kconfig.nand |
Kconfig options for SPI NAND driver configuration |
drivers/flash/Kconfig |
Updated to include SPI NAND configuration |
drivers/flash/CMakeLists.txt |
Build system integration for SPI NAND driver files |
.github/workflows/commit-tags.yml |
Removed entire GitHub workflow file |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
These suggestions will also be sent upstream. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Arnout Vandecappelle <[email protected]>
Add SPI NAND Flash driver support
cherry-picked hash zephyrproject-rtos@84f8da1, the PR zephyrproject-rtos#50690 as of 2025-09-22