[PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0

Kryštof Černý via B4 Relay devnull+cleverline1mc.gmail.com at kernel.org
Fri Nov 27 07:21:07 PST 2026


From: Kryštof Černý <cleverline1mc at gmail.com>

On BCM2835/6/7, spi0 gets its DMA channels from bcm2835-common.dtsi,
where commit 3ce82be9ae3d ("ARM: dts: bcm283x: Move BCM2835/6/7 specific
to bcm2835-common.dtsi") moved them together with the DMA controller.
Commit 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
then added the BCM2711 DMA controller without any of its users, so on
BCM2711 spi0 falls back to PIO and logs an error:

  spi-bcm2835 fe204000.spi: error -ENODEV: no tx-dma configuration found - not using dma mode

The BCM2711 has the same legacy DMA engine and DREQ numbers, and the
/soc dma-ranges already limit spi0 to the lower 1 GiB that the engine
can address. Add the same dmas as on BCM2835/6/7.

On a Raspberry Pi 4 B, 64 KiB transfers at 31.25 MHz go from 26.8 Mbit/s
with 11% of CPU0 left in PIO mode to 32.5 Mbit/s with CPU0 nearly idle.

Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
Signed-off-by: Kryštof Černý <cleverline1mc at gmail.com>
---
 arch/arm/boot/dts/broadcom/bcm2711.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/broadcom/bcm2711.dtsi b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
index 5e3b4bb39396..8ebf52b20c66 100644
--- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
@@ -1154,6 +1154,8 @@ &sdhost {
 
 &spi {
 	interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
+	dmas = <&dma 6>, <&dma 7>;
+	dma-names = "tx", "rx";
 };
 
 &spi1 {

-- 
2.47.3





More information about the linux-arm-kernel mailing list