[PATCH v4 06/28] dt-bindings: dma: brcm,bcm2835-dma: Allow the generic dma-channel-mask

From: Andrea della Porta

Date: Fri Nov 27 2026 - 07:19:22 EST


The available channels are currently described by the vendor specific
brcm,dma-channel-mask property, while the generic dma-channel-mask
property from dma-common.yaml carries exactly the same information.
Allow the generic property and mark the vendor one as deprecated,
requiring at least one of them, so that device trees can provide both
for compatibility with older kernels.

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

diff --git a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml
index f81740e49301..51ad8bc33d5b 100644
--- a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml
@@ -51,12 +51,17 @@ properties:
bit 30: use multi-beat bursts
const: 1

+ dma-channel-mask:
+ maxItems: 1
+
brcm,dma-channel-mask:
$ref: /schemas/types.yaml#/definitions/uint32
+ deprecated: true
description:
Bitmask of available DMA channels in ascending order that are
not reserved by firmware and are available to the
kernel. i.e. first channel corresponds to LSB.
+ Use the generic dma-channel-mask property instead.

unevaluatedProperties: false

@@ -65,7 +70,12 @@ required:
- reg
- interrupts
- "#dma-cells"
- - brcm,dma-channel-mask
+
+anyOf:
+ - required:
+ - dma-channel-mask
+ - required:
+ - brcm,dma-channel-mask

examples:
- |
@@ -107,7 +117,7 @@ examples:
"dma14",
"dma-shared-all";
#dma-cells = <1>;
- brcm,dma-channel-mask = <0x7f35>;
+ dma-channel-mask = <0x7f35>;
};

...
--
2.51.0