[PATCH v3 21/28] dt-bindings: dma: brcm,bcm2835-dma: Add BCM2711 40-bit DMA

From: Andrea della Porta

Date: Mon Nov 23 2026 - 09:56:02 EST


On BCM2711 the last four channels of the DMA block (11 to 14) have a
different programming model allowing them to address 40 bits, and are
described by a separate node with their own compatible. Each of them
has a dedicated interrupt.

Constrain the interrupt names, whose numbering refers to the whole DMA
block also for nodes describing a subset of the channels, and require
them for the new compatible.

Signed-off-by: Andrea della Porta <andrea.porta@xxxxxxxx>
---
.../bindings/dma/brcm,bcm2835-dma.yaml | 47 ++++++++++++++++++-
1 file changed, 45 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml
index f619e395cf0d..b53652d5146b 100644
--- a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml
@@ -9,18 +9,41 @@ title: BCM2835 DMA controller
maintainers:
- Nicolas Saenz Julienne <nsaenz@xxxxxxxxxx>

-description:
+description: |
The BCM2835 DMA controller has 16 channels in total. Only the lower
13 channels have an associated IRQ. Some arbitrary channels are used by the
VideoCore firmware (1,3,6,7 in the current firmware version). The channels
0, 2 and 3 have special functionality and should not be used by the driver.

+ On BCM2711 the channels 11 to 14 of the same DMA block have a different
+ programming model, which allows them to address 40 bits, and are described
+ by a separate node.
+
+ The channel numbers used in the channel mask and in the interrupt names
+ always refer to the whole DMA block, also when a node only describes some
+ of its channels.
+
allOf:
- $ref: dma-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: brcm,bcm2711-dma
+ then:
+ properties:
+ interrupts:
+ maxItems: 4
+ interrupt-names:
+ maxItems: 4
+ required:
+ - interrupt-names

properties:
compatible:
- const: brcm,bcm2835-dma
+ enum:
+ - brcm,bcm2711-dma
+ - brcm,bcm2835-dma

reg:
maxItems: 1
@@ -35,6 +58,8 @@ properties:
interrupt-names:
minItems: 1
maxItems: 16
+ items:
+ pattern: "^dma([0-9]|1[0-4]|-shared-all)$"

'#dma-cells':
description: |
@@ -119,4 +144,22 @@ examples:
dma-channel-mask = <0x7f35>;
};

+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ dma-controller@7e007b00 {
+ compatible = "brcm,bcm2711-dma";
+ reg = <0x7e007b00 0x400>;
+ interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "dma11",
+ "dma12",
+ "dma13",
+ "dma14";
+ #dma-cells = <1>;
+ dma-channel-mask = <0x7000>;
+ };
+
...
--
2.51.0