From: Takahiro Kuwano <tkuw584924@gmail.com>
To: Pratyush Yadav <pratyush@kernel.org>
Cc: u-boot@lists.denx.de, jagan@amarulasolutions.com,
vigneshr@ti.com, tudor.ambarus@linaro.org, d-gole@ti.com,
Bacem.Daassi@infineon.com,
Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Subject: Re: [PATCH v2 3/3] mtd: spi-nor-id: Add S25FS064S, S25FS128S, S25FS256S IDs
Date: Wed, 10 Apr 2024 11:22:40 +0900 [thread overview]
Message-ID: <2d6d938d-0ba7-4ea8-b325-a698d30e8dea@gmail.com> (raw)
In-Reply-To: <mafs0edbe92fo.fsf@kernel.org>
On 4/9/2024 8:54 PM, Pratyush Yadav wrote:
> On Tue, Apr 09 2024, tkuw584924@gmail.com wrote:
>
>> From: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
>>
>> The S25FS064S, S25FS128S, and S25FS256S are the same family of SPI NOR
>> Flash devices with S25FS512S. Some difference depending on the device
>> densities are taken care in post SFDP fixup.
>>
>> Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
>> ---
>> drivers/mtd/spi/spi-nor-core.c | 24 ++++++++++++++++++------
>> drivers/mtd/spi/spi-nor-ids.c | 3 +++
>> 2 files changed, 21 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c
>> index 9620852817..9b81b31e8e 100644
>> --- a/drivers/mtd/spi/spi-nor-core.c
>> +++ b/drivers/mtd/spi/spi-nor-core.c
>> @@ -3356,12 +3356,24 @@ static int s25fs_s_post_bfpt_fixup(struct spi_nor *nor,
>> static void s25fs_s_post_sfdp_fixup(struct spi_nor *nor,
>> struct spi_nor_flash_parameter *params)
>> {
>> - /* READ_1_1_2 is not supported */
>> - params->hwcaps.mask &= ~SNOR_HWCAPS_READ_1_1_2;
>> - /* READ_1_1_4 is not supported */
>> - params->hwcaps.mask &= ~SNOR_HWCAPS_READ_1_1_4;
>> - /* PP_1_1_4 is not supported */
>> - params->hwcaps.mask &= ~SNOR_HWCAPS_PP_1_1_4;
>> + /*
>> + * The S25FS064S(8MB) supports 1-1-2 and 1-1-4 commands, but params for
>> + * read ops in SFDP are wrong. The other density parts do not support
>> + * 1-1-2 and 1-1-4 commands.
>> + */
>> + if (params->size == SZ_8M) {
>> + spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_1_1_2],
>> + 0, 8, SPINOR_OP_READ_1_1_2,
>> + SNOR_PROTO_1_1_2);
>> + spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_1_1_4],
>> + 0, 8, SPINOR_OP_READ_1_1_4,
>> + SNOR_PROTO_1_1_4);
>> + } else {
>> + params->hwcaps.mask &= ~SNOR_HWCAPS_READ_1_1_2;
>> + params->hwcaps.mask &= ~SNOR_HWCAPS_READ_1_1_4;
>> + params->hwcaps.mask &= ~SNOR_HWCAPS_PP_1_1_4;
>> + }
>> +
>
> Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
>
> BTW (not directly related to this patch), I looked at the datasheet you
> provided in the cover letter and it says dual and quad I/O is supported
> for the 16 MB and 32 MB parts as well. Why do you mask them out here
> then?
>
In the datasheet,
1-2-2 and 1-4-4 read are named as dual and quad I/O read.
1-1-2 and 1-1-4 read are named as dual and quad output read.
Dual and quad I/O read (1-2-2 and 1-4-4) is supported in all S25FS-S parts.
Dual and quad output read (1-1-2 and 1-1-4) is only supported in S25FS064S.
Thank you for reviewing!
Takahiro
prev parent reply other threads:[~2024-04-10 2:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-09 6:20 [PATCH v2 0/3] mtd: spi-nor: Add support for S25FS-S family tkuw584924
2024-04-09 6:20 ` [PATCH v2 1/3] mtd: spi-nore-core: Fix 4KB erase opcode for s25fs-s tkuw584924
2024-04-09 9:46 ` Pratyush Yadav
2024-04-10 18:16 ` Dhruva Gole
2024-04-09 6:20 ` [PATCH v2 2/3] mtd: spi-nor-id: Use INFO6 macro for S25FL-S tkuw584924
2024-04-09 10:03 ` Pratyush Yadav
2024-04-10 18:13 ` Dhruva Gole
2024-04-09 6:20 ` [PATCH v2 3/3] mtd: spi-nor-id: Add S25FS064S, S25FS128S, S25FS256S IDs tkuw584924
2024-04-09 11:54 ` Pratyush Yadav
2024-04-10 2:22 ` Takahiro Kuwano [this message]
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=2d6d938d-0ba7-4ea8-b325-a698d30e8dea@gmail.com \
--to=tkuw584924@gmail.com \
--cc=Bacem.Daassi@infineon.com \
--cc=Takahiro.Kuwano@infineon.com \
--cc=d-gole@ti.com \
--cc=jagan@amarulasolutions.com \
--cc=pratyush@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox