Skip to contentSkip to conversation

mtd: spi-nor-ids: add dual and quad mode support to mx25l12805d

PATCH New Stefan Herbrechtsmeier 2 participants 3 messages Mar 11, 2021 – Mar 12, 2021 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: spi-nor-ids: add dual and quad mode support to mx25l12805d

From: Stefan Herbrechtsmeier <[email protected]>

The NOR flash MX25L12835F reuse the JEDEC ID of the MX25l12805D but supports dual and quad mode.

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

---

 drivers/mtd/spi/spi-nor-ids.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +1 -1
index 2b57797954..f6de2fb1b8 100644
@@ -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) },
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 mtd: spi-nor-ids: add dual and quad mode support to mx25l12805d

Hi Stefan,

Quoted 4 lines · Stefan Herbrechtsmeier

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-GP9anuGG1Bw at mail.gmail.com/t/

Quoted 27 lines

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

---

 drivers/mtd/spi/spi-nor-ids.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +1 -1
index 2b57797954..f6de2fb1b8 100644
@@ -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) },
Signature · 1 line
2.20.1
Signature · 3 lines
Regards,
Pratyush Yadav
Texas Instruments Inc.
#2 lore raw

PATCH 1/1 mtd: spi-nor-ids: add dual and quad mode support to mx25l12805d

Hi Pratyush Yadav,

Am 11.03.2021 um 13:15 schrieb Pratyush Yadav:

Quoted 5 lines

Hi Stefan,

Quoted 2 lines · Stefan Herbrechtsmeier

From: Stefan Herbrechtsmeier <[email protected]>

Quoted 8 lines
Quoted 2 lines

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.

Thanks for the link.

Quoted 30 lines

[0] https://lore.kernel.org/linux-mtd/CAEyMn7ZEp9f1SuE6umRDWkr8bVT5hdRi-4F3+G-GP9anuGG1Bw at mail.gmail.com/t/

Quoted 27 lines

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

---

  drivers/mtd/spi/spi-nor-ids.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/spi/spi-nor-ids.c +1 -1
index 2b57797954..f6de2fb1b8 100644
@@ -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) },
Signature · 1 line
2.20.1