Skip to contentSkip to conversation

mtd: spi-nor: Add support for Dosilicon DS25Q4CB/DS25Q4DN

PATCH In review Ssunk 2 participants 6 messages Aug 27, 2025 – Jan 29 Memory technology devices (MTD)

lore
Share & tools
lore

Ssunk

author
#0 lore raw

PATCH 1/1 mtd: spi-nor: Add support for Dosilicon DS25Q4CB/DS25Q4DN

Add support for DS25Q4CB and DS25Q4DN

---
 drivers/mtd/spi/Kconfig       | 5 +++++
 drivers/mtd/spi/spi-nor-ids.c | 7 +++++++
 2 files changed, 12 insertions(+)
drivers/mtd/spi/Kconfig +5 -0
index ca60a425ba3..f32a7b015cb 100644
@@ -228,6 +228,11 @@ config SPI_FLASH_XMC
 	  Add support for various XMC (Wuhan Xinxin Semiconductor
 	  Manufacturing Corp.) SPI flash chips (XM25xxx)
 
+config SPI_FLASH_DOSILICON
+	bool "Dosilocon SPI flash support"
+	help
+	  Add support for various Dosilocon SPI flash chips (DS25xxx)
+
 config SPI_FLASH_XTX
 	bool "XTX SPI flash support"
 	help
drivers/mtd/spi/spi-nor-ids.c +7 -0
index 0383175beb5..c6348d60f89 100644
@@ -648,6 +648,13 @@ const struct flash_info spi_nor_ids[] = {
 	/* Zbit Semiconductor Inc. */
 	{ INFO("zb25vq128", 0x5e4018, 0, 64 * 1024, 256,
 	       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+#endif
+#ifdef CONFIG_SPI_FLASH_DOSILICON
+	/* Dosilicon Co., Ltd*/
+	{ INFO("DS25Q4CB", 0xe5301a, 0, 64 * 1024, 1024, SECT_4K | SPI_NOR_DUAL_READ |
+	       SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
+	{ INFO("DS25Q4DN", 0xe5301b, 0, 64 * 1024, 2048, SECT_4K | SPI_NOR_DUAL_READ |
+           SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
 #endif
 	{ },
 };
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v3] spi-nor: add support for XM25QH01D

In reply to Ssunk
Quoted 4 lines · Ssunk

Hi all,

Just a gentle ping on this patch below. Please let me know if any further changes are needed.

Adjusting the CC list slightly, this is really up to the SPI NOR maintainers.

#5 lore raw
In reply to Ssunk
Quoted 4 lines · Ssunk

Hi all,

Gentle ping on this patch.
Please let me know if there are any comments or changes needed.

Adjusting the CC list slightly, this is really up to the SPI NOR maintainers.

author
#2 lore raw

Re: [PATCH v3] spi-nor: add support for XM25QH01D

In reply to Ssunk

Hi all,

Just a gentle ping on this patch below. Please let me know if any further changes are needed.

Thanks,
Ssunk

author
#4 lore raw
In reply to Ssunk

Hi all,

Gentle ping on this patch.
Please let me know if there are any comments or changes needed.

Thanks,
Ssunk