Synopsys DesignWare AXI DMA Controller

Schema identifier ($id): "http://devicetree.org/schemas/dma/snps,dw-axi-dmac.yaml#"

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

Maintainers (maintainers): "Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>"

Synopsys DesignWare AXI DMA Controller DT Binding

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "snps,axi-dma-1.01a", "intel,kmb-axi-dma", "starfive,jh7110-axi-dma", "starfive,jh8100-axi-dma"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "altr,agilex5-axi-dma"

Item 2

Exact value (const): "snps,axi-dma-1.01a"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Address range of the DMAC registers

Item 2

Address range of the DMAC APB registers

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "axidma_ctrl_regs"

Item 2

Exact value (const): "axidma_apb_regs"

interrupts — required here #

If the IP-core synthesis parameter DMAX_INTR_IO_TYPE is set to 1, this will be per-channel interrupts. Otherwise, this is a single combined IRQ for all channels.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

iommus — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core-clk"

Item 2

Exact value (const): "cfgr-clk"

#dma-cells — required here #

Exact value (const): 1

dma-channels — required here #

Minimum value (minimum): 1

Maximum value (maximum): 8

dma-noncoherent — not listed as required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

snps,dma-masters — required here #

Number of AXI masters supported by the hardware.

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

Allowed values (enum): 1, 2

snps,data-width — required here #

AXI data width supported by hardware. (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits)

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

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6

snps,priority — required here #

Channel priority specifier associated with the DMA channels.

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

snps,block-size — required here #

Channel block size specifier associated with the DMA channels.

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

snps,axi-max-burst-len — not listed as required here #

Restrict master AXI burst length by value specified in this property. If this property is missing the maximum AXI burst length supported by DMAC is used.

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

Minimum value (minimum): 1

Maximum value (maximum): 256

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "#dma-cells", "dma-channels", "snps,dma-masters", "snps,data-width", "snps,priority", "snps,block-size"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "starfive,jh7110-axi-dma"

When the condition matches (then) #

Properties and child nodes (properties) #

resets — not listed as required here #

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

AXI reset line

Item 2

AHB reset line

Item 3

module reset

When the condition does not match (else) #

Properties and child nodes (properties) #

resets — not listed as required here #

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
/* example with snps,dw-axi-dmac */
dma-controller@80000 {
    compatible = "snps,axi-dma-1.01a";
    reg = <0x80000 0x400>;
    clocks = <&core_clk>, <&cfgr_clk>;
    clock-names = "core-clk", "cfgr-clk";
    interrupt-parent = <&intc>;
    interrupts = <27>;
    #dma-cells = <1>;
    dma-channels = <4>;
    snps,dma-masters = <2>;
    snps,data-width = <3>;
    snps,block-size = <4096 4096 4096 4096>;
    snps,priority = <0 1 2 3>;
    snps,axi-max-burst-len = <16>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page