Skip to contentSkip to conversation

How does an SPI NOR handle a single byte write in Octal DTR mode?

DISCUSSION [email protected] 3 participants 4 messages Dec 20, 2021 – Dec 21, 2021 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

We're trying to understand how flashes handle single byte writes in Octal DTR mode, and since we haven't found this info in the datasheets that we read, you're our only hope. Can you shed some light and let us now:
1/ Do the flashes ignore the second byte in Octal DTR mode? Are we forced to first read the byte that we want to update together with the second byte, so that when writing in Octal DTR mode to write the 2nd byte that we've just read, so that we don't change its value?
2/ Can reads or writes start at an odd address in 8D-8D-8D mode? Pratyush proposed something at:
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=246518
Are the assumptions correct in the patch set?

Feel free to forward this to anyone interested. Thanks. ta
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#1 lore raw

Hi Tudor,

In case of Infineon(Cypress) S28 devices, it can be done by de-asserting chip select before clock falling (not sure typical controllers support this). That means the device can take odd address in 8D-8D-8D mode.

Thanks,
Takahiro

Quoted 15 lines · On 12/20/2021 6:36 PM, [email protected] wrote:

Hello,

We're trying to understand how flashes handle single byte writes in Octal DTR mode, and since we haven't found this info in the datasheets that we read, you're our only hope. Can you shed some light and let us now:
1/ Do the flashes ignore the second byte in Octal DTR mode? Are we forced to first read the byte that we want to update together with the second byte, so that when writing in Octal DTR mode to write the 2nd byte that we've just read, so that we don't change its value?
2/ Can reads or writes start at an odd address in 8D-8D-8D mode? Pratyush proposed something at:
https://patchwork.ozlabs.org/project/linux-mtd/list/?series=246518
Are the assumptions correct in the patch set?

Quoted 6 lines

Feel free to forward this to anyone interested. Thanks. ta
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#2 lore raw

Hi,

Am 2021-12-20 11:32, schrieb Takahiro Kuwano:

Quoted 3 lines

In case of Infineon(Cypress) S28 devices, it can be done by de-asserting chip select before clock falling (not sure typical controllers support this). That means the device can take odd address in 8D-8D-8D mode.

Ahh nice. FWIW, I had a quick look at the FlexSPI controller found on the NXP LS1028A, it doesn't seem to support deasserting the CS after half a clock cycle, though.

-michael

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#3 lore raw

Hi,

I need to correct my previous statement.

Quoted 5 lines · Michael Walle

Hi,

Am 2021-12-20 11:32, schrieb Takahiro Kuwano:

Quoted 2 lines

In case of Infineon(Cypress) S28 devices, it can be done by de-asserting chip select before clock falling (not sure typical controllers support this).

This is true for single-byte register write op.

Quoted 1 line
Quoted 1 line

That means the device can take odd address in 8D-8D-8D mode.

For page program op, the S28 in 8D-8D-8D mode only supports programming multiples of 2-bytes and the address must start at an even address.

Quoted 6 lines

Ahh nice. FWIW, I had a quick look at the FlexSPI controller found on the NXP LS1028A, it doesn't seem to support deasserting the CS after half a clock cycle, though.

-michael

Thanks,
Takahiro

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/