Re: [PATCH] mtd: spi-nor: Added ISSI is25lp080d support

From: Cyrille Pitchen
Date: Tue Dec 19 2017 - 10:28:12 EST


Hi Romain,

Le 19/12/2017 Ã 14:43, Romain Porte a Ãcrit :
> This patch adds support for a new ISSI 1MB SPI NOR chip that was tested in our
> lab. Datasheet is available at: http://www.issi.com/WW/pdf/25LP-WP080D.pdf
>
> Tested-by: Pascal Fabreges <pascal.fabreges@xxxxxxxxx>
> Reviewed-by: Alexander Sverdlin <alexander.sverdlin@xxxxxxxxx>
> ---
> drivers/mtd/spi-nor/spi-nor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index bc266f70a15b..92cd62f02176 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1021,6 +1021,7 @@ static const struct flash_info spi_nor_ids[] = {
>
> /* ISSI */
> { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
> + { "is25lp080d", INFO(0x9d6014, 0, 64 * 1024, 16, SECT_4K) },
>

Based on the provided datasheet, both SPI_NOR_DUAL_READ (3Bh) and
SPI_NOR_QUAD_READ (6Bh) are missing. Besides adding at least one them will
enable the parsing of SFDP tables, which are also supported by this memory
part.

Then please add both SPI_NOR_DUAL_READ and SPI_NOR_QUAD_READ with SECT_4K.

Also, please rebase your patch on the spi-nor/next branch of l2-mtd (moving
to linux-mtd ?) as another patch has already added an entry for is25lp128

Best regards,

Cyrille

> /* Macronix */
> { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
>