]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: cadence: Add Marvell xfer operation support
authorWitold Sadowski <wsadowski@marvell.com>
Wed, 24 Jul 2024 15:47:36 +0000 (08:47 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 29 Jul 2024 00:19:29 +0000 (01:19 +0100)
commit931e389ded0f1411cbf07ad50074dc2bcd49e1a8
treeca52cea5cd683bae33e56a4efc9c92fb4849c969
parentfa7279acef673f17550202d662f592672be26247
spi: cadence: Add Marvell xfer operation support

Marvell Xfer overlay extends xSPI capabilities to support non-memory SPI
operations. The Marvell overlay, combined with a generic command, allows
for full-duplex SPI transactions. It also enables transactions with
undetermined lengths using the cs_hold parameter and the ability to
extend CS signal assertion, even if the xSPI block requests CS signal
de-assertion.
Marvell overlay is using part of xSPI for writing data into device, and
additional hardware block to read data from the device. To do that xSPI
will trigger 1 byte generic command followed by data sequence. In same
time overlay block will monitor MISO pin to read data from the device.
Due to that SDMA data start will be shifted by 1 byte.

Signed-off-by: Witold Sadowski <wsadowski@marvell.com>
Link: https://patch.msgid.link/20240724154739.582367-7-wsadowski@marvell.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-xspi.c