Devicetree
 help / color / mirror / Atom feed
From: Stefan Wahren <wahrenst@gmx.net>
To: cleverline1mc@gmail.com, Mark Brown <broonie@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Florian Fainelli <florian.fainelli@broadcom.com>,
	Broadcom internal kernel review list
	<bcm-kernel-feedback-list@broadcom.com>,
	Ray Jui <ray.jui@broadcom.com>,
	Scott Branden <scott.branden@broadcom.com>,
	Kanak Shilledar <kanakshilledar111@protonmail.com>,
	Florian Fanelli <f.fainelli@gmail.com>,
	Andrea della Porta <andrea.porta@suse.com>
Cc: "Conor Dooley" <conor.dooley@microchip.com>,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	linux-rpi-kernel@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	"Miroslav Ondra" <ondra@faster.cz>,
	"Matouš Hýbl" <hyblmatous@gmail.com>
Subject: Re: [PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0
Date: Sun, 29 Nov 2026 20:43:30 +0100	[thread overview]
Message-ID: <bb3deda6-372b-47d5-a43e-da3fc71bcdb4@gmx.net> (raw)
In-Reply-To: <20261127-bcm2835-spi-dma-v1-2-8b134991ba2e@gmail.com>

Am 27.11.26 um 16:21 schrieb Kryštof Černý via B4 Relay:
> From: Kryštof Černý <cleverline1mc@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@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 {
>


  reply	other threads:[~2026-11-29 19:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 15:21 [PATCH 0/4] spi: dt-bindings: bcm2835-spi, ARM: dts: bcm2711: Add DMA to spi0, i2s and sdhost Kryštof Černý via B4 Relay
2026-11-27 15:21 ` [PATCH 1/4] spi: dt-bindings: brcm,bcm2835-spi: Add dmas and dma-names Kryštof Černý via B4 Relay
2026-11-29 19:18   ` Stefan Wahren
2026-11-27 15:21 ` [PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0 Kryštof Černý via B4 Relay
2026-11-29 19:43   ` Stefan Wahren [this message]
2026-11-27 15:21 ` [PATCH 3/4] ARM: dts: broadcom: bcm2711: Add DMA to i2s Kryštof Černý via B4 Relay
2026-11-27 15:21 ` [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost Kryštof Černý via B4 Relay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bb3deda6-372b-47d5-a43e-da3fc71bcdb4@gmx.net \
    --to=wahrenst@gmx.net \
    --cc=andrea.porta@suse.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=broonie@kernel.org \
    --cc=cleverline1mc@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=conor.dooley@microchip.com \
    --cc=devicetree@vger.kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=florian.fainelli@broadcom.com \
    --cc=hyblmatous@gmail.com \
    --cc=kanakshilledar111@protonmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-rpi-kernel@lists.infradead.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=ondra@faster.cz \
    --cc=ray.jui@broadcom.com \
    --cc=robh@kernel.org \
    --cc=scott.branden@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox