Skip to content

spi: meson-spicc: add support for AXG and G12A variants

Neil Armstrong linux-amlogic linux-arm-kernel linux-devicetree linux-spi lkml 1 version Applied

Status from this message: This series was applied to khilman/linux-amlogic.git (refs/heads/for-next).

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9spi: meson-spicc: remove unused variablesdrivers/spi/spi-meson-spicc.c+0 -21 reply
2/9spi: meson-spicc: enhance output enable featuredrivers/spi/spi-meson-spicc.c+51 -21 reply
3/9spi: meson-spicc: add a linear clock divider supportdrivers/spi/Kconfig drivers/spi/spi-meson-spicc.c+165 -401 reply
4/9spi: meson-spicc: support max 80MHz clockdrivers/spi/spi-meson-spicc.c+6 -61 reply
5/9spi: meson-spicc: add min sclk for each compatibledrivers/spi/spi-meson-spicc.c+4 -11 reply
6/9spi: meson-spicc: setup IO line delaydrivers/spi/spi-meson-spicc.c+60 -11 reply
7/9spi: meson-spicc: adapt burst handling for G12A supportdrivers/spi/spi-meson-spicc.c+50 -791 reply
8/9dt-bindings: spi: amlogic,meson-gx-spicc: add Amlogic G12A compatibleDocumentation/devicetree/bindings/spi/amlogic,meson-gx-spicc.yaml+22 -01 reply
9/9spi: meson-spicc: add support for Amlogic G12Adrivers/spi/spi-meson-spicc.c+46 -81 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] spi: meson-spicc: add support for AXG and G12A variants

The SPICC controller in Amlogic AXG & G12A is capable of driving the CLK/MOSI/SS signal lines through the idle state which avoid the signals floating in unexpected state, is capable of using linear clock divider to reach a much fine tuned range of clocks, while the old controller only uses a power of two clock divider, result at a more coarse clock range and finally is capable of running at 80M clock.

The SPICC controller in Amlogic G12A takes the source clock from a specific clock instead of the bus clock and has a different FIFO size and doesn't handle the RX Half interrupt the same way as GXL & AXG variants. Thus the burst management is simplified and takes in account a variable FIFO size.

Now the controller can support frequencies higher than 30MHz, we need the setup the I/O line delays in regard of the SPI clock frequency.

Neil Armstrong (7):
spi: meson-spicc: remove unused variables
spi: meson-spicc: support max 80MHz clock
spi: meson-spicc: add min sclk for each compatible
spi: meson-spicc: setup IO line delay
spi: meson-spicc: adapt burst handling for G12A support
dt-bindings: spi: amlogic,meson-gx-spicc: add Amlogic G12A compatible
spi: meson-spicc: add support for Amlogic G12A

Sunny Luo (2):
spi: meson-spicc: enhance output enable feature
spi: meson-spicc: add a linear clock divider support

 .../bindings/spi/amlogic,meson-gx-spicc.yaml  |  22 +
 drivers/spi/Kconfig                           |   1 +
 drivers/spi/spi-meson-spicc.c                 | 496 +++++++++++++-----
 3 files changed, 392 insertions(+), 127 deletions(-)
Signature · 1 line
2.22.0