BCM2835 DMA controller

Schema identifier ($id): "http://devicetree.org/schemas/dma/brcm,bcm2835-dma.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nicolas Saenz Julienne <nsaenz@kernel.org>"

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.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dma-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm2835-dma"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Should contain the DMA interrupts associated to the DMA channels in ascending order.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

#dma-cells — required here #

The single cell represents the DREQ number.

Exact value (const): 1

brcm,dma-channel-mask — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

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.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "brcm,dma-channel-mask"

Examples (examples) #

dma-controller@7e007000 {
  compatible = "brcm,bcm2835-dma";
  reg = <0x7e007000 0xf00>;
  interrupts = <1 16>,
               <1 17>,
               <1 18>,
               <1 19>,
               <1 20>,
               <1 21>,
               <1 22>,
               <1 23>,
               <1 24>,
               <1 25>,
               <1 26>,
               /* dma channel 11-14 share one irq */
               <1 27>,
               <1 27>,
               <1 27>,
               <1 27>,
               /* unused shared irq for all channels */
               <1 28>;
  interrupt-names = "dma0",
                    "dma1",
                    "dma2",
                    "dma3",
                    "dma4",
                    "dma5",
                    "dma6",
                    "dma7",
                    "dma8",
                    "dma9",
                    "dma10",
                    "dma11",
                    "dma12",
                    "dma13",
                    "dma14",
                    "dma-shared-all";
    #dma-cells = <1>;
    brcm,dma-channel-mask = <0x7f35>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page