Synopsys Designware DMA Controller
Schema identifier ($id): "http://devicetree.org/schemas/dma/snps,dma-spear1340.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Viresh Kumar <vireshk@kernel.org>", "Andy Shevchenko <andriy.shevchenko@linux.intel.com>"
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
Exact value (
const):"snps,dma-spear1340"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,rzn1-dma"
#dma-cells — required here #
Minimum value (minimum): 3
Maximum value (maximum): 4
First cell is a phandle pointing to the DMA controller. Second one is the DMA request line number. Third cell is the memory master identifier for transfers on dynamically allocated channel. Fourth cell is the peripheral master identifier for transfers on an allocated channel. Fifth cell is an optional mask of the DMA channels permitted to be allocated for the corresponding client device.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
AHB interface reference clock.
Exact value (const): "hclk"
dma-channels — not listed as required here #
Number of DMA channels supported by the controller. In case if not specified the driver will try to auto-detect this and the rest of the optional parameters.
Minimum value (minimum): 1
Maximum value (maximum): 8
dma-requests — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 16
dma-masters — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of DMA masters supported by the controller. In case if not specified the driver will try to auto-detect this and the rest of the optional parameters.
Minimum value (minimum): 1
Maximum value (maximum): 4
chan_allocation_order — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
DMA channels allocation order specifier. Zero means ascending order (first free allocated), while one - descending (last free allocated).
Default value (default): 0
chan_priority — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
DMA channels priority order. Zero means ascending channels priority so the very first channel has the highest priority. While 1 means descending priority (the last channel has the highest priority).
Default value (default): 0
block_size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum block size supported by the DMA controller.
Allowed values (enum): 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095
data-width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Data bus width per each DMA master in bytes.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items) #
data_width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Deprecated (deprecated): true
Data bus width per each DMA master in (2^n * 8) bits. This property is deprecated. It' usage is discouraged in favor of data-width one. Moreover the property incorrectly permits to define data-bus width of 8 and 16 bits, which is impossible in accordance with DW DMAC IP-core data book.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items) #
Allowed values (
enum):0,1,2,3,4,5Default value (
default):0
multi-block — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
LLP-based multi-block transfer supported by hardware per each DMA channel.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items) #
Default value (
default):1
snps,max-burst-len — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum length of the burst transactions supported by the controller. This property defines the upper limit of the run-time burst setting (CTLx.SRC_MSIZE/CTLx.DST_MSIZE fields) so the allowed burst length will be from 1 to max-burst-len words. It's an array property with one cell per channel in the units determined by the value set in the CTLx.SRC_TR_WIDTH/CTLx.DST_TR_WIDTH fields (data width).
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items) #
Allowed values (
enum):4,8,16,32,64,128,256Default value (
default):256
snps,dma-protection-control — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Bits one-to-one passed to the AHB HPROT[3:1] bus. Each bit setting indicates the following features: bit 0 - privileged mode, bit 1 - DMA is bufferable, bit 2 - DMA is cacheable.
Default value (default): 0
Minimum value (minimum): 0
Maximum value (maximum): 7
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "#dma-cells", "reg", "interrupts"
Examples (examples) #
dma-controller@fc000000 {
compatible = "snps,dma-spear1340";
reg = <0xfc000000 0x1000>;
interrupt-parent = <&vic1>;
interrupts = <12>;
dma-channels = <8>;
dma-requests = <16>;
dma-masters = <4>;
#dma-cells = <3>;
chan_allocation_order = <1>;
chan_priority = <1>;
block_size = <0xfff>;
data-width = <8 8>;
multi-block = <0 0 0 0 0 0 0 0>;
snps,max-burst-len = <16 16 4 4 4 4 4 4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 112: 8 bits
Line 113: 16 bits
Line 114: 32 bits
Line 115: 64 bits
Line 116: 128 bits
Line 117: 256 bits