Skip to contentSkip to conversation

mtd: spi-nor: atmel: add at25dn011

PATCH In review Simon Richter 2 participants 2 messages Oct 17, 2025

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

PATCH 1/1 mtd: spi-nor: atmel: add at25dn011

Add AT25DN011 with 1Mbit.
Used on multiple custom boards and tested with this patch.

---
 drivers/mtd/spi-nor/atmel.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/mtd/spi-nor/atmel.c +5 -0
index 82c592f0a1e1..0c2908bce0bc 100644
@@ -171,6 +171,11 @@ static const struct flash_info atmel_nor_parts[] = {
 		.name = "at45db081d",
 		.size = SZ_1M,
 		.no_sfdp_flags = SECT_4K,
+	}, {
+		.id = SNOR_ID(0x1f, 0x42, 0x00),
+		.name = "at25dn011",
+		.size = SZ_128K,
+		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ
 	}, {
 		.id = SNOR_ID(0x1f, 0x42, 0x16),
 		.name = "at25sl321",
Signature · 1 line
2.51.0
maintainer
#1 lore raw

Hi Simon,

Quoted 2 lines · Simon Richter

Add AT25DN011 with 1Mbit.
Used on multiple custom boards and tested with this patch.

Could you add your testing to the next version of your patch (below a "---" line). See also [1].

Quoted 2 lines

Newer flash and no SFDP :|

Quoted 10 lines
---
 drivers/mtd/spi-nor/atmel.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/mtd/spi-nor/atmel.c +0 -0
index 82c592f0a1e1..0c2908bce0bc 100644

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

Quoted 6 lines
drivers/mtd/spi-nor/atmel.c +3 -0
@@ -171,6 +171,11 @@ static const struct flash_info atmel_nor_parts[] = {
 		.name = "at45db081d",
 		.size = SZ_1M,
 		.no_sfdp_flags = SECT_4K,
+	}, {
+		.id = SNOR_ID(0x1f, 0x42, 0x00),
+		.name = "at25dn011",

No .name please, the ID is enough. We've deprecated the use of a name.

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

Quoted 2 lines
drivers/mtd/spi-nor/atmel.c +2 -0
+		.size = SZ_128K,
+		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ

missing trailing comma.

-michael

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

Quoted 3 lines
drivers/mtd/spi-nor/atmel.c +0 -0
 	}, {
 		.id = SNOR_ID(0x1f, 0x42, 0x16),
 		.name = "at25sl321",

[1] https://docs.kernel.org/driver-api/mtd/spi-nor.html