Skip to contentSkip to conversation

mtd: spi: spi-nor-ids: Add support for XMC XM25QU01D

PATCH Superseded Ssunk 3 participants 5 messages Nov 1 – Nov 24 Memory technology devices (MTD)

lore
Share & tools
lore

Ssunk

author
#0 lore raw

PATCH 1/1 mtd: spi: spi-nor-ids: Add support for XMC XM25QU01D

Add support for XMC XM25QU01D SPI NOR flash.

Datasheet: https://www.xmcwh.com/uploads/974/XM25QU01D_Ver1.0.pdf

---
 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +1 -0
index b370e78262..b42d7af967 100644
@@ -677,6 +677,7 @@ const struct flash_info spi_nor_ids[] = {
 	{ INFO("XM25QH512C", 0x204020, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("XM25QU512C", 0x204120, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("XM25QH01D", 0x204021, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+	{ INFO("XM25QU01D", 0x204121, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 #endif
 #ifdef CONFIG_SPI_FLASH_XTX
 	/* XTX Technology Limited */
Signature · 1 line
2.55.0.windows.4
Reviewed-by on v1 1/1
#1 lore raw

Hello Ssunk,

please use the new mailinglist:

U-Boot Mailing List <[email protected]>

droped the old denx one from To.

Quoted 15 lines · Ssunk

Add support for XMC XM25QU01D SPI NOR flash.

Datasheet: https://www.xmcwh.com/uploads/974/XM25QU01D_Ver1.0.pdf

---
  drivers/mtd/spi/spi-nor-ids.c | 1 +
  1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +0 -0
index b370e78262..b42d7af967 100644

drivers/mtd/spi/spi-nor-ids.c const struct flash_info spi_nor_ids[] = { · line 683

Quoted 7 lines
drivers/mtd/spi/spi-nor-ids.c +1 -0
@@ -677,6 +677,7 @@ const struct flash_info spi_nor_ids[] = {
  	{ INFO("XM25QH512C", 0x204020, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
  	{ INFO("XM25QU512C", 0x204120, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
  	{ INFO("XM25QH01D", 0x204021, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+	{ INFO("XM25QU01D", 0x204121, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
  #endif
  #ifdef CONFIG_SPI_FLASH_XTX
  	/* XTX Technology Limited */

bye,
Heiko

Signature · 5 lines
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic
#2 lore raw
In reply to Ssunk

Hi,

Quoted 4 lines

Add support for XMC XM25QU01D SPI NOR flash.

Datasheet: https://www.xmcwh.com/uploads/974/XM25QU01D_Ver1.0.pdf

Please use Link: tag.

Quoted 10 lines
---
 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +0 -0
index b370e78262..b42d7af967 100644

drivers/mtd/spi/spi-nor-ids.c const struct flash_info spi_nor_ids[] = { · line 680

Quoted 4 lines
drivers/mtd/spi/spi-nor-ids.c +1 -0
@@ -677,6 +677,7 @@ const struct flash_info spi_nor_ids[] = {
        { INFO("XM25QH512C", 0x204020, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
        { INFO("XM25QU512C", 0x204120, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
        { INFO("XM25QH01D", 0x204021, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+       { INFO("XM25QU01D", 0x204121, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },

Did you test in Quad mode?
Current driver assumes Quad input page program is supported if SPI_NOR_QUAD_READ is set. I don't see Quad input page program with 4B address (34h) in the datasheet.

Quoted 5 lines
drivers/mtd/spi/spi-nor-ids.c +0 -1
 #endif
 #ifdef CONFIG_SPI_FLASH_XTX
        /* XTX Technology Limited */
--

2.55.0.windows.4

Thanks,
Takahiro

author
#3 lore raw

Hi Takahiro,

Sorry for the delayed response, and thanks for your review.

Quoted 1 line

Please use Link: tag.

Will do in v2.

Quoted 3 lines

Did you test in Quad mode? Current driver assumes Quad input page program is supported if SPI_NOR_QUAD_READ is set.
I don't see Quad input page program with 4B address (34h) in the datasheet.

Yes, I have tested Quad mode, including the 4-byte Quad Page Program command (34h), and confirmed that it works correctly.

The latest datasheet provided directly by XMC confirms support for command 34h. The datasheet currently available on their website is an older revision.

According to XMC, their online documentation is updated quarterly, and the revised datasheet will be available in a future update.

Thanks,
Ssunk

author
#4 lore raw

PATCH v2 1/1 mtd: spi: spi-nor-ids: Add support for XMC XM25QU01D

In reply to Ssunk

Add support for XMC XM25QU01D SPI NOR flash.

---

Notes (patch-v2):
Changes in v2:
- Use the Link: tag instead of Datasheet:.
- Add Reviewed-by from Heiko Schocher.

Quad mode, including 4-byte Quad Page Program (34h), has been tested successfully on hardware. The updated datasheet provided by XMC confirms support for command 34h and will be made available on their website in a future update.

 drivers/mtd/spi/spi-nor-ids.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/spi-nor-ids.c +1 -0
index fce22300b61..7332949eefc 100644
@@ -684,6 +684,7 @@ const struct flash_info spi_nor_ids[] = {
 	{ INFO("XM25QH512D", 0x204020, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("XM25QU512C", 0x204120, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 	{ INFO("XM25QH01D", 0x204021, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+	{ INFO("XM25QU01D", 0x204121, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 #endif
 #ifdef CONFIG_SPI_FLASH_XTX
 	/* XTX Technology Limited */
Signature · 1 line
2.55.0.windows.4