public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Marvell NFC timings on CN9130
@ 2023-05-16  4:46 Chris Packham
  2023-05-16 17:25 ` Miquel Raynal
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Packham @ 2023-05-16  4:46 UTC (permalink / raw)
  To: Miquel Raynal, Thomas Petazzoni
  Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org

Hi Miquel, Thomas,

A hardware colleague reported a concern to me about a new design we have 
using the Marvell CN9130 SoC (which I think was called Armada-8K before 
they rebranded).

Basically their concern is that the tWC timing they observe is faster 
(~18ns) than the documented minimum in the hardware datasheet for the 
CN9130 (25ns). Aside from not meeting the datasheet spec we've not 
observed any other issue (yet).

I notice in the marvell_nand.c driver that marvell_nfc_init() sets the 
NAND Clock Frequency Select bit (0xF2440700:0) to 1 which runs according 
to the datasheet the NAND flash at 400MHz . But the calculations in 
marvell_nfc_setup_interface() use the value from 
clk_get_rate(nfc->core_clk) which is still 250MHz so I'm wondering if 
maybe the fact that the NAND flash is being run faster is having an 
impact on timings that are calculated around the core_clk frequency.

Do you think that the timings calculations should take the NAND Clock 
Frequency Select setting into account?

Thanks,
Chris

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-22  9:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-16  4:46 Marvell NFC timings on CN9130 Chris Packham
2023-05-16 17:25 ` Miquel Raynal
2023-05-17  2:22   ` Chris Packham
2023-05-21 22:53     ` Chris Packham
2023-05-22  4:53       ` Chris Packham
2023-05-22  9:03         ` Miquel Raynal
2023-05-22  8:54       ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox