Skip to content

Support H3 SPI controller

Milo Kim linux-arm-kernel linux-devicetree linux-spi lkml 2 versions – Applied

Status from this message: Applied both, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesApplied
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

Include DTS patches
Use of_device_get_match_data() helper to get device specific data Fix build warning of 64bit CPU architecture
(warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast])

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4ARM: dts: sun8i: Add SPI pinctrl node in H3arch/arm/boot/dts/sun8i-h3.dtsi+14 -00 replies
2/4ARM: dts: sun8i: Add SPI controller node in H3arch/arm/boot/dts/sun8i-h3.dtsi+32 -01 reply
3/4spi: sun6i: Add binding for Allwinner H3 SPI controllerDocumentation/devicetree/bindings/spi/spi-sun6i.txt+23 -21 reply
4/4spi: sun6i: Support Allwinner H3 SPI controllerdrivers/spi/spi-sun6i.c+13 -52 replies

Reviews trailers per patch

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

PatchMaxime RipardRob Herring
1/4
2/4
3/4A-b A-b
4/4A-b A-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/4] Support H3 SPI controller

Allwinner H3 SPI controller has same architecture as A31. So most configuration is identical except one thing - FIFO capacity.

                         A31    H3

------------------------------------
Number of controllers 4 2
Number of FIFO depth 128 64
Transfer bits 8 8

Register maps are sharable, so sun6i SPI driver is reusable with device configuration.

Tested on Nano Pi M1 and SPI slave device is TI LP8860.

v2:
Include DTS patches
Use of_device_get_match_data() helper to get device specific data Fix build warning of 64bit CPU architecture
(warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast])

Milo Kim (4):
ARM: dts: sun8i: Add SPI pinctrl node in H3
ARM: dts: sun8i: Add SPI controller node in H3
spi: sun6i: Add binding for Allwinner H3 SPI controller
spi: sun6i: Support Allwinner H3 SPI controller

 .../devicetree/bindings/spi/spi-sun6i.txt          | 25 +++++++++++-
 arch/arm/boot/dts/sun8i-h3.dtsi                    | 46 ++++++++++++++++++++++
 drivers/spi/spi-sun6i.c                            | 18 ++++++---
 3 files changed, 82 insertions(+), 7 deletions(-)
Signature · 1 line
2.9.3