Skip to content

Conversation

@embed
Copy link

@embed embed commented Sep 22, 2025

Add SPI NAND Flash driver support

cherry-picked hash zephyrproject-rtos@84f8da1, the PR zephyrproject-rtos#50690 as of 2025-09-22

daniel-723 and others added 2 commits September 22, 2025 10:49
Add SPI NAND Flash driver support

Signed-off-by: Daniel Zhang <danielzhang@mxic.com.cn>
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.
@embed embed marked this pull request as ready for review September 22, 2025 16:43
@embed
Copy link
Author

embed commented Sep 22, 2025

It compiles when added to the DT, so we can merge for now.

@embed embed requested review from arnout and Copilot September 22, 2025 16:43
Copy link

Copilot AI left a 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 <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Arnout Vandecappelle <arnout@rnout.be>
@embed embed merged commit cddc54c into bf-ncs-v3.1.0 Sep 23, 2025
8 of 10 checks passed
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.

3 participants