Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/4] spi: dt-bindings: bcm2835-spi, ARM: dts: bcm2711: Add DMA to spi0, i2s and sdhost
@ 2026-11-27 15:21 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
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Kryštof Černý via B4 Relay @ 2026-11-27 15:21 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Kanak Shilledar, Stefan Wahren, Florian Fanelli,
	Eric Anholt
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl,
	Kryštof Černý

I'm moving Unipi devices from the Raspberry Pi downstream kernel
to the CIP kernel and plan to upstream the gaps I find along the way.
This is the first of them.

On BCM2711 (Raspberry Pi 4, CM4), spi0, i2s and sdhost have no DMA
channels in the device tree, although the same controllers get them on
BCM2835/6/7 from bcm2835-common.dtsi. spi0 then runs in PIO mode, and
i2s, which has no PIO fallback, doesn't work.

Patch 1 documents dmas and dma-names in the bcm2835-spi binding. The
driver already requests them and bcm2835-common.dtsi already sets them;
dtbs_check doesn't flag that only because no in-tree board enables
spi0. The i2s and sdhost bindings already describe their channels.

Patches 2-4 add the dmas to bcm2711.dtsi, one controller per patch, so
each can be applied or reverted on its own. spi0 and i2s were tested on
a Raspberry Pi 4 B; sdhost only for probe and DMA binding, because
nothing on that board is wired to its pins.

Patch 1 is for the SPI tree, patches 2-4 for the Broadcom SoC tree.
There is no build dependency: without patch 1, patch 2 only adds a
dtbs_check warning for boards that enable spi0.

Checked with dt_binding_check for brcm,bcm2835-spi.yaml and with
dtbs_check on arm and arm64 (bcm2711-rpi-4-b, bcm2711-rpi-400,
bcm2711-rpi-cm4-io, and on arm also bcm2837-rpi-3-b and bcm2835-rpi-b):
no warnings.

An AI assistant (Claude) helped write the commit messages and this
cover letter.

---
Kryštof Černý (4):
      spi: dt-bindings: brcm,bcm2835-spi: Add dmas and dma-names
      ARM: dts: broadcom: bcm2711: Add DMA to spi0
      ARM: dts: broadcom: bcm2711: Add DMA to i2s
      ARM: dts: broadcom: bcm2711: Add DMA to sdhost

 Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml | 12 ++++++++++++
 arch/arm/boot/dts/broadcom/bcm2711.dtsi                     |  9 +++++++++
 2 files changed, 21 insertions(+)
---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261121-bcm2835-spi-dma-bb08ed60174a

Best regards,
--  
Kryštof Černý <cleverline1mc@gmail.com>



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/4] spi: dt-bindings: brcm,bcm2835-spi: Add dmas and dma-names
  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 ` 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
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Kryštof Černý via B4 Relay @ 2026-11-27 15:21 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Kanak Shilledar, Stefan Wahren, Florian Fanelli,
	Eric Anholt
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl,
	Kryštof Černý

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

The driver requests optional "tx" and "rx" DMA channels, and
bcm2835-common.dtsi has set them on the SPI node since commit
cbbe88333062 ("ARM: bcm283x: Enable DMA support for SPI controller"),
but the schema from the conversion to dtschema does not allow them.
dtbs_check is silent only because no in-tree board enables the node;
with spi0 enabled on a BCM2837 board it reports:

  spi@7e204000 (brcm,bcm2835-spi): Unevaluated properties are not allowed ('dma-names', 'dmas' were unexpected)

Document both properties.

Fixes: 85ce0dc28ffd ("spi: dt-bindings: brcm,bcm2835-spi: convert to dtschema")
Signed-off-by: Kryštof Černý <cleverline1mc@gmail.com>
---
 Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml b/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
index 94da68792194..8d2919ce6096 100644
--- a/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
+++ b/Documentation/devicetree/bindings/spi/brcm,bcm2835-spi.yaml
@@ -30,6 +30,16 @@ properties:
   clocks:
     maxItems: 1
 
+  dmas:
+    items:
+      - description: TX DMA channel
+      - description: RX DMA channel
+
+  dma-names:
+    items:
+      - const: tx
+      - const: rx
+
 required:
   - compatible
   - reg
@@ -45,6 +55,8 @@ examples:
         reg = <0x7e204000 0x1000>;
         interrupts = <2 22>;
         clocks = <&clk_spi>;
+        dmas = <&dma 6>, <&dma 7>;
+        dma-names = "tx", "rx";
         #address-cells = <1>;
         #size-cells = <0>;
     };

-- 
2.47.3



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0
  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-27 15:21 ` Kryštof Černý via B4 Relay
  2026-11-29 19:43   ` Stefan Wahren
  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
  3 siblings, 1 reply; 9+ messages in thread
From: Kryštof Černý via B4 Relay @ 2026-11-27 15:21 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Kanak Shilledar, Stefan Wahren, Florian Fanelli,
	Eric Anholt
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl,
	Kryštof Černý

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.

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@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



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/4] ARM: dts: broadcom: bcm2711: Add DMA to i2s
  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-27 15:21 ` [PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0 Kryštof Černý via B4 Relay
@ 2026-11-27 15:21 ` Kryštof Černý via B4 Relay
  2026-11-29 20:19   ` Stefan Wahren
  2026-11-27 15:21 ` [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost Kryštof Černý via B4 Relay
  3 siblings, 1 reply; 9+ messages in thread
From: Kryštof Černý via B4 Relay @ 2026-11-27 15:21 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Kanak Shilledar, Stefan Wahren, Florian Fanelli,
	Eric Anholt
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl,
	Kryštof Černý

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

On BCM2835/6/7, i2s gets its DMA channels from bcm2835-common.dtsi.
Commit 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
added the BCM2711 DMA controller but gave i2s no channels, although the
binding requires them. The driver has no PIO fallback, so on BCM2711
i2s fails to create its PCM and no sound card using it can register:

  bcm2835-i2s fe203000.i2s: Missing dma channel for stream: 0

Add the same dmas as on BCM2835/6/7; the BCM2711 legacy DMA engine uses
the same DREQ numbers.

Tested on a Raspberry Pi 4 B with simple-audio-card and a dummy S/PDIF
codec: 48 kHz/S16 and 192 kHz/S32 stereo play without xruns.

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

diff --git a/arch/arm/boot/dts/broadcom/bcm2711.dtsi b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
index 8ebf52b20c66..0680a0b1ca67 100644
--- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
@@ -1140,6 +1140,11 @@ &i2c1 {
 	interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
 };
 
+&i2s {
+	dmas = <&dma 2>, <&dma 3>;
+	dma-names = "tx", "rx";
+};
+
 &mailbox {
 	interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
 };

-- 
2.47.3



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost
  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
                   ` (2 preceding siblings ...)
  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 ` Kryštof Černý via B4 Relay
  2026-11-29 20:04   ` Stefan Wahren
  3 siblings, 1 reply; 9+ messages in thread
From: Kryštof Černý via B4 Relay @ 2026-11-27 15:21 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Florian Fainelli, Broadcom internal kernel review list, Ray Jui,
	Scott Branden, Kanak Shilledar, Stefan Wahren, Florian Fanelli,
	Eric Anholt
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl,
	Kryštof Černý

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

On BCM2835/6/7, sdhost gets its DMA channel from bcm2835-common.dtsi.
Commit 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
added the BCM2711 DMA controller but gave sdhost no channel, so a
BCM2711 board that enables sdhost runs it in PIO mode:

  sdhost-bcm2835 fe202000.mmc: unable to initialise DMA channel. Falling back to PIO

Add the same dmas as on BCM2835/6/7; the BCM2711 legacy DMA engine uses
the same DREQ number.

Tested on a Raspberry Pi 4 B: the driver gets its channel and reports
"DMA enabled". Nothing on that board is wired to the sdhost pins, so
transfers are untested.

Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
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 0680a0b1ca67..e18f11fb7f00 100644
--- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
@@ -1155,6 +1155,8 @@ &sdhci {
 
 &sdhost {
 	interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
+	dmas = <&dma 13>;
+	dma-names = "rx-tx";
 };
 
 &spi {

-- 
2.47.3



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/4] spi: dt-bindings: brcm,bcm2835-spi: Add dmas and dma-names
  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
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Wahren @ 2026-11-29 19:18 UTC (permalink / raw)
  To: cleverline1mc, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Kanak Shilledar, Florian Fanelli
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl

Am 27.11.26 um 16:21 schrieb Kryštof Černý via B4 Relay:
> From: Kryštof Černý <cleverline1mc@gmail.com>
>
> The driver requests optional "tx" and "rx" DMA channels, and
> bcm2835-common.dtsi has set them on the SPI node since commit
> cbbe88333062 ("ARM: bcm283x: Enable DMA support for SPI controller"),
> but the schema from the conversion to dtschema does not allow them.
> dtbs_check is silent only because no in-tree board enables the node;
> with spi0 enabled on a BCM2837 board it reports:
>
>    spi@7e204000 (brcm,bcm2835-spi): Unevaluated properties are not allowed ('dma-names', 'dmas' were unexpected)
>
> Document both properties.
>
> Fixes: 85ce0dc28ffd ("spi: dt-bindings: brcm,bcm2835-spi: convert to dtschema")
> Signed-off-by: Kryštof Černý <cleverline1mc@gmail.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>

Thanks for upstreaming

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/4] ARM: dts: broadcom: bcm2711: Add DMA to spi0
  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
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Wahren @ 2026-11-29 19:43 UTC (permalink / raw)
  To: cleverline1mc, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Kanak Shilledar, Florian Fanelli, Andrea della Porta
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl

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 {
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost
  2026-11-27 15:21 ` [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost Kryštof Černý via B4 Relay
@ 2026-11-29 20:04   ` Stefan Wahren
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Wahren @ 2026-11-29 20:04 UTC (permalink / raw)
  To: cleverline1mc, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Kanak Shilledar, Florian Fanelli
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl

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, sdhost gets its DMA channel from bcm2835-common.dtsi.
> Commit 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
> added the BCM2711 DMA controller but gave sdhost no channel, so a
> BCM2711 board that enables sdhost runs it in PIO mode:
>
>    sdhost-bcm2835 fe202000.mmc: unable to initialise DMA channel. Falling back to PIO
>
> Add the same dmas as on BCM2835/6/7; the BCM2711 legacy DMA engine uses
> the same DREQ number.
>
> Tested on a Raspberry Pi 4 B: the driver gets its channel and reports
> "DMA enabled". Nothing on that board is wired to the sdhost pins, so
> transfers are untested.
>
> Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
Disclaimer: I never tested SDHOST interface on Raspberry Pi 4. But 
according to [1] the pins should be the same as the EMMC2 interface. So 
in theory this only requires a change of the muxing.

For this change it would be better to have:
- this really tested (e.g. with an SD card)
- a real use case in the commit message

Best regards

[1] - https://elinux.org/RPi_BCM2711_GPIOs
> 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 0680a0b1ca67..e18f11fb7f00 100644
> --- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi
> +++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
> @@ -1155,6 +1155,8 @@ &sdhci {
>   
>   &sdhost {
>   	interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
> +	dmas = <&dma 13>;
> +	dma-names = "rx-tx";
>   };
>   
>   &spi {
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 3/4] ARM: dts: broadcom: bcm2711: Add DMA to i2s
  2026-11-27 15:21 ` [PATCH 3/4] ARM: dts: broadcom: bcm2711: Add DMA to i2s Kryštof Černý via B4 Relay
@ 2026-11-29 20:19   ` Stefan Wahren
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Wahren @ 2026-11-29 20:19 UTC (permalink / raw)
  To: cleverline1mc, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli,
	Broadcom internal kernel review list, Ray Jui, Scott Branden,
	Kanak Shilledar, Florian Fanelli
  Cc: Conor Dooley, linux-spi, devicetree, linux-rpi-kernel,
	linux-arm-kernel, Miroslav Ondra, Matouš Hýbl

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, i2s gets its DMA channels from bcm2835-common.dtsi.
> Commit 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
> added the BCM2711 DMA controller but gave i2s no channels, although the
> binding requires them. The driver has no PIO fallback, so on BCM2711
> i2s fails to create its PCM and no sound card using it can register:
>
>    bcm2835-i2s fe203000.i2s: Missing dma channel for stream: 0
>
> Add the same dmas as on BCM2835/6/7; the BCM2711 legacy DMA engine uses
> the same DREQ numbers.
>
> Tested on a Raspberry Pi 4 B with simple-audio-card and a dummy S/PDIF
> codec: 48 kHz/S16 and 192 kHz/S32 stereo play without xruns.
>
> Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support")
> Signed-off-by: Kryštof Černý <cleverline1mc@gmail.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>

Thanks
> ---
>   arch/arm/boot/dts/broadcom/bcm2711.dtsi | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm/boot/dts/broadcom/bcm2711.dtsi b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
> index 8ebf52b20c66..0680a0b1ca67 100644
> --- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi
> +++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi
> @@ -1140,6 +1140,11 @@ &i2c1 {
>   	interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
>   };
>   
> +&i2s {
> +	dmas = <&dma 2>, <&dma 3>;
> +	dma-names = "tx", "rx";
> +};
> +
>   &mailbox {
>   	interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
>   };
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-29 20:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-11-27 15:21 ` [PATCH 3/4] ARM: dts: broadcom: bcm2711: Add DMA to i2s Kryštof Černý via B4 Relay
2026-11-29 20:19   ` Stefan Wahren
2026-11-27 15:21 ` [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost Kryštof Černý via B4 Relay
2026-11-29 20:04   ` Stefan Wahren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox