]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit5ce3cc567471891be69a6f51146209560f132b83
tree73033703a7ac90aea13252c4cf04a0119f7936b2
parent473a78a7bbeb7c77b81b596095f59ce4fbbd49dc
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