Skip to contentSkip to conversation

mtd: spi-nor: winbond: add support for w25q01jv-im

PATCH In review Delphine CC Chiu 2 participants 2 messages Oct 7, 2022 – Nov 21, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor: winbond: add support for w25q01jv-im

Add support for winbond w25q01jv-im chip.

---
 drivers/mtd/spi-nor/winbond.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/winbond.c +2 -0
index ffaa24055259..850f2fd867aa 100644
@@ -139,6 +139,8 @@ static const struct flash_info winbond_nor_parts[] = {
 	{ "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
 			      SPI_NOR_QUAD_READ) },
+	{ "w25q01jvm", INFO(0xef7021, 0, 64 * 1024, 2048)
+		PARSE_SFDP },
 };
 
 /**
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · Delphine CC Chiu

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Add support for winbond w25q01jv-im chip.

---
 drivers/mtd/spi-nor/winbond.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/winbond.c +0 -0
index ffaa24055259..850f2fd867aa 100644

drivers/mtd/spi-nor/winbond.c static const struct flash_info winbond_nor_parts[] = { · line 145

Quoted 7 lines
drivers/mtd/spi-nor/winbond.c +2 -0
@@ -139,6 +139,8 @@ static const struct flash_info winbond_nor_parts[] = {
        { "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024)
                NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ |
                              SPI_NOR_QUAD_READ) },
+       { "w25q01jvm", INFO(0xef7021, 0, 64 * 1024, 2048)
+               PARSE_SFDP },
 };
 

Hi!

The flash entry is not really needed as all its features and parameters are initialized by parsing SFDP, so we can instead use the spi-nor-generic driver that was introduced by Michael at:
https://lore.kernel.org/linux-mtd/[email protected]/T/#t

Signature · 6 lines
Cheers,
ta

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/