[PATCH] mtd: spi-nor: atmel: add at25dn011

Simon Richter posted 1 patch 3 months, 3 weeks ago
drivers/mtd/spi-nor/atmel.c | 5 +++++
1 file changed, 5 insertions(+)
[PATCH] mtd: spi-nor: atmel: add at25dn011
Posted by Simon Richter 3 months, 3 weeks ago
Add AT25DN011 with 1Mbit.
Used on multiple custom boards and tested with this patch.

Link: https://www.renesas.com/en/document/dst/at25dn011-datasheet?r=1608506
Signed-off-by: Simon Richter <simon@sinic.eu>
---
 drivers/mtd/spi-nor/atmel.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c
index 82c592f0a1e1..0c2908bce0bc 100644
--- a/drivers/mtd/spi-nor/atmel.c
+++ b/drivers/mtd/spi-nor/atmel.c
@@ -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",
-- 
2.51.0
Re: [PATCH] mtd: spi-nor: atmel: add at25dn011
Posted by Michael Walle 3 months, 3 weeks ago
Hi Simon,

On Fri Oct 17, 2025 at 8:05 AM CEST, Simon Richter wrote:
> 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].

>
> Link: https://www.renesas.com/en/document/dst/at25dn011-datasheet?r=1608506

Newer flash and no SFDP :|

> Signed-off-by: Simon Richter <simon@sinic.eu>
> ---
>  drivers/mtd/spi-nor/atmel.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/mtd/spi-nor/atmel.c b/drivers/mtd/spi-nor/atmel.c
> index 82c592f0a1e1..0c2908bce0bc 100644
> --- a/drivers/mtd/spi-nor/atmel.c
> +++ b/drivers/mtd/spi-nor/atmel.c
> @@ -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.

> +		.size = SZ_128K,
> +		.no_sfdp_flags = SECT_4K | SPI_NOR_DUAL_READ

missing trailing comma.

-michael

>  	}, {
>  		.id = SNOR_ID(0x1f, 0x42, 0x16),
>  		.name = "at25sl321",

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