]> 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)
commit07ad6819ea0a355e68517b13df740b42c7dc1a30
tree6de060b63092cbf4720e72c760cb0ca221465a16
parent10a4bd1377693cb6907b7b30d09489315c9f7dc8
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