fix(flash): add W25Q-RV QER 6 support - #19
Open
Xiling Sun (helloxiling) wants to merge 1 commit into
Open
Conversation
Xiling Sun (helloxiling)
marked this pull request as ready for review
August 5, 2026 22:19
Xiling Sun (helloxiling)
force-pushed
the
xsun/sfdp-fix-W25Q-RV-DTR
branch
from
August 5, 2026 22:59
ae68286 to
83bb954
Compare
adiGlick
pushed a commit
to Nuvoton-Israel/npcm8xx-tip-fw-project-cerberus
that referenced
this pull request
Aug 10, 2026
Recognizes QER=6 for Winbond W25Q-RV/DTR devices that use JESD216C+ BFPT v1.8+. - Renames QER_RESERVED1 -> QER_BIT1_SR2_35_31 and QER_RESERVED2 -> QER_RESERVED. - Adds SPI_FLASH_SFDP_QUAD_QE_BIT1_SR2_35_31 enum: SR2 read via 0x35, written independently via 0x31. - Updates clear_block_protect, enable_quad_spi and is_quad_spi_enabled accordingly. Based on upstream PR: Azure/Project-Cerberus#19
adiGlick
pushed a commit
to Nuvoton-Israel/npcm8xx-tip-fw-project-cerberus
that referenced
this pull request
Aug 10, 2026
Recognizes QER=6 for Winbond W25Q-RV/DTR devices that use JESD216C+ BFPT v1.8+. - Renames QER_RESERVED1 -> QER_BIT1_SR2_35_31 and QER_RESERVED2 -> QER_RESERVED. - Adds SPI_FLASH_SFDP_QUAD_QE_BIT1_SR2_35_31 enum: SR2 read via 0x35, written independently via 0x31. - Updates clear_block_protect, enable_quad_spi and is_quad_spi_enabled accordingly. Based on upstream PR: Azure/Project-Cerberus#19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Winbond W25Q-RV/DTR devices can report SFDP QER 6, which uses QE at SR2 bit 1. SR2 must be read with
35hand written independently with one-byte31h. The existing SFDP path treats QER 6 as unknown, preventing flash initialization.Fix
35h/31hoperations.