All of lore.kernel.org
 help / color / mirror / Atom feed
From: <Tudor.Ambarus@microchip.com>
To: <marex@denx.de>, <u-boot@lists.denx.de>
Cc: <Horatiu.Vultur@microchip.com>, <jagan@amarulasolutions.com>,
	<simon.k.r.goldschmidt@gmail.com>, <sr@denx.de>,
	<vigneshr@ti.com>, <michael@walle.cc>
Subject: Re: [PATCH] mtd: spi-nor-ids: Add Winbond W25Q128JW ID
Date: Wed, 9 Mar 2022 04:33:03 +0000	[thread overview]
Message-ID: <beba1487-2c95-2449-2b4d-6770cf6e5883@microchip.com> (raw)
In-Reply-To: <20220309031826.134803-1-marex@denx.de>

On 3/9/22 05:18, Marek Vasut wrote:

Hi!

> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Add ID for Winbond W25Q128JW device. This is a 128 Mbit QSPI NOR.
> Tested on W25Q128JWPIM part.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Horatiu Vultur <horatiu.vultur@microchip.com>
> Cc: Jagan Teki <jagan@amarulasolutions.com>
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
> Cc: Stefan Roese <sr@denx.de>
> Cc: Vignesh R <vigneshr@ti.com>
> ---
>  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 b551ebd75ef..e2d09fc747d 100644
> --- a/drivers/mtd/spi/spi-nor-ids.c
> +++ b/drivers/mtd/spi/spi-nor-ids.c
> @@ -345,6 +345,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("w25q128jw", 0xef8018, 0, 64 * 1024, 256,

I'm glad I can discuss with you about the name of these winbond flashes,
you can help with an advice. In linux we name this flash "w25q128jwm",
but maybe we should change it.

Winbond names this flash "W25Q128JW_DTR", you can find the name on the
top right of each page from [1].

What I propose:
1/ according to [1] W25Q128JW_IM/JM is W25Q128JW_DTR, let's use "-dtr"
   for the M flavor.
2/ according to [2] W25Q128JW has two flavors: W25Q128JW-IQ/JQ and
   W25Q128JW-IM/JM*. Since W25Q128JW_IM/JM is called W25Q128JW_DTR, let's
   use just "W25Q128JW" for W25Q128JW-IQ/JQ, as winbond uses too.

Looking at [3], I see that W25Q128JV and W25Q128FV use the same flash ID,
I wonder what's the difference between them. I made a proposal in linux on
how to handle flash collisions, a v5 will follow.

Cheers,
ta
[1] https://www.winbond.com/resource-files/W25Q128JW_DTR%20RevF1%2005212021.pdf
[2] https://www.winbond.com/resource-files/W25Q128JW_RevG_07292021%20Plus.pdf
[3] https://www.winbond.com/hq/product/code-storage-flash-memory/serial-nor-flash/?__locale=en&selected=128Mb#Density

> +                       SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
> +                       SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
> +       },
>         {
>                 INFO("w25q256fw", 0xef6019, 0, 64 * 1024, 512,
>                         SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
> --
> 2.34.1
> 


  reply	other threads:[~2022-03-09  4:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-09  3:18 [PATCH] mtd: spi-nor-ids: Add Winbond W25Q128JW ID Marek Vasut
2022-03-09  4:33 ` Tudor.Ambarus [this message]
2022-03-16  1:29   ` Marek Vasut
2022-03-16  3:55     ` Tudor.Ambarus
2022-03-16 10:07       ` Marek Vasut
2022-04-07 19:20 ` 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=beba1487-2c95-2449-2b4d-6770cf6e5883@microchip.com \
    --to=tudor.ambarus@microchip.com \
    --cc=Horatiu.Vultur@microchip.com \
    --cc=jagan@amarulasolutions.com \
    --cc=marex@denx.de \
    --cc=michael@walle.cc \
    --cc=simon.k.r.goldschmidt@gmail.com \
    --cc=sr@denx.de \
    --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.