Skip to contentSkip to conversation

arm64: dts: allwinner: sun55i: Fix r-spi DMA

PATCH In review Chen-Yu Tsai 2 participants 3 messages Mar 23 – Mar 24

Subsystems (2)
lore
Share & tools
lore

Chen-Yu Tsai

author maintainer
#0 lore raw

PATCH 1/1 arm64: dts: allwinner: sun55i: Fix r-spi DMA

r-spi has DRQs for both the main and MCU DMA controllers on the A523 SoC family, however it seems it that it is mainly routed to the MCU DMA controller, with no obvious way to change it.

Change the DMA channels of r-spi to the MCU so that it works properly.

Fixes 1bec3bd1f839 ("arm64: dts: allwinner: sun55i: Add SPI controllers")
---
 arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi +1 -1
index 56d4e5862ff4..34d7547a6004 100644
@@ -1018,7 +1018,7 @@ r_spi0: spi@7092000 {
 			interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&r_ccu CLK_BUS_R_SPI>, <&r_ccu CLK_R_SPI>;
 			clock-names = "ahb", "mod";
-			dmas = <&dma 53>, <&dma 53>;
+			dmas = <&mcu_dma 13>, <&mcu_dma 13>;
 			dma-names = "rx", "tx";
 			resets = <&r_ccu RST_BUS_R_SPI>;
 			status = "disabled";
Signature · 1 line
2.47.3
maintainer Acked-by on v1 1/1
#1 lore raw

Dne ponedeljek, 23. marec 2026 ob 18:19:26 Srednjeevropski standardni čas je Chen-Yu Tsai napisal(a):

Quoted 8 lines

r-spi has DRQs for both the main and MCU DMA controllers on the A523 SoC family, however it seems it that it is mainly routed to the MCU DMA controller, with no obvious way to change it.

Change the DMA channels of r-spi to the MCU so that it works properly.

Fixes 1bec3bd1f839 ("arm64: dts: allwinner: sun55i: Add SPI controllers")

Best regards,
Jernej

author maintainer
#2 lore raw
In reply to Chen-Yu Tsai
Quoted 8 lines · Chen-Yu Tsai

r-spi has DRQs for both the main and MCU DMA controllers on the A523 SoC family, however it seems it that it is mainly routed to the MCU DMA controller, with no obvious way to change it.

Change the DMA channels of r-spi to the MCU so that it works properly.

[...]

Applied to sunxi/fixes-for-7.0 in local tree, thanks!

[1/1] arm64: dts: allwinner: sun55i: Fix r-spi DMA

      commit: 6896ca5a9d05275fbeb38640c9bbdb95698de188

Best regards,

Signature · 1 line
Chen-Yu Tsai <[email protected]>