[PATCH 30/30] mtd: spi-nor: winbond: W25QxxJV-Q/N/M: Fill locking information
From: Miquel Raynal
Date: Fri May 29 2026 - 12:16:35 EST
I do not have any W25Q256JV-Q/N/M nor any W25Q16JV-M chips in hand, but
all the other chips from this family have the same locking pattern, so
we can reasonably expect that these chips follow the exact same rules.
Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
drivers/mtd/spi-nor/winbond.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c
index 08fbbc2b948b..60a7bb1f2ce4 100644
--- a/drivers/mtd/spi-nor/winbond.c
+++ b/drivers/mtd/spi-nor/winbond.c
@@ -217,7 +217,8 @@ static const struct flash_info winbond_nor_parts[] = {
}, {
/* W25Q256JV-Q/N */
.id = SNOR_ID(0xef, 0x40, 0x19),
- .flags = SPI_NOR_QUAD_PP,
+ .flags = SPI_NOR_QUAD_PP | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
+ SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP | SPI_NOR_HAS_CMP,
.fixups = &w25q256_fixups,
}, {
/* W25Q512JV-Q/N */
@@ -288,7 +289,7 @@ static const struct flash_info winbond_nor_parts[] = {
}, {
/* W25Q16JV-M */
.id = SNOR_ID(0xef, 0x70, 0x15),
- .flags = SPI_NOR_QUAD_PP | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB,
+ .flags = SPI_NOR_QUAD_PP | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | SPI_NOR_HAS_CMP,
}, {
/* W25Q32JV-M */
.id = SNOR_ID(0xef, 0x70, 0x16),
@@ -304,7 +305,8 @@ static const struct flash_info winbond_nor_parts[] = {
}, {
/* W25Q256JV-M */
.id = SNOR_ID(0xef, 0x70, 0x19),
- .flags = SPI_NOR_QUAD_PP,
+ .flags = SPI_NOR_QUAD_PP | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB |
+ SPI_NOR_TB_SR_BIT6 | SPI_NOR_4BIT_BP | SPI_NOR_HAS_CMP,
}, {
/* W25Q512JV-M */
.id = SNOR_ID(0xef, 0x70, 0x20),
--
2.53.0