Linux-ARM-Kernel Archive on lore.kernel.org
 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

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