From: Ssunk <ssunkkan@gmail.com>
To: u-boot@lists.denx.de
Cc: jagan@amarulasolutions.com, vigneshr@ti.com,
tudor.ambarus@linaro.org, trini@konsulko.com,
Takahiro.Kuwano@infineon.com, marek.vasut+renesas@mailbox.org,
pratyush@kernel.org, Ssunk <ssunkkan@gmail.com>
Subject: [PATCH] mtd: spi-nor: Add support for Dosilicon DS25Q4CB/DS25Q4DN
Date: Wed, 27 Aug 2025 20:24:03 +0800 [thread overview]
Message-ID: <20250827122403.20159-1-ssunkkan@gmail.com> (raw)
Add support for DS25Q4CB and DS25Q4DN
Signed-off-by: Ssunk <ssunkkan@gmail.com>
---
drivers/mtd/spi/Kconfig | 5 +++++
drivers/mtd/spi/spi-nor-ids.c | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
index ca60a425ba3..f32a7b015cb 100644
--- a/drivers/mtd/spi/Kconfig
+++ b/drivers/mtd/spi/Kconfig
@@ -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
diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
index 0383175beb5..c6348d60f89 100644
--- a/drivers/mtd/spi/spi-nor-ids.c
+++ b/drivers/mtd/spi/spi-nor-ids.c
@@ -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
{ },
};
--
2.34.1
next reply other threads:[~2025-08-27 12:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-27 12:24 Ssunk [this message]
2025-11-02 11:20 ` [PATCH] mtd: spi-nor: Add support for Dosilicon DS25Q4CB/DS25Q4DN Ssunk
2026-01-29 12:26 ` [PATCH v3] spi-nor: add support for XM25QH01D Ssunk
2026-01-29 13:05 ` Marek Vasut
2026-01-29 12:33 ` [PATCH] mtd: spi-nor: Add support for Dosilicon DS25Q4CB/DS25Q4DN Ssunk
2026-01-29 13:06 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250827122403.20159-1-ssunkkan@gmail.com \
--to=ssunkkan@gmail.com \
--cc=Takahiro.Kuwano@infineon.com \
--cc=jagan@amarulasolutions.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=pratyush@kernel.org \
--cc=trini@konsulko.com \
--cc=tudor.ambarus@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.