Skip to content

arm64: allwinner: a523: Support SPI controllers

Chen-Yu Tsai linux-arm-kernel linux-devicetree linux-spi linux-sunxi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4spi: dt-bindings: sun6i: Add compatibles for A523's SPI controllersDocumentation/devicetree/bindings/spi/allwinner,sun6i-a31-spi.yaml+4 -01 reply
2/4spi: sun6i: Support A523's SPI controllersdrivers/spi/spi-sun6i.c+7 -41 reply
3/4arm64: dts: allwinner: sun55i: Add SPI controllersarch/arm64/boot/dts/allwinner/sun55i-a523.dtsi+94 -01 reply
4/4arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flasharch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts+15 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiJernej Skrabec
1/4A-b
2/4R-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] arm64: allwinner: a523: Support SPI controllers

Hi folks,

This series adds support for the SPI controllers found in the Allwinner A523 SoC family. The SPI controller is almost the same as the ones in previous generations, except that it moved the "RX buffer count" register field to a separate register, and that register now reports the total count for RX buffer and FIFO.

In practice the driver has never cared about the buffer count, but if any implementation were to use it, this counts as a non-backward compatible change.

Also, one of the SPI controllers supports DBI mode, acting as a display interface. There is no infrastructure for DBI interface controllers in the kernel, so only a separate compatible is added for it.

Patch 1 adds compatible strings for the new variants.

Patch 2 adds driver support for the new SPI controller variant.

Patch 3 adds device nodes for the SPI controllers to the dtsi file, along with pinmux settings for spi0 on the PC pins, a common usage for SPI-NOR flashes to boot from.

Patch 4 enables the SPI-NOR flash found on the Radxa Cubie A5E.

Please take a look and try it out.

Thanks
ChenYu

Chen-Yu Tsai (4):
spi: dt-bindings: sun6i: Add compatibles for A523's SPI controllers
spi: sun6i: Support A523's SPI controllers
arm64: dts: allwinner: sun55i: Add SPI controllers
arm64: dts: allwinner: t527: orangepi-4a: Enable SPI-NOR flash

 .../bindings/spi/allwinner,sun6i-a31-spi.yaml |  4 +
 .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 94 +++++++++++++++++++
 .../dts/allwinner/sun55i-t527-orangepi-4a.dts | 15 +++
 drivers/spi/spi-sun6i.c                       | 11 ++-
 4 files changed, 120 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.3