Skip to content

dma: Add BCM2711 and BCM2712 support to bcm2835-dma

Peter Robinson dmaengine linux-arm-kernel linux-devicetree 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9dt-bindings: dma: brcm,bcm2835-dma: Add BCM2711 and BCM2712Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml+29 -25 replies
2/9dmaengine: bcm2835: Refactor control block handlingdrivers/dma/bcm2835-dma.c+134 -510 replies
3/9dmaengine: bcm2835: Support controllers split across several nodesdrivers/dma/bcm2835-dma.c+23 -110 replies
4/9dmaengine: bcm2835: Add BCM2711 40-bit channel supportdrivers/dma/bcm2835-dma.c+256 -220 replies
5/9dmaengine: bcm2835: Add BCM2712 supportdrivers/dma/bcm2835-dma.c+22 -10 replies
6/9ARM: dts: bcm2711: Add 40-bit DMA controllerarch/arm/boot/dts/broadcom/bcm2711.dtsi+16 -00 replies
7/9ARM: dts: bcm2711-rpi: Use 40-bit DMA for HDMI audioarch/arm/boot/dts/broadcom/bcm2711-rpi.dtsi+8 -00 replies
8/9arm64: dts: broadcom: bcm2712: Add DMA controllersarch/arm64/boot/dts/broadcom/bcm2712.dtsi+40 -00 replies
9/9arm64: dts: broadcom: bcm2712-rpi-5-b: Enable HDMI audioarch/arm64/boot/dts/broadcom/bcm2712-d-rpi-5-b.dts arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b-base.dtsi+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] dma: Add BCM2711 and BCM2712 support to bcm2835-dma

The upstream bcm2835-dma driver only handles the older BCM2835 SoCs up to the Raspberry Pi 3. The later BCM2711/BCM2712 add extra channels that support 40-bit DMA4 channels so add support so this works upstream.

The first patch updates the bindings, them patches 2-5 do some refactoring and add the support for the newer SoCs.

Finally patches 6 and 7 add the nodes to the base device tree and patches 8 and 9 enable it and configure HDMI audio to use them as per the down stream device trees.

The series was assisted considerably by Claude Opus 5.5 based on the various downstream Raspberry Pi patches and tested on a number of RPi5B revC/D, RPi4B and a RPi3B+ all running Fedora 45. Checkpatch and dtbs_check pass clean.

Peter Robinson (9):
dt-bindings: dma: brcm,bcm2835-dma: Add BCM2711 and BCM2712
dmaengine: bcm2835: Refactor control block handling
dmaengine: bcm2835: Support controllers split across several nodes
dmaengine: bcm2835: Add BCM2711 40-bit channel support
dmaengine: bcm2835: Add BCM2712 support
ARM: dts: bcm2711: Add 40-bit DMA controller
ARM: dts: bcm2711-rpi: Use 40-bit DMA for HDMI audio
arm64: dts: broadcom: bcm2712: Add DMA controllers
arm64: dts: broadcom: bcm2712-rpi-5-b: Enable HDMI audio

 .../bindings/dma/brcm,bcm2835-dma.yaml        |  31 +-
 arch/arm/boot/dts/broadcom/bcm2711-rpi.dtsi   |   8 +
 arch/arm/boot/dts/broadcom/bcm2711.dtsi       |  16 +
 .../boot/dts/broadcom/bcm2712-d-rpi-5-b.dts   |   8 +
 .../dts/broadcom/bcm2712-rpi-5-b-base.dtsi    |  10 +
 arch/arm64/boot/dts/broadcom/bcm2712.dtsi     |  40 ++
 drivers/dma/bcm2835-dma.c                     | 496 +++++++++++++++---
 7 files changed, 534 insertions(+), 75 deletions(-)
Signature · 1 line
2.56.0