Skip to content

sunxi: A523: Add SPI support

Andre Przywara linux-sunxi u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: sunxi: add support for A523 SPI controllerdrivers/spi/spi-sunxi.c+4 -00 replies
2/5sunxi: spl: spi: Clean up SPI0 pinmux settingarch/arm/mach-sunxi/spl_spi_sunxi.c+18 -251 reply
3/5sunxi: spl: spi: Add support for Allwinner A523arch/arm/mach-sunxi/spl_spi_sunxi.c+4 -10 replies
4/5sunxi: configs: Radxa Cubie A5E: enable SPIconfigs/radxa-cubie-a5e_defconfig+5 -10 replies
5/5sunxi: configs: OrangePi 4A: enable SPIconfigs/orangepi_4a_defconfig+4 -00 replies

Reviews trailers per patch

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

PatchJernej Skrabec
1/5A-b
2/5R-b
3/5R-b
4/5A-b
5/5A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] sunxi: A523: Add SPI support

Version 2 of this SPI support series just fixes the pinmux refactoring to sort the sun5i generation correctly, plus adding the tags thanks to the diligent review from Jernej, many thanks for that!

======================
This series adds SPI support to the A523 family of SoCs. The SPI controller is very similar to the previous generation, to a degree where we don't need actual code changes, but just to add the new DT compatible string to the driver (patch 1/5).
Patch 3/5 adds support for SPL SPI booting, again no real driver changes, just adding the required pinmux settings for the A523. To make this easier, patch 2/5 reworks the SPI pinmux setting. That doesn't look as pretty as I hoped for, but is still better than what we have now. The last two patches enable SPI and SPI booting on two boards with NOR flash.

I could successfully boot U-Boot from SPI on the Radxa A5E with that. The OrangePi 4A also has a NOR SPI, but I couldn't test this, as I don't have that board.

Please have a look and test!

Cheers,
Andre

Changelog v1 .. v2:
- fix sun5i pinmux assignment
- add Reviewed-by: tags

Andre Przywara (5):
spi: sunxi: add support for A523 SPI controller
sunxi: spl: spi: Clean up SPI0 pinmux setting
sunxi: spl: spi: Add support for Allwinner A523
sunxi: configs: Radxa Cubie A5E: enable SPI
sunxi: configs: OrangePi 4A: enable SPI

 arch/arm/mach-sunxi/spl_spi_sunxi.c | 48 +++++++++++++----------------
 configs/orangepi_4a_defconfig       |  4 +++
 configs/radxa-cubie-a5e_defconfig   |  6 +++-
 drivers/spi/spi-sunxi.c             |  4 +++
 4 files changed, 35 insertions(+), 27 deletions(-)
Signature · 1 line
2.46.4