Skip to contentSkip to conversation

mtd: spi-nor: atmel: Add at25ql641 support

PATCH In review Christoph Fritz 2 participants 2 messages May 24, 2022

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

PATCH 1/1 mtd: spi-nor: atmel: Add at25ql641 support

This patch adds AT25QL641 to the list of supported nor flashs.

---
 drivers/mtd/spi-nor/atmel.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/atmel.c +2 -0
index 656dd80a0be7..dfbc12071093 100644
@@ -186,6 +186,8 @@ static const struct flash_info atmel_nor_parts[] = {
 		.fixups = &atmel_nor_global_protection_fixups },
 	{ "at25sl321",	INFO(0x1f4216, 0, 64 * 1024, 64)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+	{ "at25ql641",	INFO(0x1f4317, 0, 64 * 1024, 128)
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
 	{ "at26f004",   INFO(0x1f0400, 0, 64 * 1024,  8)
 		NO_SFDP_FLAGS(SECT_4K) },
 	{ "at26df081a", INFO(0x1f4501, 0, 64 * 1024, 16)
Signature · 1 line
2.30.2
#1 lore raw

Hi,

Am 2022-05-24 21:20, schrieb Christoph Fritz:

Quoted 1 line

This patch adds AT25QL641 to the list of supported nor flashs.

Please mention on which spi host controller this flash was tested.

Quoted 10 lines
---
 drivers/mtd/spi-nor/atmel.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi-nor/atmel.c +0 -0
index 656dd80a0be7..dfbc12071093 100644

drivers/mtd/spi-nor/atmel.c static const struct flash_info atmel_nor_parts[] = · line 191

Quoted 6 lines
drivers/mtd/spi-nor/atmel.c +2 -0
@@ -186,6 +186,8 @@ static const struct flash_info atmel_nor_parts[] = 
 {
 		.fixups = &atmel_nor_global_protection_fixups },
 	{ "at25sl321",	INFO(0x1f4216, 0, 64 * 1024, 64)
 		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+	{ "at25ql641",	INFO(0x1f4317, 0, 64 * 1024, 128)
+		NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },

This flash supports SFDP, please use either SNOR_ID3() (you'll have to pick my pending patches first [1]) or use
{ "at25ql641", INFO(0x1f4317, 0, 0, 0) PARSE_SFDP },
which will then be replaced with SNOR_ID3() once it is available.

Quoted 3 lines
drivers/mtd/spi-nor/atmel.c +0 -0
 	{ "at26f004",   INFO(0x1f0400, 0, 64 * 1024,  8)
 		NO_SFDP_FLAGS(SECT_4K) },

{ "at26df081a", INFO(0x1f4501, 0, 64 * 1024, 16)

-michael

[1] https://lore.kernel.org/r/[email protected]/