]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: allwinner: sun55i: Fix r-spi DMA
authorChen-Yu Tsai <wens@kernel.org>
Mon, 23 Mar 2026 17:19:26 +0000 (01:19 +0800)
committerChen-Yu Tsai <wens@kernel.org>
Tue, 24 Mar 2026 03:08:10 +0000 (11:08 +0800)
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")
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20260323171927.1256507-1-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi

index 9335977751e28570a8bbb983bfa3935b30d32e46..a4230205c02b2bfd0a15991a545c84fff1aab669 100644 (file)
                        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";