Hi Stefan, On 11/03/21 10:55AM, Stefan Herbrechtsmeier wrote: > From: Stefan Herbrechtsmeier <[email protected]> > > The NOR flash MX25L12835F reuse the JEDEC ID of the MX25l12805D but > supports dual and quad mode.
There is some discussion going on over at the Linux side [0] about these two flashes and how to properly support them. I suggest this you hold on to this patch until a proper solution is found and agreed upon for this. Or even better, you can help drive the solution forward on Linux as well. [0] https://lore.kernel.org/linux-mtd/caeymn7zep9f1sue6umrdwkr8bvt5hdri-4f3+g-gp9anugg...@mail.gmail.com/t/ > > Datasheet: > https://www.macronix.com/Lists/Datasheet/Attachments/7321/MX25L12805D,%203V,%20128Mb,%20v1.2.pdf > Datasheet: > https://www.macronix.com/Lists/Datasheet/Attachments/7397/MX25L12835F,%203V,%20128Mb,%20v1.6.pdf > > Signed-off-by: Stefan Herbrechtsmeier <[email protected]> > > --- > > drivers/mtd/spi/spi-nor-ids.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c > index 2b57797954..f6de2fb1b8 100644 > --- a/drivers/mtd/spi/spi-nor-ids.c > +++ b/drivers/mtd/spi/spi-nor-ids.c > @@ -155,7 +155,7 @@ const struct flash_info spi_nor_ids[] = { > { INFO("mx25u1635e", 0xc22535, 0, 64 * 1024, 32, SECT_4K) }, > { INFO("mx25u3235f", 0xc22536, 0, 4 * 1024, 1024, SECT_4K) }, > { INFO("mx25u6435f", 0xc22537, 0, 64 * 1024, 128, SECT_4K) }, > - { INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, SECT_4K) }, > + { INFO("mx25l12805d", 0xc22018, 0, 64 * 1024, 256, SECT_4K | > SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) }, > { INFO("mx25u12835f", 0xc22538, 0, 64 * 1024, 256, SECT_4K) }, > { INFO("mx25l12855e", 0xc22618, 0, 64 * 1024, 256, 0) }, > { INFO("mx25l25635e", 0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | > SPI_NOR_QUAD_READ) }, > -- > 2.20.1 > -- Regards, Pratyush Yadav Texas Instruments Inc.

