[PATCH 3/3] mtd: spi-nor: add support for Cypress cy15b102q

A. Zini alessandro.zini at siemens.com
Mon Jul 29 03:20:16 PDT 2024


From: Alessandro Zini <alessandro.zini at siemens.com>

The Cypress cy15b102q is a 2Mbit serial SPI F-RAM device.
Add support for it to the spi-nor driver.

As per datasheeet, manufacturer id is 0xC2, which from the official
JEDEC JEP106 corresponds to Ramtron. Ramtron has been later acquired by
Cypress, which in turn merged with Infineon. Prior to this acquisition,
Cypress merged with Spansion. Given this history, add the device to
spansion.c, as it already includes other products part of the Infineon
family.

The JEDEC-assigned manufacturer ID places the Cypress (Ramtron)
identifier in bank 7.

This patch depends on patch #1.

Signed-off-by: Alessandro Zini <alessandro.zini at siemens.com>
---
 drivers/mtd/spi-nor/spansion.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c
index 6cc237c24e07..9687dfb62a9b 100644
--- a/drivers/mtd/spi-nor/spansion.c
+++ b/drivers/mtd/spi-nor/spansion.c
@@ -981,6 +981,13 @@ static const struct flash_info spansion_nor_parts[] = {
 		.name = "s28hs02gt",
 		.mfr_flags = USE_CLPEF,
 		.fixups = &s28hx_t_fixups,
+	}, {
+		.id = SNOR_ID(0xc2, 0x25, 0xc8),
+		.name = "cy15b102q",
+		.size = SZ_256K,
+		.sector_size = SZ_256K,
+		.flags = SPI_NOR_NO_ERASE,
+		.mfr_bank = 7,
 	}, {
 		.id = SNOR_ID(0xef, 0x40, 0x13),
 		.name = "s25fl004k",
-- 
2.45.2




More information about the linux-mtd mailing list