]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-dspi: Add support for LS1028A
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 18 Mar 2020 00:16:01 +0000 (02:16 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 18 Mar 2020 22:45:01 +0000 (22:45 +0000)
commit3806199a381ddda62d409c8f29fb3d6c2f9682fa
tree6de060b63092cbf4720e72c760cb0ca221465a16
parenta87618936635557aef01983fcd0c1ea14c8c5436
spi: spi-fsl-dspi: Add support for LS1028A

This is similar to the DSPI instantiation on LS1028A, except that:
 - The A-011218 erratum has been fixed, so DMA works
 - The endianness is different, which has implications on XSPI mode

Some benchmarking with the following command:

spidev_test --device /dev/spidev2.0 --bpw 8 --size 256 --cpha --iter 10000000 --speed 20000000

shows that in DMA mode, it can achieve around 2400 kbps, and in XSPI
mode, the same command goes up to 4700 kbps. This is somewhat to be
expected, since the DMA buffer size is extremely small at 8 bytes, the
winner becomes whomever can prepare the buffers for transmission
quicker, and DMA mode has higher overhead there. So XSPI FIFO mode has
been chosen as the operating mode for this chip.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20200318001603.9650-11-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c