Skip to content

spi: Add Allwinner A31 SPI driver

Jagan Teki u-boot 4 versions – New

Get series with b4
b4 am CAMty3ZAb-Agp+1hY88+=-QGt+9WZ0PGZF6GvL-ochTthnSrY4A@mail.gmail.com

Versions newest first · linked by author and title

  1. v3 Latest posting 2/20 of 9 patches 0 repliesNew
  2. v3 posting 1/29 patches 0 repliesSuperseded
  3. v28 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v110 patches0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

None of the 9 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 0/9] spi: Add Allwinner A31 SPI driver
Quoted 28 lines · Jagan Teki

This series add support for Allwinner A31 SPI controller driver.

Fixed and improved conde when compared to previous series[1]

Changes for v3:
- update commit message for "poll rxfifo" patch
- change SPI_CS argument as SPI_CS(priv, cs)
- keep 'unsigned long' for register set, since using u16 encounter type-casting issues with writel and readl calls
- change 'unsigned long' to u32 for register bits
- add detailed commit message for 'spi: sun4i: Add CLK support'
- use has_soft_reset and has_burst_ctl driver variant flags for A31 specific changes
- add allwinner,sun6i-a31-spi compatible support
- add fifo_depth support for A31
- rename sun4i_spi to spi-sunxi.c
- update spi-sunxi.c Kconfig entry
Changes for v2:
- use fifo_sta instead ctl reg in readl_poll
- use ">=" instead of negotiation in readl_poll condition
- use SPI_REG, SPI_BIT, SPI_CS macro for code improvement
- use compatible check for A31 register enablement
- add allwinner,sun6i-a31-spi compatible
- exclude driver enable patches, since it has SPI kconfig dependencies.

[1] https://patchwork.ozlabs.org/cover/1041901/

Quoted 10 lines

Jagan Teki (9):
spi: sun4i: Poll for rxfifo to be filled up
clk: sunxi: Implement SPI clocks, resets
spi: sun4i: Simplify reg writes using set/clrbits_le32
spi: sun4i: Access registers and bits via enum offsets
spi: sun4i: Support fifo_depth via drvdata
spi: sun4i: Add CLK support
spi: sun4: Add A31 spi controller support
spi: sun4i: Driver cleanup
spi: Rename sun4i_spi.c into spi-sunxi.c

Applied to u-boot-spi/master