[PATCH] mtd: spi-nor: Add GigaDevice GD25LQ16 support

Takahiro.Kuwano at infineon.com Takahiro.Kuwano at infineon.com
Fri Jun 12 11:51:52 CEST 2026


Hi Marek,

> 
> From: Alexander Koch <akoch at initse.com>
> 
> Add IDs for GigaDevice GD25LQ16 SPI NOR.
> 
> Signed-off-by: Alexander Koch <akoch at initse.com>
> Signed-off-by: Marek Vasut <marex at nabladev.com>
> ---
> Cc: Alexander Koch <akoch at initse.com>
> Cc: David Lechner <dlechner at baylibre.com>
> Cc: Flaviu Nistor <flaviu.nistor at gmail.com>
> Cc: Miquel Raynal <miquel.raynal at bootlin.com>
> Cc: Takahiro Kuwano <takahiro.kuwano at infineon.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Tudor Ambarus <tudor.ambarus at linaro.org>
> Cc: Vignesh R <vigneshr at ti.com>
> Cc: u-boot at lists.denx.de
> ---
>  drivers/mtd/spi/spi-nor-ids.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c
> index c0fa98424aa..d3a24b51daf 100644
> --- a/drivers/mtd/spi/spi-nor-ids.c
> +++ b/drivers/mtd/spi/spi-nor-ids.c
> @@ -117,6 +117,11 @@ const struct flash_info spi_nor_ids[] = {
>                         SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
>                         SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
>         },
> +       {
> +               INFO("gd25lq16", 0xc86015, 0, 64 * 1024, 32,
> +                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
> +                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)

I could find a datasheet of GD25LQ16E that mentions the same ID (C8 60 15).
https://www.mouser.com/datasheet/2/870/gd25lq16e_datasheet_v1_2_20210108-2399660.pdf?srsltid=AfmBOopEr50lYWZuINw4geNljXqWZxHqvrYc-_HyJi7ISbOc_9RRaiC1

This chip has 4 BP bits (BP3..BP0) + TB (BP4).
The u-boot driver doesn't support 4-bit BP yet so locking feature shouldn't
work as expected.

> +       },
>         {
>                 INFO("gd25q32", 0xc84016, 0, 64 * 1024,  64,
>                         SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
> --
> 2.53.0



More information about the U-Boot mailing list