[PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0
Stefan Wahren
wahrenst at gmx.net
Sun Nov 29 11:43:30 PST 2026
Am 27.11.26 um 16:21 schrieb Kryštof Černý via B4 Relay:
> 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.
Andrea della Porta is working on 40 bit DMA support [1], so I doubt this
paragraph is correct from hardware perspective.
> 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")
I don't think this is a bugfix.
Full DMA support wasn't intended by this commit:
"This adds minimal support for the new Raspberry Pi 4 without the fancy
stuff like GENET, PCIe, xHCI, 40 bit DMA and V3D." [2]
In general I think this change okay, even there is no 40 bit DMA support
in Mainline yet.
Thanks
[1] -
https://lore.kernel.org/linux-arm-kernel/20261127122236.4976-1-andrea.porta@suse.com/
[2] -
https://lore.kernel.org/linux-arm-kernel/1570375708-26965-9-git-send-email-wahrenst@gmx.net/
> 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 {
>
More information about the linux-arm-kernel
mailing list