]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-dspi: Provide support for DSPI slave mode operation (Vybryd vf610)
authorLukasz Majewski <lukma@denx.de>
Tue, 5 Feb 2019 22:13:49 +0000 (23:13 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 16:47:38 +0000 (16:47 +0000)
commit87108e49caad6e200babefdf09f4a137ce30a2d8
tree73033703a7ac90aea13252c4cf04a0119f7936b2
parentd3c67810bdf4e49ad145edf3d63d09944c9fb01b
spi: spi-fsl-dspi: Provide support for DSPI slave mode operation (Vybryd vf610)

The NXP's Vybryd vf610 can work as a SPI slave device (the CS and clock
signals are provided by master).

It is possible to specify a single device to work in that mode. As we do
use DMA for transferring data, the RX channel must be prepared for
incoming data.
Moreover, in slave mode we just set a subset of control fields in
configuration registers (CTAR0, PUSHR).

For testing the spidev_test program has been used.
Test script for this patch can be found here:
https://github.com/lmajewski/tests-spi/blob/master/tests/spi/spi_tests.sh

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c