From: <Takahiro.Kuwano@infineon.com>
To: <weijie.gao@mediatek.com>, <u-boot@lists.denx.de>
Cc: <GSS_MTK_Uboot_upstream@mediatek.com>, <trini@konsulko.com>,
<vigneshr@ti.com>, <marek.vasut+renesas@mailbox.org>,
<tudor.ambarus@linaro.org>, <jeyu@issi.com>,
<christoph.reiter@evk.biz>, <miquel.raynal@bootlin.com>,
<yangshiji66@outlook.com>, <bernhard.messerklinger@at.abb.com>,
<vaishnav.a@ti.com>, <prasad.kummari@amd.com>
Subject: RE: [PATCH v5 1/7] mtd: spi-nor-ids: Correct flash flags for ESMT/EON flashes
Date: Fri, 12 Jun 2026 07:57:08 +0000 [thread overview]
Message-ID: <c2c8f27ffce4428cb3637eeaec973785@infineon.com> (raw)
In-Reply-To: <64ce1a920dc067717de2b39d2e7a5098e6853aab.1781164951.git.weijie.gao@mediatek.com>
Hi,
>
> All currently supported ESMT/EON flashes supports 4KB sector and dual/quad
> read.
>
> Link: https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/EN25Q80B.pdf
> Link: https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/EN25QH128A%20(2TC).pdf
> Link: https://www.esmt.com.tw/upload/pdf/ESMT/datasheets/EN25S64A(2SC).pdf
> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> ---
> v5: not changed
> v3-v4: updated commit message
> v2: not changed
> ---
> drivers/mtd/spi/spi-nor-ids.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
> index c0fa98424aa..7d96adab4fd 100644
> --- a/drivers/mtd/spi/spi-nor-ids.c
> +++ b/drivers/mtd/spi/spi-nor-ids.c
> @@ -90,12 +90,12 @@ const struct flash_info spi_nor_ids[] = {
> #endif
> #ifdef CONFIG_SPI_FLASH_EON /* EON */
> /* EON -- en25xxx */
> - { INFO("en25q80b", 0x1c3014, 0, 64 * 1024, 16, SECT_4K) },
> - { INFO("en25q32b", 0x1c3016, 0, 64 * 1024, 64, 0) },
> - { INFO("en25q64", 0x1c3017, 0, 64 * 1024, 128, SECT_4K) },
> - { INFO("en25q128b", 0x1c3018, 0, 64 * 1024, 256, 0) },
> - { INFO("en25qh128", 0x1c7018, 0, 64 * 1024, 256, 0) },
> - { INFO("en25s64", 0x1c3817, 0, 64 * 1024, 128, SECT_4K) },
> + { INFO("en25q80b", 0x1c3014, 0, 64 * 1024, 16, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
> + { INFO("en25q32b", 0x1c3016, 0, 64 * 1024, 64, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
> + { INFO("en25q64", 0x1c3017, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
> + { INFO("en25q128b", 0x1c3018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
> + { INFO("en25qh128", 0x1c7018, 0, 64 * 1024, 256, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
> + { INFO("en25s64", 0x1c3817, 0, 64 * 1024, 128, SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
If SPI_NOR_QUAD_READ is given, the driver assumes the chip supports
Quad Output Read (1-1-4, 6Bh) and Quad Page Program (1-1-4, 32h).
Except en25qh128, those chips don't support 1-1-4 read/program per datasheets.
They do support Quad I/O Read (1-4-4, EBh). If you want to enable it,
write fixup otherwise just drop the SPI_NOR_QUAD_READ flag, please.
Thanks,
Takahiro
next prev parent reply other threads:[~2026-06-12 12:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-11 8:12 [PATCH v5 0/7] Fix and add some spi-nor flash parts (v5) Weijie Gao
2026-06-11 8:13 ` [PATCH v5 1/7] mtd: spi-nor-ids: Correct flash flags for ESMT/EON flashes Weijie Gao
2026-06-12 7:57 ` Takahiro.Kuwano [this message]
2026-06-15 3:00 ` Weijie Gao
2026-06-11 8:13 ` [PATCH v5 2/7] mtd: spi-nor-ids: Add support for ESMT/EON EN25QX128A/EN25QH256/EN25QX256A Weijie Gao
2026-06-12 7:58 ` Takahiro.Kuwano
2026-06-11 8:13 ` [PATCH v5 3/7] mtd: spi-nor-ids: Remove SPI_NOR_HAS_LOCK flag from GigaDevice GD25B256 Weijie Gao
2026-06-12 8:41 ` Takahiro.Kuwano
2026-06-11 8:13 ` [PATCH v5 4/7] mtd: spi-nor-ids: Add 4K page support for Macronix MX25L25635E Weijie Gao
2026-06-11 8:13 ` [PATCH v5 5/7] mtd: spi-nor-ids: Fix Winbond W25Q256JW and remove W25Q256FW Weijie Gao
2026-06-11 8:13 ` [PATCH v5 6/7] mtd: spi-nor-ids: Reorder winbond parts with part families Weijie Gao
2026-06-11 8:13 ` [PATCH v5 7/7] mtd: spi-nor-ids: Add support for Winbond W25Q256JV-M/W25Q512JV-M Weijie Gao
2026-06-12 9:00 ` Takahiro.Kuwano
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=c2c8f27ffce4428cb3637eeaec973785@infineon.com \
--to=takahiro.kuwano@infineon.com \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=bernhard.messerklinger@at.abb.com \
--cc=christoph.reiter@evk.biz \
--cc=jeyu@issi.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=miquel.raynal@bootlin.com \
--cc=prasad.kummari@amd.com \
--cc=trini@konsulko.com \
--cc=tudor.ambarus@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=vaishnav.a@ti.com \
--cc=vigneshr@ti.com \
--cc=weijie.gao@mediatek.com \
--cc=yangshiji66@outlook.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox