arm64: dts: sun50i: H6: Add SPI controllers nodes and pinmuxes
authorAndre Przywara <andre.przywara@arm.com>
Thu, 16 Jan 2020 23:11:46 +0000 (23:11 +0000)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 10 Feb 2020 07:57:41 +0000 (08:57 +0100)
commit30bd02bd634f4a483e965fb41a076e47ea9681ef
tree1423daba95ee40e98afb699a09ace6b5de15b122
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
arm64: dts: sun50i: H6: Add SPI controllers nodes and pinmuxes

The Allwinner H6 SoC contains two SPI controllers similar to the H3/A64,
but with the added capability of 3-wire and 4-wire operation modes.
For now the driver does not support those, but the SPI registers are
fully backwards-compatible, just adding bits and registers which were
formerly reserved. So we can use the existing driver in "legacy" SPI
modes, for instance to access the SPI NOR flash soldered on the PineH64
board.
We use an H6 specific compatible string in addition to the existing H3
string, so when the driver later gains QSPI support, it should work
automatically without any DT changes.

Tested by accessing the SPI flash on a Pine H64 board (SPI0), also
connecting another SPI flash to the SPI1 header pins.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi