1 From b518bb159032aac33503fd4cf98706dc84cc1266 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
3 Date: Thu, 31 Aug 2017 01:06:37 +0200
4 Subject: [PATCH] arm64: allwinner: a64: add SPI nodes
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 The A64 SPI controllers are register compatible to the h3/h5 SPI
12 The A64 has two SPI controllers, each with a single chip select.
13 The handles for the DMA channels (23/24 for SPI0/SPI1) are omitted,
14 as the A64 DMA support is currently missing.
16 Signed-off-by: Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
17 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
19 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 41 +++++++++++++++++++
20 1 file changed, 41 insertions(+)
22 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
23 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
25 drive-strength = <40>;
29 + pins = "PC0", "PC1", "PC2", "PC3";
34 + pins = "PD0", "PD1", "PD2", "PD3";
38 uart0_pins_a: uart0@0 {
46 + spi0: spi@01c68000 {
47 + compatible = "allwinner,sun8i-h3-spi";
48 + reg = <0x01c68000 0x1000>;
49 + interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
50 + clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
51 + clock-names = "ahb", "mod";
52 + pinctrl-names = "default";
53 + pinctrl-0 = <&spi0_pins>;
54 + resets = <&ccu RST_BUS_SPI0>;
55 + status = "disabled";
57 + #address-cells = <1>;
61 + spi1: spi@01c69000 {
62 + compatible = "allwinner,sun8i-h3-spi";
63 + reg = <0x01c69000 0x1000>;
64 + interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
65 + clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
66 + clock-names = "ahb", "mod";
67 + pinctrl-names = "default";
68 + pinctrl-0 = <&spi1_pins>;
69 + resets = <&ccu RST_BUS_SPI1>;
70 + status = "disabled";
72 + #address-cells = <1>;
76 gic: interrupt-controller@1c81000 {
77 compatible = "arm,gic-400";
78 reg = <0x01c81000 0x1000>,