linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ECSPI Slave on i.M8M Mini with DMA
@ 2021-06-18 16:58 Adam Ford
  2021-06-30  9:34 ` Peng Fan
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Ford @ 2021-06-18 16:58 UTC (permalink / raw)
  To: linux-spi, NXP Linux Team; +Cc: Charles Stevens

To the NXP team,

I noticed the spi-imx driver has a function called spi_imx_can_dma()
which returns false if the SPI is configured as a slave, so the dma
cannot be used in slave mode.

Section 10.1.2.7 "DMA" of the The 8MM Ref manual, Rev 3, shows there
are a few conditions that can trigger the DMA.  Of them, two are
RXFIFO data request and RXFIFO full.  The block diagram in that
section shows it can retrieve data with DMA

However, in section 10.1.4 "Applications" of the same document, it
shows the optional DMA configurations are only in the SPI master
configuration and not the SPI slave configuration.

The ECSPIx_DMAREG documentation (section 10.1.5.6) states "The ECSPI
sends out DMA requests when the appropriate FIFO conditions are
matched." Unfortunately it doesn't explicitly state whether that's
only for master or available in either master or slave mode.

Can someone tell me if DMA is available when SPI is configured as a slave?

thank you,

adam

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

end of thread, other threads:[~2021-07-05  7:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 16:58 ECSPI Slave on i.M8M Mini with DMA Adam Ford
2021-06-30  9:34 ` Peng Fan
2021-07-05  7:16   ` Clark Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).