Skip to content

sunxi: F1C100s: enable MMC and SPI in U-Boot proper

Andre Przywara linux-sunxi u-boot 1 version Applied

Status from this message: Applied to sunxi/master.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7clk: sunxi: implement clock driver for suniv f1c100sdrivers/clk/sunxi/Kconfig drivers/clk/sunxi/Makefile drivers/clk/sunxi/clk_f1c100s.c+82 -01 reply
2/7spi: sunxi: refactor SPI speed/mode programmingdrivers/spi/spi-sunxi.c+52 -434 replies
3/7spi: sunxi: improve SPI clock calculationdrivers/spi/spi-sunxi.c+7 -40 replies
4/7spi: sunxi: Add support for F1C100s SPI controllerdrivers/spi/spi-sunxi.c+9 -00 replies
5/7sunxi: F1C100s: update DT files from Linuxarch/arm/dts/suniv-f1c100s-licheepi-nano.dts arch/arm/dts/suniv-f1c100s.dtsi+125 -102 replies
6/7Revert "sunxi: f1c100s: Drop SYSRESET to enable reset functionality"configs/licheepi_nano_defconfig+0 -11 reply
7/7sunxi: licheepi_nano: enable SPI flashconfigs/licheepi_nano_defconfig+3 -00 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchSean AndersonJesse Taube
1/7A-b
2/7T-b
3/7
4/7
5/7A-b
6/7
7/7

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/7] sunxi: F1C100s: enable MMC and SPI in U-Boot proper

So far the U-Boot proper support for the Allwinner F1C100 family of SoCs was really limited: we could realistically only deal with FEL booting, as there was no storage or network device acessible from U-Boot proper.

This series enables the MMC and SPI controller, to be able to actually load something from the device. This is made possible by the updates to the devicetree in Linux, which now describes those devices.

The first patch is taken from George's/Yifan's older series, and adds DM_CLK support for the F1C100s. The DM_PINCTRL support was already added with the DM conversion a few weeks back.
Patches 2-4 fix the SPI driver clock setup, and add support for the differing SPI clock on the F1C100.
Patch 5 updates the devicetree files, freshly synced from linux-next. Patch 6 reverts a hack we introduced back then to fix the reset functionality, with the DT update this is now no longer needed. The final patch adds SPI flash support to the Licheepi Nano defconfig, as these boards mostly ship with SPI flash soldered.

Please have a look and test!

Cheers,
Andre

Andre Przywara (6):
spi: sunxi: refactor SPI speed/mode programming
spi: sunxi: improve SPI clock calculation
spi: sunxi: Add support for F1C100s SPI controller
sunxi: F1C100s: update DT files from Linux
Revert "sunxi: f1c100s: Drop SYSRESET to enable reset functionality"
sunxi: licheepi_nano: enable SPI flash

George Hilliard (1):
clk: sunxi: implement clock driver for suniv f1c100s

 arch/arm/dts/suniv-f1c100s-licheepi-nano.dts |  31 ++++++
 arch/arm/dts/suniv-f1c100s.dtsi              | 104 ++++++++++++++++--
 configs/licheepi_nano_defconfig              |   4 +-
 drivers/clk/sunxi/Kconfig                    |   7 ++
 drivers/clk/sunxi/Makefile                   |   1 +
 drivers/clk/sunxi/clk_f1c100s.c              |  74 +++++++++++++
 drivers/spi/spi-sunxi.c                      | 109 +++++++++++--------
 7 files changed, 275 insertions(+), 55 deletions(-)
 create mode 100644 drivers/clk/sunxi/clk_f1c100s.c
Signature · 1 line
2.35.3