Dma bindings
Single-page view · as markdown
STMicroelectronics STM32 DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / stm32
Schema identifier ($id): "http://devicetree.org/schemas/dma/stm32/st,stm32-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 DMA is a general-purpose direct memory access controller capable of
supporting 8 independent DMA channels. Each channel can have up to 8 requests.
DMA clients connected to the STM32 DMA controller must use the format
described in the dma.txt file, using a four-cell specifier for each
channel: a phandle to the DMA controller plus the following four integer cells:
1. The channel id
2. The request line number
3. A 32bit mask specifying the DMA channel configuration which are device
dependent:
-bit 9: Peripheral Increment Address
0x0: no address increment between transfers
0x1: increment address between transfers
-bit 10: Memory Increment Address
0x0: no address increment between transfers
0x1: increment address between transfers
-bit 15: Peripheral Increment Offset Size
0x0: offset size is linked to the peripheral bus width
0x1: offset size is fixed to 4 (32-bit alignment)
-bit 16-17: Priority level
0x0: low
0x1: medium
0x2: high
0x3: very high
4. A 32bit bitfield value specifying DMA features which are device dependent:
-bit 0-1: DMA FIFO threshold selection
0x0: 1/4 full FIFO
0x1: 1/2 full FIFO
0x2: 3/4 full FIFO
0x3: full FIFO
-bit 2: DMA direct mode
0x0: FIFO mode with threshold selectable with bit 0-1
0x1: Direct mode: each DMA request immediately initiates a transfer
from/to the memory, FIFO is bypassed.
-bit 4: alternative DMA request/acknowledge protocol
0x0: Use standard DMA ACK management, where ACK signal is maintained
up to the removal of request and transfer completion
0x1: Use alternative DMA ACK management, where ACK de-assertion does
not wait for the de-assertion of the REQuest, ACK is only managed
by transfer completion. This must only be used on channels
managing transfers for STM32 USART/UART.
Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/dma/dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — not listed as required here #
Exact value (const): 4
compatible — required here #
Exact value (const): "st,stm32-dma"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 8
Should contain all of the per-channel DMA interrupts in ascending order with respect to the DMA channel index.
resets — not listed as required here #
Maximum number of items (maxItems): 1
st,mem2mem — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
if defined, it indicates that the controller supports memory-to-memory transfer
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
dma-controller@40026400 {
compatible = "st,stm32-dma";
reg = <0x40026400 0x400>;
interrupts = <56>,
<57>,
<58>,
<59>,
<60>,
<68>,
<69>,
<70>;
clocks = <&clk_hclk>;
#dma-cells = <4>;
st,mem2mem;
resets = <&rcc 150>;
dma-requests = <8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics STM32 DMA3 Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / stm32
Schema identifier ($id): "http://devicetree.org/schemas/dma/stm32/st,stm32-dma3.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 DMA3 is a direct memory access controller with different features depending on its hardware configuration. It is either called LPDMA (Low Power), GPDMA (General Purpose) or HPDMA (High Performance). Its hardware configuration registers allow to dynamically expose its features.
GPDMA and HPDMA support 16 independent DMA channels, while only 4 for LPDMA. GPDMA and HPDMA support 256 DMA requests from peripherals, 8 for LPDMA.
Bindings are generic for these 3 STM32 DMA3 configurations.
DMA clients connected to the STM32 DMA3 controller must use the format described in "#dma-cells" property description below, using a three-cell specifier for each channel.
Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/dma/dma-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stm32mp25-dma3"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 16
Should contain all of the per-channel DMA interrupts in ascending order with respect to the DMA channel index.
clocks — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 3
Specifies the number of cells needed to provide DMA controller specific
information.
The first cell is the request line number.
The second cell is a 32-bit mask specifying the DMA channel requirements:
-bit 0-1: The priority level
0x0: low priority, low weight
0x1: low priority, mid weight
0x2: low priority, high weight
0x3: high priority
-bit 4-7: The FIFO requirement for queuing source/destination transfers
0x0: no FIFO requirement/any channel can fit
0x2: FIFO of 8 bytes (2^2+1)
0x4: FIFO of 32 bytes (2^4+1)
0x6: FIFO of 128 bytes (2^6+1)
0x7: FIFO of 256 bytes (2^7+1)
The third cell is a 32-bit mask specifying the DMA transfer requirements:
-bit 0: The source incrementing burst
0x0: fixed burst
0x1: contiguously incremented burst
-bit 1: The source allocated port
0x0: port 0 is allocated to the source transfer
0x1: port 1 is allocated to the source transfer
-bit 4: The destination incrementing burst
0x0: fixed burst
0x1: contiguously incremented burst
-bit 5: The destination allocated port
0x0: port 0 is allocated to the destination transfer
0x1: port 1 is allocated to the destination transfer
-bit 8: The type of hardware request
0x0: burst
0x1: block
-bit 9: The control mode
0x0: DMA controller control mode
0x1: peripheral control mode
-bit 12-13: The transfer complete event mode
0x0: at block level, transfer complete event is generated at the end
of a block
0x2: at LLI level, the transfer complete event is generated at the end
of the LLI transfer
including the update of the LLI if any
0x3: at channel level, the transfer complete event is generated at the
end of the last LLI
-bit 16: Prevent packing/unpacking mode
0x0: pack/unpack enabled when source data width/burst != destination data width/burst
0x1: memory data width/burst forced to peripheral data width/burst to prevent pack/unpack
-bit 17: Prevent additional transfers due to linked-list refactoring
0x0: don't prevent additional transfers for optimal performance
0x1: prevent additional transfer to accommodate user constraints such as single transfer
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#dma-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/st,stm32mp25-rcc.h>
dma-controller@40400000 {
compatible = "st,stm32mp25-dma3";
reg = <0x40400000 0x1000>;
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc CK_BUS_HPDMA1>;
#dma-cells = <3>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics STM32 DMA MUX (DMA request router)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / stm32
Schema identifier ($id): "http://devicetree.org/schemas/dma/stm32/st,stm32-dmamux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/dma/dma-router.yaml#
Properties and child nodes (properties) #
#dma-cells — not listed as required here #
Exact value (const): 3
Each cell represents the following:
1. The mux input number/line for the request
2. Bitfield representing DMA channel configuration that is passed
to the real DMA controller
3. Bitfield representing device dependent DMA features passed to
the real DMA controller
For bitfield definitions of cells 2 and 3, see the associated bindings doc for the actual DMA controller in st,stm32-dma.yaml.
compatible — required here #
Exact value (const): "st,stm32h7-dmamux"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "dma-masters"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
dma-router@40020800 {
compatible = "st,stm32h7-dmamux";
reg = <0x40020800 0x3c>;
#dma-cells = <3>;
dma-requests = <128>;
dma-channels = <16>;
dma-masters = <&dma1>, <&dma2>;
clocks = <&timer_clk>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics STM32 MDMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / stm32
Schema identifier ($id): "http://devicetree.org/schemas/dma/stm32/st,stm32-mdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 MDMA is a general-purpose direct memory access controller capable of
supporting 64 independent DMA channels with 256 HW requests.
DMA clients connected to the STM32 MDMA controller must use the format
described in the dma.txt file, using a five-cell specifier for each channel:
a phandle to the MDMA controller plus the following five integer cells:
1. The request line number
2. The priority level
0x0: Low
0x1: Medium
0x2: High
0x3: Very high
3. A 32bit mask specifying the DMA channel configuration
-bit 0-1: Source increment mode
0x0: Source address pointer is fixed
0x2: Source address pointer is incremented after each data transfer
0x3: Source address pointer is decremented after each data transfer
-bit 2-3: Destination increment mode
0x0: Destination address pointer is fixed
0x2: Destination address pointer is incremented after each data transfer
0x3: Destination address pointer is decremented after each data transfer
-bit 8-9: Source increment offset size
0x0: byte (8bit)
0x1: half-word (16bit)
0x2: word (32bit)
0x3: double-word (64bit)
-bit 10-11: Destination increment offset size
0x0: byte (8bit)
0x1: half-word (16bit)
0x2: word (32bit)
0x3: double-word (64bit)
-bit 25-18: The number of bytes to be transferred in a single transfer
(min = 1 byte, max = 128 bytes)
-bit 29:28: Trigger Mode
0x00: Each MDMA request triggers a buffer transfer (max 128 bytes)
0x1: Each MDMA request triggers a block transfer (max 64K bytes)
0x2: Each MDMA request triggers a repeated block transfer
0x3: Each MDMA request triggers a linked list transfer
4. A 32bit value specifying the register to be used to acknowledge the request
if no HW ack signal is used by the MDMA client
5. A 32bit mask specifying the value to be written to acknowledge the request
if no HW ack signal is used by the MDMA client
Maintainers (maintainers): "Amelie Delaunay <amelie.delaunay@foss.st.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/dma/dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — not listed as required here #
Exact value (const): 5
compatible — required here #
Exact value (const): "st,stm32h7-mdma"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
st,ahb-addr-masks — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of u32 mask to list memory devices addressed via AHB bus.
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
dma-controller@52000000 {
compatible = "st,stm32h7-mdma";
reg = <0x52000000 0x1000>;
interrupts = <122>;
clocks = <&timer_clk>;
resets = <&rcc 992>;
#dma-cells = <5>;
dma-channels = <16>;
dma-requests = <32>;
st,ahb-addr-masks = <0x20000000>, <0x00000000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments K3 DMSS BCDMA
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / ti
Schema identifier ($id): "http://devicetree.org/schemas/dma/ti/k3-bcdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
The Block Copy DMA (BCDMA) is intended to perform similar functions as the TR mode channels of K3 UDMA-P. BCDMA includes block copy channels and Split channels.
Block copy channels mainly used for memory to memory transfers, but with optional triggers a block copy channel can service peripherals by accessing directly to memory mapped registers or area.
Split channels can be used to service PSI-L based peripherals. The peripherals can be PSI-L native or legacy, non PSI-L native peripherals with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the legacy peripheral.
PDMAs can be configured via BCDMA split channel's peer registers to match with the configuration of the legacy peripheral.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am62a-dmss-bcdma-csirx", "ti,am64-dmss-bcdma", "ti,j721s2-dmss-bcdma-csi", "ti,j722s-dmss-bcdma-csi"
reg — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 9
reg-names — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 9
#dma-cells — required here #
Exact value (const): 3
cell 1: type of the BCDMA channel to be used to service the peripheral:
0 - split channel
1 - block copy channel using global trigger 1
2 - block copy channel using global trigger 2
3 - block copy channel using local trigger
cell 2: parameter for the channel:
if cell 1 is 0 (split channel):
PSI-L thread ID of the remote (to BCDMA) end.
Valid ranges for thread ID depends on the data movement direction:
for source thread IDs (rx): 0 - 0x7fff
for destination thread IDs (tx): 0x8000 - 0xffff
Please refer to the device documentation for the PSI-L thread map and
also the PSI-L peripheral chapter for the correct thread ID.
if cell 1 is 1 or 2 (block copy channel using global trigger):
Unused, ignored
The trigger must be configured for the channel externally to BCDMA,
channels using global triggers should not be requested directly, but
via DMA event router.
if cell 1 is 3 (block copy channel using local trigger):
bchan number of the locally triggered channel
cell 3: ASEL value for the channel
msi-parent — required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Power domain if available
Maximum number of items (maxItems): 1
ti,asel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ASEL value for non slave channels
ti,sci-rm-range-bchan — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of BCDMA block-copy channel resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
ti,sci-rm-range-tchan — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of BCDMA split tx channel resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
ti,sci-rm-range-rchan — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of BCDMA split rx channel resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
Required in this object (required): "compatible", "#dma-cells", "reg", "reg-names", "msi-parent", "ti,sci", "ti,sci-dev-id", "ti,sci-rm-range-rchan"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/dma/dma-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/arm/keystone/ti,k3-sci-common.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,am62a-dmss-bcdma-csirx"When the condition matches (
then) #Properties and child nodes (
properties)
ti,sci-rm-range-bchan— not listed as required here
false— Not permitted by this property rule.
ti,sci-rm-range-tchan— not listed as required here
false— Not permitted by this property rule.
reg— not listed as required hereArray item rules (
items)Item 1
BCDMA Control /Status Registers region
Item 2
RX Channel Realtime Registers region
Item 3
Ring Realtime Registers region
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gcfg"Item 2
Exact value (
const):"rchanrt"Item 3
Exact value (
const):"ringrt"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,am64-dmss-bcdma"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):5Array item rules (
items)Item 1
BCDMA Control /Status Registers region
Item 2
Block Copy Channel Realtime Registers region
Item 3
RX Channel Realtime Registers region
Item 4
TX Channel Realtime Registers region
Item 5
Ring Realtime Registers region
Item 6
Ring Configuration Registers region
Item 7
TX Channel Configuration Registers region
Item 8
RX Channel Configuration Registers region
Item 9
Block Copy Channel Configuration Registers region
reg-names— not listed as required hereMinimum number of items (
minItems):5Array item rules (
items)Item 1
Exact value (
const):"gcfg"Item 2
Exact value (
const):"bchanrt"Item 3
Exact value (
const):"rchanrt"Item 4
Exact value (
const):"tchanrt"Item 5
Exact value (
const):"ringrt"Item 6
Exact value (
const):"ring"Item 7
Exact value (
const):"tchan"Item 8
Exact value (
const):"rchan"Item 9
Exact value (
const):"bchan"Required in this object (
required):"ti,sci-rm-range-bchan","ti,sci-rm-range-tchan"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,j721s2-dmss-bcdma-csi","ti,j722s-dmss-bcdma-csi"When the condition matches (
then) #Properties and child nodes (
properties)
ti,sci-rm-range-bchan— not listed as required here
false— Not permitted by this property rule.
reg— not listed as required hereArray item rules (
items)Item 1
BCDMA Control /Status Registers region
Item 2
RX Channel Realtime Registers region
Item 3
TX Channel Realtime Registers region
Item 4
Ring Realtime Registers region
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gcfg"Item 2
Exact value (
const):"rchanrt"Item 3
Exact value (
const):"tchanrt"Item 4
Exact value (
const):"ringrt"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
cbass_main {
#address-cells = <2>;
#size-cells = <2>;
main_dmss {
compatible = "simple-mfd";
#address-cells = <2>;
#size-cells = <2>;
dma-ranges;
ranges;
ti,sci-dev-id = <25>;
main_bcdma: dma-controller@485c0100 {
compatible = "ti,am64-dmss-bcdma";
reg = <0x0 0x485c0100 0x0 0x100>,
<0x0 0x4c000000 0x0 0x20000>,
<0x0 0x4a820000 0x0 0x20000>,
<0x0 0x4aa40000 0x0 0x20000>,
<0x0 0x4bc00000 0x0 0x100000>,
<0x0 0x48600000 0x0 0x8000>,
<0x0 0x484a4000 0x0 0x2000>,
<0x0 0x484c2000 0x0 0x2000>,
<0x0 0x48420000 0x0 0x2000>;
reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", "ringrt",
"ring", "tchan", "rchan", "bchan";
msi-parent = <&inta_main_dmss>;
#dma-cells = <3>;
ti,sci = <&dmsc>;
ti,sci-dev-id = <26>;
ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */
ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */
ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2020 Texas Instruments Incorporated
Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
Line 93: Should be enough
Line 104: Should be enough
Line 115: Should be enough
Texas Instruments K3 DMSS PKTDMA
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / ti
Schema identifier ($id): "http://devicetree.org/schemas/dma/ti/k3-pktdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
The Packet DMA (PKTDMA) is intended to perform similar functions as the packet mode channels of K3 UDMA-P. PKTDMA only includes Split channels to service PSI-L based peripherals.
The peripherals can be PSI-L native or legacy, non PSI-L native peripherals with PDMAs. PDMA is tasked to act as a bridge between the PSI-L fabric and the legacy peripheral.
PDMAs can be configured via PKTDMA split channel's peer registers to match with the configuration of the legacy peripheral.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/dma/dma-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/arm/keystone/ti,k3-sci-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,am64-dmss-pktdma"
#dma-cells — required here #
Exact value (const): 2
The first cell is the PSI-L thread ID of the remote (to PKTDMA) end. Valid ranges for thread ID depends on the data movement direction: for source thread IDs (rx): 0 - 0x7fff for destination thread IDs (tx): 0x8000 - 0xffff
Please refer to the device documentation for the PSI-L thread map and also the PSI-L peripheral chapter for the correct thread ID.
The second cell is the ASEL value for the channel
reg — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Packet DMA Control /Status Registers region
Item 2
RX Channel Realtime Registers region
Item 3
TX Channel Realtime Registers region
Item 4
Ring Realtime Registers region
Item 5
Ring Configuration Registers region
Item 6
TX Configuration Registers region
Item 7
RX Configuration Registers region
Item 8
RX Flow Configuration Registers region
reg-names — required here #
Minimum number of items (minItems): 4
Array item rules (items) #
Item 1
Exact value (
const):"gcfg"
Item 2
Exact value (
const):"rchanrt"
Item 3
Exact value (
const):"tchanrt"
Item 4
Exact value (
const):"ringrt"
Item 5
Exact value (
const):"ring"
Item 6
Exact value (
const):"tchan"
Item 7
Exact value (
const):"rchan"
Item 8
Exact value (
const):"rflow"
msi-parent — required here #
true — No constraints added by this property rule.
ti,sci-rm-range-tchan — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of PKTDMA split tx channel resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
ti,sci-rm-range-tflow — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of PKTDMA split tx flow resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
ti,sci-rm-range-rchan — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of PKTDMA split rx channel resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
ti,sci-rm-range-rflow — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of PKTDMA split rx flow resource subtypes for resource allocation for this host
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Array item rules (items) #
Maximum value (
maximum):63
Required in this object (required): "compatible", "#dma-cells", "reg", "reg-names", "msi-parent", "ti,sci", "ti,sci-dev-id", "ti,sci-rm-range-tchan", "ti,sci-rm-range-tflow", "ti,sci-rm-range-rchan", "ti,sci-rm-range-rflow"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
cbass_main {
#address-cells = <2>;
#size-cells = <2>;
main_dmss {
compatible = "simple-mfd";
#address-cells = <2>;
#size-cells = <2>;
dma-ranges;
ranges;
ti,sci-dev-id = <25>;
main_pktdma: dma-controller@485c0000 {
compatible = "ti,am64-dmss-pktdma";
reg = <0x0 0x485c0000 0x0 0x100>,
<0x0 0x4a800000 0x0 0x20000>,
<0x0 0x4aa00000 0x0 0x40000>,
<0x0 0x4b800000 0x0 0x400000>,
<0x0 0x485e0000 0x0 0x20000>,
<0x0 0x484a0000 0x0 0x4000>,
<0x0 0x484c0000 0x0 0x2000>,
<0x0 0x48430000 0x0 0x4000>;
reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt",
"ring", "tchan", "rchan", "rflow";
msi-parent = <&inta_main_dmss>;
#dma-cells = <2>;
ti,sci = <&dmsc>;
ti,sci-dev-id = <30>;
ti,sci-rm-range-tchan = <0x23>, /* UNMAPPED_TX_CHAN */
<0x24>, /* CPSW_TX_CHAN */
<0x25>, /* SAUL_TX_0_CHAN */
<0x26>, /* SAUL_TX_1_CHAN */
<0x27>, /* ICSSG_0_TX_CHAN */
<0x28>; /* ICSSG_1_TX_CHAN */
ti,sci-rm-range-tflow = <0x10>, /* RING_UNMAPPED_TX_CHAN */
<0x11>, /* RING_CPSW_TX_CHAN */
<0x12>, /* RING_SAUL_TX_0_CHAN */
<0x13>, /* RING_SAUL_TX_1_CHAN */
<0x14>, /* RING_ICSSG_0_TX_CHAN */
<0x15>; /* RING_ICSSG_1_TX_CHAN */
ti,sci-rm-range-rchan = <0x29>, /* UNMAPPED_RX_CHAN */
<0x2b>, /* CPSW_RX_CHAN */
<0x2d>, /* SAUL_RX_0_CHAN */
<0x2f>, /* SAUL_RX_1_CHAN */
<0x31>, /* SAUL_RX_2_CHAN */
<0x33>, /* SAUL_RX_3_CHAN */
<0x35>, /* ICSSG_0_RX_CHAN */
<0x37>; /* ICSSG_1_RX_CHAN */
ti,sci-rm-range-rflow = <0x2a>, /* FLOW_UNMAPPED_RX_CHAN */
<0x2c>, /* FLOW_CPSW_RX_CHAN */
<0x2e>, /* FLOW_SAUL_RX_0/1_CHAN */
<0x32>, /* FLOW_SAUL_RX_2/3_CHAN */
<0x36>, /* FLOW_ICSSG_0_RX_CHAN */
<0x38>; /* FLOW_ICSSG_1_RX_CHAN */
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2020 Texas Instruments Incorporated
Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
Line 79: Should be enough
Line 90: Should be enough
Line 101: Should be enough
Line 112: Should be enough
Texas Instruments K3 NAVSS Unified DMA
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / ti
Schema identifier ($id): "http://devicetree.org/schemas/dma/ti/k3-udma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
The UDMA-P is intended to perform similar (but significantly upgraded) functions as the packet-oriented DMA used on previous SoC devices. The UDMA-P module supports the transmission and reception of various packet types. The UDMA-P architecture facilitates the segmentation and reassembly of SoC DMA data structure compliant packets to/from smaller data blocks that are natively compatible with the specific requirements of each connected peripheral. Multiple Tx and Rx channels are provided within the DMA which allow multiple segmentation or reassembly operations to be ongoing. The DMA controller maintains state information for each of the channels which allows packet segmentation and reassembly operations to be time division multiplexed between channels in order to share the underlying DMA hardware. An external DMA scheduler is used to control the ordering and rate at which this multiplexing occurs for Transmit operations. The ordering and rate of Receive operations is indirectly controlled by the order in which blocks are pushed into the DMA on the Rx PSI-L interface.
The UDMA-P also supports acting as both a UTC and UDMA-C for its internal channels. Channels in the UDMA-P can be configured to be either Packet-Based or Third-Party channels on a channel by channel basis.
All transfers within NAVSS is done between PSI-L source and destination threads. The peripherals serviced by UDMA can be PSI-L native (sa2ul, cpsw, etc) or legacy, non PSI-L native peripherals. In the later case a special, small PDMA is tasked to act as a bridge between the PSI-L fabric and the legacy peripheral.
PDMAs can be configured via UDMAP peer registers to match with the configuration of the legacy peripheral.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../dma-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/arm/keystone/ti,k3-sci-common.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Minimum value (minimum): 1
Maximum value (maximum): 2
The cell is the PSI-L thread ID of the remote (to UDMAP) end. Valid ranges for thread ID depends on the data movement direction: for source thread IDs (rx): 0 - 0x7fff for destination thread IDs (tx): 0x8000 - 0xffff
Please refer to the device documentation for the PSI-L thread map and also the PSI-L peripheral chapter for the correct thread ID.
When #dma-cells is 2, the second parameter is the channel ATYPE.
compatible — required here #
Allowed values (enum): "ti,am654-navss-main-udmap", "ti,am654-navss-mcu-udmap", "ti,j721e-navss-main-udmap", "ti,j721e-navss-mcu-udmap"
reg — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
UDMA-P Control /Status Registers region
Item 2
RX Channel Realtime Registers region
Item 3
TX Channel Realtime Registers region
Item 4
TX Configuration Registers region
Item 5
RX Configuration Registers region
Item 6
RX Flow Configuration Registers region
reg-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"gcfg"
Item 2
Exact value (
const):"rchanrt"
Item 3
Exact value (
const):"tchanrt"
Item 4
Exact value (
const):"tchan"
Item 5
Exact value (
const):"rchan"
Item 6
Exact value (
const):"rflow"
msi-parent — required here #
true — No constraints added by this property rule.
ti,ringacc — required here #
phandle to the ring accelerator node
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
ti,sci-rm-range-tchan — required here #
Array of UDMA tchan resource subtypes for resource allocation for this host
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
ti,sci-rm-range-rchan — required here #
Array of UDMA rchan resource subtypes for resource allocation for this host
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
ti,sci-rm-range-rflow — required here #
Array of UDMA rflow resource subtypes for resource allocation for this host
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
Required in this object (required): "compatible", "#dma-cells", "reg", "reg-names", "msi-parent", "ti,sci", "ti,sci-dev-id", "ti,ringacc", "ti,sci-rm-range-tchan", "ti,sci-rm-range-rchan", "ti,sci-rm-range-rflow"
Condition (if) #
Properties and child nodes (
properties) #
#dma-cells— not listed as required here #Exact value (
const):2
When the condition matches (then) #
Properties and child nodes (
properties) #
ti,udma-atype— required here #ATYPE value which should be used by non slave channels
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
cbass_main {
#address-cells = <2>;
#size-cells = <2>;
cbass_main_navss: navss@30800000 {
compatible = "simple-mfd";
#address-cells = <2>;
#size-cells = <2>;
dma-coherent;
dma-ranges;
ranges = <0x0 0x30800000 0x0 0x30800000 0x0 0x05000000>;
ti,sci-dev-id = <118>;
main_udmap: dma-controller@31150000 {
compatible = "ti,am654-navss-main-udmap";
reg = <0x0 0x31150000 0x0 0x100>,
<0x0 0x34000000 0x0 0x100000>,
<0x0 0x35000000 0x0 0x100000>,
<0x0 0x30b00000 0x0 0x20000>,
<0x0 0x30c00000 0x0 0x8000>,
<0x0 0x30d00000 0x0 0x4000>;
reg-names = "gcfg", "rchanrt", "tchanrt", "tchan", "rchan", "rflow";
#dma-cells = <1>;
ti,ringacc = <&ringacc>;
msi-parent = <&inta_main_udmass>;
ti,sci = <&dmsc>;
ti,sci-dev-id = <188>;
ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
<0x2>; /* TX_CHAN */
ti,sci-rm-range-rchan = <0x4>, /* RX_HCHAN */
<0x5>; /* RX_CHAN */
ti,sci-rm-range-rflow = <0x6>; /* GP RFLOW */
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2019 Texas Instruments Incorporated
Line 3: Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
Line 103: Should be enough
Line 112: Should be enough
Line 121: Should be enough
Xilinx ZynqMP DMA Engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / xilinx
Schema identifier ($id): "http://devicetree.org/schemas/dma/xilinx/xlnx,zynqmp-dma-1.0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Xilinx ZynqMP DMA engine supports memory to memory transfers, memory to device and device to memory transfers. It also has flow control and rate control support for slave/peripheral dma access.
Maintainers (maintainers): "Michael Tretter <m.tretter@pengutronix.de>", "Harini Katakam <harini.katakam@amd.com>", "Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Exact value (const): 1
compatible — required here #
Allowed values (enum): "amd,versal2-dma-1.0", "xlnx,zynqmp-dma-1.0"
reg — required here #
memory map for gdma/adma module access
Maximum number of items (maxItems): 1
interrupts — required here #
DMA channel interrupt
Maximum number of items (maxItems): 1
clocks — required here #
input clocks
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk_main"
Item 2
Exact value (
const):"clk_apb"
xlnx,bus-width — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 64, 128
AXI bus width in bits
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "xlnx,bus-width"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
fpd_dma_chan1: dma-controller@fd500000 {
compatible = "xlnx,zynqmp-dma-1.0";
reg = <0xfd500000 0x1000>;
interrupt-parent = <&gic>;
interrupts = <0 117 0x4>;
#dma-cells = <1>;
clock-names = "clk_main", "clk_apb";
clocks = <&zynqmp_clk 19>, <&zynqmp_clk 31>;
xlnx,bus-width = <128>;
dma-coherent;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx ZynqMP DisplayPort DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings / xilinx
Schema identifier ($id): "http://devicetree.org/schemas/dma/xilinx/xlnx,zynqmp-dpdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
These bindings describe the DMA engine included in the Xilinx ZynqMP DisplayPort Subsystem. The DMA engine supports up to 6 DMA channels (3 channels for a video stream, 1 channel for a graphics stream, and 2 channels for an audio stream).
Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart@ideasonboard.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):../dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Exact value (const): 1
The cell is the DMA channel ID (see dt-bindings/dma/xlnx-zynqmp-dpdma.h for a list of channel IDs).
compatible — required here #
Exact value (const): "xlnx,zynqmp-dpdma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
The AXI clock
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "axi_clk"
power-domains — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"
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/power/xlnx-zynqmp-power.h>
dma: dma-controller@fd4c0000 {
compatible = "xlnx,zynqmp-dpdma";
reg = <0xfd4c0000 0x1000>;
interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
clocks = <&dpdma_clk>;
clock-names = "axi_clk";
#dma-cells = <1>;
power-domains = <&zynqmp_firmware PD_DP>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Analog Devices AXI-DMAC DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/adi,axi-dmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
FPGA-based DMA controller designed for use with high-speed converter hardware.
http://analogdevicesinc.github.io/hdl/library/axi_dmac/index.html
Maintainers (maintainers): "Nuno Sa <nuno.sa@analog.com>"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,axi-dmac-1.00.a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
adi,channels — not listed as required here #
Deprecated (deprecated): true
Value type (type): "object"
This sub-node must contain a sub-node for each DMA channel. This node is only required for IP versions older than 4.3.a and should otherwise be omitted.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#size-cells — required here
Exact value (const): 0
#address-cells — required here
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^dma-channel@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
DMA channel properties based on HDL compile-time configuration.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
adi,source-bus-width — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Width of the source bus in bits.
Allowed values (enum): 8, 16, 32, 64, 128
adi,destination-bus-width — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Width of the destination bus in bits.
Allowed values (enum): 8, 16, 32, 64, 128
adi,source-bus-type — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Type of the source bus.
0: Memory mapped AXI interface 1: Streaming AXI interface 2: FIFO interface
Allowed values (enum): 0, 1, 2
adi,destination-bus-type — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Type of the destination bus (see adi,source-bus-type).
Allowed values (enum): 0, 1, 2
adi,length-width — not listed as required here
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Width of the DMA transfer length register.
adi,cyclic — not listed as required here
Deprecated (deprecated): true
Value type (type): "boolean"
Must be set if the channel supports hardware cyclic DMA transfers.
adi,2d — not listed as required here
Deprecated (deprecated): true
Value type (type): "boolean"
Must be set if the channel supports hardware 2D DMA transfers.
Required in this object (required): "reg", "adi,source-bus-width", "adi,destination-bus-width", "adi,source-bus-type", "adi,destination-bus-type"
Required in this object (required): "#size-cells", "#address-cells"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#dma-cells"
Examples (examples) #
dma-controller@7c420000 {
compatible = "adi,axi-dmac-1.00.a";
reg = <0x7c420000 0x10000>;
interrupts = <0 57 0>;
clocks = <&clkc 16>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allwinner A10 DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/allwinner,sun4i-a10-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Exact value (const): 2
The first cell is either 0 or 1, the former to use the normal DMA, 1 for dedicated DMA. The second cell is the request line number.
compatible — required here #
Allowed values (enum): "allwinner,sun4i-a10-dma", "allwinner,suniv-f1c100s-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma: dma-controller@1c02000 {
compatible = "allwinner,sun4i-a10-dma";
reg = <0x01c02000 0x1000>;
interrupts = <27>;
clocks = <&ahb_gates 6>;
#dma-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Allwinner A64 DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/allwinner,sun50i-a64-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Exact value (const): 1
The cell is the request line number.
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"allwinner,sun20i-d1-dma","allwinner,sun50i-a64-dma","allwinner,sun50i-a100-dma","allwinner,sun50i-h6-dma"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun8i-r40-dma"Item 2
Exact value (
const):"allwinner,sun50i-a64-dma"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun50i-h616-dma","allwinner,sun55i-a523-dma","allwinner,sun55i-a523-mcu-dma"Item 2
Exact value (
const):"allwinner,sun50i-a100-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"bus"
Item 2
Exact value (
const):"mbus"
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "clocks", "resets", "dma-channels"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun20i-d1-dma","allwinner,sun50i-a100-dma","allwinner,sun50i-h6-dma"
When the condition matches (then) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Minimum number of items (
minItems):2
When the condition does not match (else) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Maximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma: dma-controller@1c02000 {
compatible = "allwinner,sun50i-a64-dma";
reg = <0x01c02000 0x1000>;
interrupts = <0 50 4>;
clocks = <&ccu 30>;
dma-channels = <8>;
dma-requests = <27>;
resets = <&ccu 7>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Allwinner A31 DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/allwinner,sun6i-a31-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Exact value (const): 1
The cell is the request line number.
compatible — required here #
Allowed values (enum): "allwinner,sun6i-a31-dma", "allwinner,sun8i-a23-dma", "allwinner,sun8i-a83t-dma", "allwinner,sun8i-h3-dma", "allwinner,sun8i-v3s-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "clocks", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma: dma-controller@1c02000 {
compatible = "allwinner,sun6i-a31-dma";
reg = <0x01c02000 0x1000>;
interrupts = <0 50 4>;
clocks = <&ahb1_gates 6>;
resets = <&ahb1_rst 6>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Altera mSGDMA IP core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/altr,msgdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Olivier Dautricourt <olivierdautricourt@gmail.com>"
Altera / Intel modular Scatter-Gather Direct Memory Access (mSGDMA) intellectual property (IP)
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): "altr,socfpga-msgdma"
reg — required here #
Array item rules (items) #
Item 1
Control and Status Register Slave Port
Item 2
Descriptor Slave Port
Item 3
Response Slave Port (Optional)
Minimum number of items (minItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"csr"
Item 2
Exact value (
const):"desc"
Item 3
Exact value (
const):"resp"
Minimum number of items (minItems): 2
interrupts — required here #
Maximum number of items (maxItems): 1
#dma-cells — not listed as required here #
Exact value (const): 1
The cell identifies the channel id (must be 0)
Required in this object (required): "compatible", "reg", "reg-names", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
msgdma_controller: dma-controller@ff200b00 {
compatible = "altr,socfpga-msgdma";
reg = <0xff200b00 0x100>, <0xff200c00 0x100>, <0xff200d00 0x100>;
reg-names = "csr", "desc", "resp";
interrupts = <0 67 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
APM X-Gene Storm SoC DMA
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/apm,xgene-storm-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Khuong Dinh <khuong@os.amperecomputing.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "apm,xgene-storm-dma"
reg — required here #
Array item rules (items) #
Item 1
DMA control and status registers
Item 2
Descriptor ring control and status registers
Item 3
Descriptor ring command registers
Item 4
SoC efuse registers
interrupts — required here #
Array item rules (items) #
Item 1
DMA error reporting interrupt
Item 2
DMA channel 0 completion interrupt
Item 3
DMA channel 1 completion interrupt
Item 4
DMA channel 2 completion interrupt
Item 5
DMA channel 3 completion interrupt
clocks — required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma@1f270000 {
compatible = "apm,xgene-storm-dma";
reg = <0x1f270000 0x10000>,
<0x1f200000 0x10000>,
<0x1b000000 0x400000>,
<0x1054a000 0x100>;
interrupts = <0x0 0x82 0x4>,
<0x0 0xb8 0x4>,
<0x0 0xb9 0x4>,
<0x0 0xba 0x4>,
<0x0 0xbb 0x4>;
dma-coherent;
clocks = <&dmaclk 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Apple Audio DMA Controller (ADMAC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/apple,admac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Apple's Audio DMA Controller (ADMAC) is used to fetch and store audio samples on SoCs from the "Apple Silicon" family.
The controller has been seen with up to 24 channels. Even-numbered channels are TX-only, odd-numbered are RX-only. Individual channels are coupled to fixed device endpoints.
Maintainers (maintainers): "Martin Povišer <povik+lin@cutebit.org>"
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
Array item rules (
items)Item 1
Exact value (
const):"apple,t6020-admac"Item 2
Exact value (
const):"apple,t8103-admac"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t6000-admac","apple,t8103-admac","apple,t8112-admac"Item 2
Exact value (
const):"apple,admac"
reg — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
Clients specify a single cell with channel number.
dma-channels — required here #
Maximum value (maximum): 24
interrupts — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
Interrupts that correspond to the 4 IRQ outputs of the controller. Usually only one of the controller outputs will be connected as an usable interrupt source. The remaining interrupts will be left without a valid value, e.g. in an interrupts-extended list the disconnected positions will contain an empty phandle reference <0>.
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#dma-cells", "dma-channels", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
aic: interrupt-controller {
interrupt-controller;
#interrupt-cells = <3>;
};
admac: dma-controller@238200000 {
compatible = "apple,t8103-admac", "apple,admac";
reg = <0x38200000 0x34000>;
dma-channels = <24>;
interrupts-extended = <0>,
<&aic AIC_IRQ 626 IRQ_TYPE_LEVEL_HIGH>,
<0>,
<0>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 31: Do not add additional SoC to this list.
Arm CoreLink DMA-350 Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/arm,dma-350.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Robin Murphy <robin.murphy@arm.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 #
Exact value (const): "arm,dma-350"
reg — required here #
Array item rules (items) #
Item 1
Base and size of the full register map
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Channel 0 interrupt
Item 2
Channel 1 interrupt
Item 3
Channel 2 interrupt
Item 4
Channel 3 interrupt
Item 5
Channel 4 interrupt
Item 6
Channel 5 interrupt
Item 7
Channel 6 interrupt
Item 8
Channel 7 interrupt
#dma-cells — not listed as required here #
Exact value (const): 1
The cell is the trigger input number
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ARM PrimeCell PL330 DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/arm,pl330.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"
The ARM PrimeCell PL330 DMA controller can move blocks of memory contents between memory and peripherals or memory to memory.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"arm,pl330"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/arm/primecell.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
A single combined interrupt or an interrupt per event
#dma-cells — not listed as required here #
Exact value (const): 1
Contains the DMA request number for the consumer
arm,pl330-broken-no-flushp — not listed as required here #
Value type (type): "boolean"
quirk for avoiding to execute DMAFLUSHP
arm,pl330-periph-burst — not listed as required here #
Value type (type): "boolean"
quirk for performing burst transfer only
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
Up to 1 IOMMU entry per DMA channel for writes and 1 IOMMU entry for reads.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reset-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"dma"
Item 2
Exact value (
const):"dma-ocp"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-controller@12680000 {
compatible = "arm,pl330", "arm,primecell";
reg = <0x12680000 0x1000>;
interrupts = <99>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: We need a select here so we don't match all nodes with 'arm,primecell'
ARM PrimeCell PL080 and PL081 and derivatives DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/arm-pl08x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/arm/primecell.yaml#
Rule 2 #
Shared schema rule (
$ref):dma-controller.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"arm,primecell"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"faraday,ftdma020"Item 2
Exact value (
const):"arm,pl080"Item 3
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
Address range of the PL08x registers
interrupts — required here #
Minimum number of items (minItems): 1
The PL08x interrupt number
clocks — required here #
Minimum number of items (minItems): 1
The clock running the IP core clock
clock-names — required here #
Maximum number of items (maxItems): 1
lli-bus-interface-ahb1 — not listed as required here #
Value type (type): "boolean"
if AHB master 1 is eligible for fetching LLIs
lli-bus-interface-ahb2 — not listed as required here #
Value type (type): "boolean"
if AHB master 2 is eligible for fetching LLIs
mem-bus-interface-ahb1 — not listed as required here #
Value type (type): "boolean"
if AHB master 1 is eligible for fetching memory contents
mem-bus-interface-ahb2 — not listed as required here #
Value type (type): "boolean"
if AHB master 2 is eligible for fetching memory contents
memcpy-burst-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 4, 8, 16, 32, 64, 128, 256
the size of the bursts for memcpy
memcpy-bus-width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32, 64
bus width used for memcpy in bits. FTDMAC020 also accept 64 bits
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "reg", "interrupts", "clocks", "clock-names", "#dma-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dmac0: dma-controller@10130000 {
compatible = "arm,pl080", "arm,primecell";
reg = <0x10130000 0x1000>;
interrupt-parent = <&vica>;
interrupts = <15>;
clocks = <&hclkdma0>;
clock-names = "apb_pclk";
lli-bus-interface-ahb1;
lli-bus-interface-ahb2;
mem-bus-interface-ahb2;
memcpy-burst-size = <256>;
memcpy-bus-width = <32>;
#dma-cells = <2>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/reset/cortina,gemini-reset.h>
#include <dt-bindings/clock/cortina,gemini-clock.h>
dma-controller@67000000 {
compatible = "faraday,ftdma020", "arm,pl080", "arm,primecell";
/* Faraday Technology FTDMAC020 variant */
arm,primecell-periphid = <0x0003b080>;
reg = <0x67000000 0x1000>;
interrupts = <9 IRQ_TYPE_EDGE_RISING>;
resets = <&syscon GEMINI_RESET_DMAC>;
clocks = <&syscon GEMINI_CLK_AHB>;
clock-names = "apb_pclk";
/* Bus interface AHB1 (AHB0) is totally tilted */
lli-bus-interface-ahb2;
mem-bus-interface-ahb2;
memcpy-burst-size = <256>;
memcpy-bus-width = <32>;
#dma-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 16: We need a select here so we don't match all nodes with 'arm,primecell'
Atmel Direct Memory Access Controller (DMA)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/atmel,at91sam9g45-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ludovic Desroches <ludovic.desroches@microchip.com>"
The Atmel Direct Memory Access Controller (DMAC) transfers data from a source peripheral to a destination peripheral over one or more AMBA buses. One channel is required for each source/destination pair. In the most basic configuration, the DMAC has one master interface and one channel. The master interface reads the data from a source and writes it to a destination. Two AMBA transfers are required for each DMAC data transfer. This is also known as a dual-access transfer. The DMAC is programmed via the APB interface.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atmel,at91sam9g45-dma", "atmel,at91sam9rl-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Must be <2>, used to represent the number of integer cells in the dma property of client devices. The two cells in order are 1. The first cell represents the channel number. 2. The second cell is 0 for RX and 1 for TX transfers.
Exact value (const): 2
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "dma_clk"
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-controller@ffffec00 {
compatible = "atmel,at91sam9g45-dma";
reg = <0xffffec00 0x200>;
interrupts = <21>;
#dma-cells = <2>;
clocks = <&pmc 2 20>;
clock-names = "dma_clk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip AT91 Extensible Direct Memory Access Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/atmel,sama5d4-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Charan Pedumuru <charan.pedumuru@microchip.com>"
The DMA Controller (XDMAC) is a AHB-protocol central direct memory access controller. It performs peripheral data transfer and memory move operations over one or two bus ports through the unidirectional communication channel. Each channel is fully programmable and provides both peripheral or memory-to-memory transfers. The channel features are configurable at implementation.
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):"atmel,sama5d4-dma","microchip,sama7g5-dma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,sam9x60-dma","microchip,sam9x7-dma"Item 2
Exact value (
const):"atmel,sama5d4-dma"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,lan9691-dma","microchip,sama7d65-dma"Item 2
Exact value (
const):"microchip,sama7g5-dma"
#dma-cells — required here #
Represents the number of integer cells in the `dmas` property of client
devices. The single cell specifies the channel configuration register:
- bit 13: SIF (Source Interface Identifier) for memory interface.
- bit 14: DIF (Destination Interface Identifier) for peripheral interface.
- bit 30-24: PERID (Peripheral Identifier).
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "dma_clk"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "#dma-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/at91.h>
#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
dma-controller@f0008000 {
compatible = "atmel,sama5d4-dma";
reg = <0xf0008000 0x1000>;
interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
#dma-cells = <1>;
clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
clock-names = "dma_clk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
BCM2835 DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
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)
Broadcom SBA RAID engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/brcm,iproc-sba.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ray Jui <rjui@broadcom.com>", "Scott Branden <sbranden@broadcom.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "brcm,iproc-sba", "brcm,iproc-sba-v2"
mboxes — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "compatible", "mboxes"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
raid0 {
compatible = "brcm,iproc-sba-v2";
mboxes = <&raid_mbox 0 0x1 0xffff>,
<&raid_mbox 1 0x1 0xffff>,
<&raid_mbox 2 0x1 0xffff>,
<&raid_mbox 3 0x1 0xffff>,
<&raid_mbox 4 0x1 0xffff>,
<&raid_mbox 5 0x1 0xffff>,
<&raid_mbox 6 0x1 0xffff>,
<&raid_mbox 7 0x1 0xffff>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cirrus Logic ep93xx SoC DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2m.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"
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):"cirrus,ep9301-dma-m2m"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9302-dma-m2m","cirrus,ep9307-dma-m2m","cirrus,ep9312-dma-m2m","cirrus,ep9315-dma-m2m"Item 2
Exact value (
const):"cirrus,ep9301-dma-m2m"
reg — required here #
Array item rules (items) #
Item 1
m2m0 channel registers
Item 2
m2m1 channel registers
clocks — required here #
Array item rules (items) #
Item 1
m2m0 channel gate clock
Item 2
m2m1 channel gate clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"m2m0"
Item 2
Exact value (
const):"m2m1"
interrupts — required here #
Array item rules (items) #
Item 1
m2m0 channel interrupt
Item 2
m2m1 channel interrupt
#dma-cells — not listed as required here #
Exact value (const): 2
The first cell is the unique device channel number as indicated by this table for ep93xx:
10: SPI controller 11: IDE controller
The second cell is the DMA direction line number:
1: Memory to device 2: Device to memory
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/cirrus,ep9301-syscon.h>
dma-controller@80000100 {
compatible = "cirrus,ep9301-dma-m2m";
reg = <0x80000100 0x0040>,
<0x80000140 0x0040>;
clocks = <&syscon EP93XX_CLK_M2M0>,
<&syscon EP93XX_CLK_M2M1>;
clock-names = "m2m0", "m2m1";
interrupt-parent = <&vic0>;
interrupts = <17>, <18>;
#dma-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cirrus Logic ep93xx SoC M2P DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/cirrus,ep9301-dma-m2p.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"
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):"cirrus,ep9301-dma-m2p"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9302-dma-m2p","cirrus,ep9307-dma-m2p","cirrus,ep9312-dma-m2p","cirrus,ep9315-dma-m2p"Item 2
Exact value (
const):"cirrus,ep9301-dma-m2p"
reg — required here #
Array item rules (items) #
Item 1
m2p0 channel registers
Item 2
m2p1 channel registers
Item 3
m2p2 channel registers
Item 4
m2p3 channel registers
Item 5
m2p4 channel registers
Item 6
m2p5 channel registers
Item 7
m2p6 channel registers
Item 8
m2p7 channel registers
Item 9
m2p8 channel registers
Item 10
m2p9 channel registers
clocks — required here #
Array item rules (items) #
Item 1
m2p0 channel gate clock
Item 2
m2p1 channel gate clock
Item 3
m2p2 channel gate clock
Item 4
m2p3 channel gate clock
Item 5
m2p4 channel gate clock
Item 6
m2p5 channel gate clock
Item 7
m2p6 channel gate clock
Item 8
m2p7 channel gate clock
Item 9
m2p8 channel gate clock
Item 10
m2p9 channel gate clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"m2p0"
Item 2
Exact value (
const):"m2p1"
Item 3
Exact value (
const):"m2p2"
Item 4
Exact value (
const):"m2p3"
Item 5
Exact value (
const):"m2p4"
Item 6
Exact value (
const):"m2p5"
Item 7
Exact value (
const):"m2p6"
Item 8
Exact value (
const):"m2p7"
Item 9
Exact value (
const):"m2p8"
Item 10
Exact value (
const):"m2p9"
interrupts — required here #
Array item rules (items) #
Item 1
m2p0 channel interrupt
Item 2
m2p1 channel interrupt
Item 3
m2p2 channel interrupt
Item 4
m2p3 channel interrupt
Item 5
m2p4 channel interrupt
Item 6
m2p5 channel interrupt
Item 7
m2p6 channel interrupt
Item 8
m2p7 channel interrupt
Item 9
m2p8 channel interrupt
Item 10
m2p9 channel interrupt
#dma-cells — not listed as required here #
Exact value (const): 2
The first cell is the unique device channel number as indicated by this table for ep93xx:
0: I2S channel 1 1: I2S channel 2 (unused) 2: AC97 channel 1 (unused) 3: AC97 channel 2 (unused) 4: AC97 channel 3 (unused) 5: I2S channel 3 (unused) 6: UART1 (unused) 7: UART2 (unused) 8: UART3 (unused) 9: IRDA (unused)
The second cell is the DMA direction line number:
1: Memory to device 2: Device to memory
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/cirrus,ep9301-syscon.h>
dma-controller@80000000 {
compatible = "cirrus,ep9301-dma-m2p";
reg = <0x80000000 0x0040>,
<0x80000040 0x0040>,
<0x80000080 0x0040>,
<0x800000c0 0x0040>,
<0x80000240 0x0040>,
<0x80000200 0x0040>,
<0x800002c0 0x0040>,
<0x80000280 0x0040>,
<0x80000340 0x0040>,
<0x80000300 0x0040>;
clocks = <&syscon EP93XX_CLK_M2P0>,
<&syscon EP93XX_CLK_M2P1>,
<&syscon EP93XX_CLK_M2P2>,
<&syscon EP93XX_CLK_M2P3>,
<&syscon EP93XX_CLK_M2P4>,
<&syscon EP93XX_CLK_M2P5>,
<&syscon EP93XX_CLK_M2P6>,
<&syscon EP93XX_CLK_M2P7>,
<&syscon EP93XX_CLK_M2P8>,
<&syscon EP93XX_CLK_M2P9>;
clock-names = "m2p0", "m2p1",
"m2p2", "m2p3",
"m2p4", "m2p5",
"m2p6", "m2p7",
"m2p8", "m2p9";
interrupt-parent = <&vic0>;
interrupts = <7>, <8>, <9>, <10>, <11>, <12>, <13>, <14>, <15>, <16>;
#dma-cells = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
DMA Engine Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/dma-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"
Generic binding to provide a way for a driver using DMA Engine to retrieve the DMA request or channel information that goes from a hardware device to a DMA controller.
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
#dma-cells — required here #
Minimum value (minimum): 1
Maximum value (maximum): 255
Used to provide DMA controller specific information.
dma-channel-mask — not listed as required here #
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. The first item in the array is for channels 0-31, the second is for channels 32-63, etc.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 255
dma-channels — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of DMA channels supported by the controller.
dma-requests — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of DMA request signals supported by the controller.
Required in this object (required): "#dma-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 22: Should be enough
Line 36: Should be enough
DMA Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/dma-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-common.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^dma-controller(@.*)?$"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 15: Everything else is described in the common file
DMA Router Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/dma-router.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-common.yaml#
DMA routers are transparent IP blocks used to route DMA request lines from devices to the DMA controller. Some SoCs (like TI DRA7x) have more peripherals integrated with DMA requests than what the DMA controller can handle directly.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^dma-router(@.*)?$"
dma-masters — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Maximum number of items (
maxItems):1
Array of phandles to the DMA controllers the router can direct the signal to.
dma-requests — not listed as required here #
Number of incoming request lines the router can handle.
Required in this object (required): "#dma-cells", "dma-masters"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Freescale enhanced Direct Memory Access(eDMA) Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,edma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The eDMA channels have multiplex capability by programmable memory-mapped registers. channels are split into two groups, called DMAMUX0 and DMAMUX1, specific DMA request source can only be multiplexed by any channel of certain group, DMAMUX0 or DMAMUX1, but not both.
Maintainers (maintainers): "Peng Fan <peng.fan@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,vf610-edma","fsl,imx7ulp-edma","fsl,imx8qm-edma","fsl,imx8ulp-edma","fsl,imx93-edma3","fsl,imx93-edma4","fsl,imx95-edma5","nxp,s32g2-edma"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx93-edma3"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx95-edma5"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"fsl,ls1028a-edma"Item 2
Exact value (
const):"fsl,vf610-edma"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"nxp,s32g3-edma"Item 2
Exact value (
const):"nxp,s32g2-edma"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 65
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 65
#dma-cells — required here #
Specifies the number of cells needed to encode an DMA channel.
Encode for cells number 2:
cell 0: index of dma channel mux instance.
cell 1: peripheral dma request id.
Encode for cells number 3:
cell 0: peripheral dma request id.
cell 1: dma channel priority.
cell 2: bitmask, defined at include/dt-bindings/dma/fsl-edma.h
dma-channels — required here #
Minimum value (minimum): 1
Maximum value (maximum): 64
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 33
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 33
power-domains — not listed as required here #
The number of power domains matches the number of channels, arranged in ascending order according to their associated DMA channels.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 64
big-endian — not listed as required here #
If present registers and hardware scatter/gather descriptors of the eDMA are implemented in big endian mode, otherwise in little mode.
Value type (type): "boolean"
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "dma-channels"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,imx8qm-edma","fsl,imx93-edma3","fsl,imx93-edma4","fsl,imx95-edma5"When the condition matches (
then) #Properties and child nodes (
properties)
#dma-cells— not listed as required hereExact value (
const):3
interrupt-names— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dma"
clocks— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,vf610-edma"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dmamux0"Item 2
Exact value (
const):"dmamux1"
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"edma-tx"Item 2
Exact value (
const):"edma-err"
reg— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):3
#dma-cells— not listed as required hereExact value (
const):2
dma-channels— not listed as required hereExact value (
const):32
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx7ulp-edma"When the condition matches (
then) #Properties and child nodes (
properties)
clock— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dma"Item 2
Exact value (
const):"dmamux0"
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):17
reg— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
#dma-cells— not listed as required hereExact value (
const):2
dma-channels— not listed as required hereExact value (
const):32
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx8ulp-edma"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):33
clock-names— not listed as required hereMinimum number of items (
minItems):33Array item rules (
items)Exactly one of these rules must match (
oneOf)Rule 1
Exact value (
const):"dma"Rule 2
String pattern (
pattern):"^ch(0[0-9]|[1-2][0-9]|3[01])$"
interrupt-names— not listed as required here
false— Not permitted by this property rule.
interrupts— not listed as required hereMinimum number of items (
minItems):32
#dma-cells— not listed as required hereExact value (
const):3
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,vf610-edma","fsl,imx7ulp-edma","fsl,imx93-edma3","fsl,imx93-edma4","fsl,imx95-edma5","fsl,imx8ulp-edma","fsl,ls1028a-edma"When the condition matches (
then) #
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
power-domains— not listed as required here
false— Not permitted by this property rule.
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"nxp,s32g2-edma"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"dmamux0"Item 2
Exact value (
const):"dmamux1"
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"tx-0-15"Item 2
Exact value (
const):"tx-16-31"Item 3
Exact value (
const):"err"
reg— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
#dma-cells— not listed as required hereExact value (
const):2
dma-channels— not listed as required hereExact value (
const):32
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/vf610-clock.h>
edma0: dma-controller@40018000 {
#dma-cells = <2>;
compatible = "fsl,vf610-edma";
reg = <0x40018000 0x2000>,
<0x40024000 0x1000>,
<0x40025000 0x1000>;
interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
<0 9 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "edma-tx", "edma-err";
dma-channels = <32>;
clock-names = "dmamux0", "dmamux1";
clocks = <&clks VF610_CLK_DMAMUX0>, <&clks VF610_CLK_DMAMUX1>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx7ulp-clock.h>
edma1: dma-controller@40080000 {
#dma-cells = <2>;
compatible = "fsl,imx7ulp-edma";
reg = <0x40080000 0x2000>,
<0x40210000 0x1000>;
dma-channels = <32>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
/* last is eDMA2-ERR interrupt */
<GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "dma", "dmamux0";
clocks = <&pcc2 IMX7ULP_CLK_DMA1>, <&pcc2 IMX7ULP_CLK_DMA_MUX1>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/firmware/imx/rsrc.h>
dma-controller@5a9f0000 {
compatible = "fsl,imx8qm-edma";
reg = <0x5a9f0000 0x90000>;
#dma-cells = <3>;
dma-channels = <8>;
interrupts = <GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 426 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 427 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 428 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 431 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&pd IMX_SC_R_DMA_3_CH0>,
<&pd IMX_SC_R_DMA_3_CH1>,
<&pd IMX_SC_R_DMA_3_CH2>,
<&pd IMX_SC_R_DMA_3_CH3>,
<&pd IMX_SC_R_DMA_3_CH4>,
<&pd IMX_SC_R_DMA_3_CH5>,
<&pd IMX_SC_R_DMA_3_CH6>,
<&pd IMX_SC_R_DMA_3_CH7>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 120: It is not necessary to write the interrupt name for each channel.
Line 121: instead, you can simply maintain the sequential IRQ numbers as
Line 122: defined for the DMA channels.
Freescale Elo DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,elo-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
This is a little-endian 4-channel DMA controller, used in Freescale mpc83xx series chips such as mpc8315, mpc8349, mpc8379 etc.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"fsl,mpc8313-dma","fsl,mpc8315-dma","fsl,mpc8323-dma","fsl,mpc8347-dma","fsl,mpc8349-dma","fsl,mpc8360-dma","fsl,mpc8377-dma","fsl,mpc8378-dma","fsl,mpc8379-dma"
Item 2
Exact value (
const):"fsl,elo-dma"
reg — required here #
Array item rules (items) #
Item 1
DMA General Status Register, i.e. DGSR which contains status for all the 4 DMA channels.
cell-index — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Controller index. 0 for controller @ 0x8100.
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Controller interrupt.
Required in this object (required): "compatible", "reg"
Properties matching a name pattern (patternProperties) #
^dma-channel@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,mpc8315-dma-channel","fsl,mpc8323-dma-channel","fsl,mpc8347-dma-channel","fsl,mpc8349-dma-channel","fsl,mpc8360-dma-channel","fsl,mpc8377-dma-channel","fsl,mpc8378-dma-channel","fsl,mpc8379-dma-channel"Item 2
Exact value (
const):"fsl,elo-dma-channel"
Rule 2
Exact value (
const):"fsl,ssi-dma-channel"
reg — not listed as required here
Maximum number of items (maxItems): 1
cell-index — not listed as required here
DMA channel index starts at 0.
interrupts — not listed as required here
Maximum number of items (maxItems): 1
Per-channel interrupt. Only necessary if no controller interrupt has been provided.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
dma@82a8 {
compatible = "fsl,mpc8349-dma", "fsl,elo-dma";
reg = <0x82a8 4>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x8100 0x1a4>;
interrupts = <71 IRQ_TYPE_LEVEL_LOW>;
cell-index = <0>;
dma-channel@0 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0 0x80>;
cell-index = <0>;
interrupts = <71 IRQ_TYPE_LEVEL_LOW>;
};
dma-channel@80 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0x80 0x80>;
cell-index = <1>;
interrupts = <71 IRQ_TYPE_LEVEL_LOW>;
};
dma-channel@100 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0x100 0x80>;
cell-index = <2>;
interrupts = <71 IRQ_TYPE_LEVEL_LOW>;
};
dma-channel@180 {
compatible = "fsl,mpc8349-dma-channel", "fsl,elo-dma-channel";
reg = <0x180 0x80>;
cell-index = <3>;
interrupts = <71 IRQ_TYPE_LEVEL_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 65: native DMA channel
Line 78: audio DMA channel, see fsl,ssi.yaml
Freescale Elo3 DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,elo3-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
DMA controller which has same function as EloPlus except that Elo3 has 8 channels while EloPlus has only 4, it is used in Freescale Txxx and Bxxx series chips, such as t1040, t4240, b4860.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "fsl,elo3-dma"
reg — not listed as required here #
Array item rules (items) #
Item 1
DMA General Status Registers starting from DGSR0, for channel 1~4
Item 2
DMA General Status Registers starting from DGSR1, for channel 5~8
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^dma-channel@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Allowed values (enum): "fsl,eloplus-dma-channel", "fsl,ssi-dma-channel"
reg — not listed as required here
Maximum number of items (maxItems): 1
interrupts — not listed as required here
Maximum number of items (maxItems): 1
Per-channel interrupt. Only necessary if no controller interrupt has been provided.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
dma@100300 {
compatible = "fsl,elo3-dma";
reg = <0x100300 0x4>,
<0x100600 0x4>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x100100 0x500>;
dma-channel@0 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x0 0x80>;
interrupts = <28 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@80 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x80 0x80>;
interrupts = <29 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@100 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x100 0x80>;
interrupts = <30 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@180 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x180 0x80>;
interrupts = <31 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@300 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x300 0x80>;
interrupts = <76 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@380 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x380 0x80>;
interrupts = <77 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@400 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x400 0x80>;
interrupts = <78 IRQ_TYPE_EDGE_FALLING 0 0>;
};
dma-channel@480 {
compatible = "fsl,eloplus-dma-channel";
reg = <0x480 0x80>;
interrupts = <79 IRQ_TYPE_EDGE_FALLING 0 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 47: native DMA channel
Line 50: audio DMA channel, see fsl,ssi.yaml
Freescale EloPlus DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,eloplus-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
This is a 4-channel DMA controller with extended addresses and chaining, mainly used in Freescale mpc85xx/86xx, Pxxx and BSC series chips, such as mpc8540, mpc8641 p4080, bsc9131 etc.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,mpc8540-dma","fsl,mpc8541-dma","fsl,mpc8548-dma","fsl,mpc8555-dma","fsl,mpc8560-dma","fsl,mpc8572-dma","fsl,mpc8641-dma"Item 2
Exact value (
const):"fsl,eloplus-dma"
Rule 2
Exact value (
const):"fsl,eloplus-dma"
reg — not listed as required here #
Array item rules (items) #
Item 1
DMA General Status Register, i.e. DGSR which contains status for all the 4 DMA channels
cell-index — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
controller index. 0 for controller @ 0x21000, 1 for controller @ 0xc000
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Controller interrupt.
Properties matching a name pattern (patternProperties) #
^dma-channel@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,mpc8540-dma-channel","fsl,mpc8541-dma-channel","fsl,mpc8548-dma-channel","fsl,mpc8555-dma-channel","fsl,mpc8560-dma-channel","fsl,mpc8572-dma-channel"Item 2
Exact value (
const):"fsl,eloplus-dma-channel"
Rule 2
Exact value (
const):"fsl,ssi-dma-channel"
reg — not listed as required here
Maximum number of items (maxItems): 1
cell-index — not listed as required here
DMA channel index starts at 0.
interrupts — not listed as required here
Maximum number of items (maxItems): 1
Per-channel interrupt. Only necessary if no controller interrupt has been provided.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
dma@21300 {
compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
reg = <0x21300 4>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x21100 0x200>;
cell-index = <0>;
dma-channel@0 {
compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";
reg = <0 0x80>;
cell-index = <0>;
interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
};
dma-channel@80 {
compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";
reg = <0x80 0x80>;
cell-index = <1>;
interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
};
dma-channel@100 {
compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";
reg = <0x100 0x80>;
cell-index = <2>;
interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
};
dma-channel@180 {
compatible = "fsl,mpc8540-dma-channel", "fsl,eloplus-dma-channel";
reg = <0x180 0x80>;
cell-index = <3>;
interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 63: native DMA channel
Line 74: audio DMA channel, see fsl,ssi.yaml
Freescale Direct Memory Access (DMA) Controller for i.MX
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,imx-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Animesh Agarwal <animeshagarwal28@gmail.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 #
Allowed values (enum): "fsl,imx1-dma", "fsl,imx21-dma", "fsl,imx27-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
DMA complete interrupt
Item 2
DMA Error interrupt
Minimum number of items (minItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"ahb"
#dma-cells — required here #
Exact value (const): 1
dma-channels — not listed as required here #
Exact value (const): 16
dma-requests — not listed as required here #
Number of DMA requests supported.
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx27-clock.h>
dma-controller@10001000 {
compatible = "fsl,imx27-dma";
reg = <0x10001000 0x1000>;
interrupts = <32 33>;
#dma-cells = <1>;
dma-channels = <16>;
clocks = <&clks IMX27_CLK_DMA_IPG_GATE>, <&clks IMX27_CLK_DMA_AHB_GATE>;
clock-names = "ipg", "ahb";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Freescale Smart Direct Memory Access (SDMA) Controller for i.MX
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,imx-sdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joy Zou <joy.zou@nxp.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
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx50-sdma","fsl,imx51-sdma","fsl,imx53-sdma","fsl,imx6q-sdma","fsl,imx7d-sdma"Item 2
Exact value (
const):"fsl,imx35-sdma"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6q-sdma"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx6ul-sdma"Item 2
Exact value (
const):"fsl,imx6q-sdma"Item 3
Exact value (
const):"fsl,imx35-sdma"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx6sll-sdma"Item 2
Exact value (
const):"fsl,imx6ul-sdma"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8mq-sdma"Item 2
Exact value (
const):"fsl,imx7d-sdma"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8mp-sdma","fsl,imx8mn-sdma","fsl,imx8mm-sdma"Item 2
Exact value (
const):"fsl,imx8mq-sdma"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx25-sdma","fsl,imx31-sdma","fsl,imx35-sdma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
fsl,sdma-ram-script-name — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Should contain the full path of SDMA RAM scripts firmware.
#dma-cells — not listed as required here #
Exact value (const): 3
The first cell: request/event ID
The second cell: peripheral types ID
enum:
- MCU domain SSI: 0
- Shared SSI: 1
- MMC: 2
- SDHC: 3
- MCU domain UART: 4
- Shared UART: 5
- FIRI: 6
- MCU domain CSPI: 7
- Shared CSPI: 8
- SIM: 9
- ATA: 10
- CCM: 11
- External peripheral: 12
- Memory Stick Host Controller: 13
- Shared Memory Stick Host Controller: 14
- DSP: 15
- Memory: 16
- FIFO type Memory: 17
- SPDIF: 18
- IPU Memory: 19
- ASRC: 20
- ESAI: 21
- SSI Dual FIFO: 22
description: needs firmware more than ver 2
- Shared ASRC: 23
- SAI: 24
- Multi SAI: 25
- HDMI Audio: 26
- I2C: 27
The third cell: transfer priority ID
enum:
- High: 0
- Medium: 1
- Low: 2
gpr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle to the General Purpose Register (GPR) node
fsl,sdma-event-remap — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Maximum number of items (maxItems): 2
Array item rules (items) #
Array item rules (
items)Item 1
GPR register offset
Item 2
GPR register shift
Item 3
GPR register value
Register bits of sdma event remap, the format is <reg shift val>. The order is <RX>, <TX>.
clocks — not listed as required here #
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"ahb"
iram — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle to the On-chip RAM (OCRAM) node.
Required in this object (required): "compatible", "reg", "interrupts", "fsl,sdma-ram-script-name"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
sdma: dma-controller@83fb0000 {
compatible = "fsl,imx51-sdma", "fsl,imx35-sdma";
reg = <0x83fb0000 0x4000>;
interrupts = <6>;
#dma-cells = <3>;
fsl,sdma-ram-script-name = "sdma-imx51.bin";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Freescale Direct Memory Access (DMA) Controller from i.MX23/i.MX28
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl,mxs-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marex@denx.de>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx8qxp-dma-apbh"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
power-domains— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,imx23-dma-apbx"When the condition matches (
then) #Properties and child nodes (
properties)
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"audio-adc"Item 2
Exact value (
const):"audio-dac"Item 3
Exact value (
const):"spdif-tx"Item 4
Exact value (
const):"i2c"Item 5
Exact value (
const):"saif0"Item 6
Exact value (
const):"empty0"Item 7
Exact value (
const):"auart0-rx"Item 8
Exact value (
const):"auart0-tx"Item 9
Exact value (
const):"auart1-rx"Item 10
Exact value (
const):"auart1-tx"Item 11
Exact value (
const):"saif1"Item 12
Exact value (
const):"empty1"Item 13
Exact value (
const):"empty2"Item 14
Exact value (
const):"empty3"Item 15
Exact value (
const):"empty4"Item 16
Exact value (
const):"empty5"When the condition does not match (
else) #Properties and child nodes (
properties)
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx6q-dma-apbh","fsl,imx6sx-dma-apbh","fsl,imx7d-dma-apbh","fsl,imx8dxl-dma-apbh","fsl,imx8mm-dma-apbh","fsl,imx8mn-dma-apbh","fsl,imx8mp-dma-apbh","fsl,imx8mq-dma-apbh","fsl,imx8qm-dma-apbh","fsl,imx8qxp-dma-apbh"Item 2
Exact value (
const):"fsl,imx28-dma-apbh"
Rule 2
Allowed values (
enum):"fsl,imx23-dma-apbh","fsl,imx23-dma-apbx","fsl,imx28-dma-apbh","fsl,imx28-dma-apbx"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 16
interrupt-names — not listed as required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 16
#dma-cells — required here #
Exact value (const): 1
dma-channels — required here #
Allowed values (enum): 4, 8, 16
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#dma-cells", "dma-channels", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
interrupt-parent = <&irqc>;
dma-controller@80004000 {
compatible = "fsl,imx28-dma-apbh";
reg = <0x80004000 0x2000>;
interrupts = <82 83 84 85
88 88 88 88
88 88 88 88
87 86 0 0>;
#dma-cells = <1>;
dma-channels = <16>;
};
dma-controller@80024000 {
compatible = "fsl,imx28-dma-apbx";
reg = <0x80024000 0x2000>;
interrupts = <78 79 66 0
80 81 68 69
70 71 72 73
74 75 76 77>;
#dma-cells = <1>;
dma-channels = <16>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP Layerscape SoC qDMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/fsl-qdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,ls1021a-qdma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,ls1028a-qdma","fsl,ls1043a-qdma","fsl,ls1046a-qdma"Item 2
Exact value (
const):"fsl,ls1021a-qdma"
reg — required here #
Array item rules (items) #
Item 1
Controller regs
Item 2
Status regs
Item 3
Block regs
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
interrupt-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"qdma-error"
Item 2
Exact value (
const):"qdma-queue0"
Item 3
Exact value (
const):"qdma-queue1"
Item 4
Exact value (
const):"qdma-queue2"
Item 5
Exact value (
const):"qdma-queue3"
dma-channels — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 64
fsl,dma-queues — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Should contain number of queues supported.
Minimum value (minimum): 1
Maximum value (maximum): 4
block-number — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
the virtual block number
block-offset — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
the offset of different virtual block
status-sizes — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
status queue size of per virtual block
queue-sizes — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
command queue size of per virtual block, the size number based on queues
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present registers and hardware scatter/gather descriptors of the qDMA are implemented in big endian mode, otherwise in little mode.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "fsl,dma-queues", "block-number", "block-offset", "status-sizes", "queue-sizes"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,ls1028a-qdma","fsl,ls1043a-qdma","fsl,ls1046a-qdma"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):5
interrupt-names— not listed as required hereMinimum number of items (
minItems):5When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):3
interrupt-names— not listed as required hereMaximum number of items (
maxItems):3
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
dma-controller@8390000 {
compatible = "fsl,ls1021a-qdma";
reg = <0x8388000 0x1000>, /* Controller regs */
<0x8389000 0x1000>, /* Status regs */
<0x838a000 0x2000>; /* Block regs */
interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "qdma-error", "qdma-queue0", "qdma-queue1";
#dma-cells = <1>;
dma-channels = <8>;
block-number = <2>;
block-offset = <0x1000>;
status-sizes = <64>;
queue-sizes = <64 64>;
big-endian;
fsl,dma-queues = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Ingenic SoCs DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/ingenic,dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
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):"ingenic,jz4740-dma","ingenic,jz4725b-dma","ingenic,jz4755-dma","ingenic,jz4760-dma","ingenic,jz4760-bdma","ingenic,jz4760-mdma","ingenic,jz4760b-dma","ingenic,jz4760b-bdma","ingenic,jz4760b-mdma","ingenic,jz4770-dma","ingenic,jz4780-dma","ingenic,x1000-dma","ingenic,x1830-dma"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ingenic,jz4770-bdma"Item 2
Exact value (
const):"ingenic,jz4760b-bdma"
reg — required here #
Array item rules (items) #
Item 1
Channel-specific registers
Item 2
System control registers
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
#dma-cells — not listed as required here #
DMA clients must use the format described in dma.txt, giving a phandle to the DMA controller plus the following integer cells:
- Request type: The DMA request type specifies the device endpoint that
will be the source or destination of the DMA transfer.
If "#dma-cells" is 2, the request type is a single cell, and the
direction will be unidirectional (either RX or TX but not both).
If "#dma-cells" is 3, the request type has two cells; the first
one corresponds to the host to device direction (TX), the second one
corresponds to the device to host direction (RX). The DMA channel is
then bidirectional.
- Channel: If set to 0xffffffff, any available channel will be allocated
for the client. Otherwise, the exact channel specified will be used.
The channel should be reserved on the DMA controller using the
ingenic,reserved-channels property.
ingenic,reserved-channels — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Bitmask of channels to reserve for devices that need a specific channel. These channels will only be assigned when explicitly requested by a client. The primary use for this is channels 0 and 1, which can be configured to have special behaviour for NAND/BCH when using programmable firmware.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
dma: dma-controller@13420000 {
compatible = "ingenic,jz4780-dma";
reg = <0x13420000 0x400>, <0x13421000 0x40>;
interrupt-parent = <&intc>;
interrupts = <10>;
clocks = <&cgu JZ4780_CLK_PDMA>;
#dma-cells = <2>;
ingenic,reserved-channels = <0x3>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Lightning Mountain centralized DMA controllers.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/intel,ldma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "chuanhua.lei@intel.com", "mallikarjunax.reddy@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 #
Allowed values (enum): "intel,lgm-cdma", "intel,lgm-dma2tx", "intel,lgm-dma1rx", "intel,lgm-dma1tx", "intel,lgm-dma0tx", "intel,lgm-dma3", "intel,lgm-toe-dma30", "intel,lgm-toe-dma31"
reg — required here #
Maximum number of items (maxItems): 1
#dma-cells — not listed as required here #
Exact value (const): 3
The first cell is the peripheral's DMA request line. The second cell is the peripheral's (port) number corresponding to the channel. The third cell is the burst length of the channel.
dma-channels — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 16
dma-channel-mask — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ctrl"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
intel,dma-poll-cnt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
DMA descriptor polling counter is used to control the poling mechanism for the descriptor fetching for all channels.
intel,dma-byte-en — not listed as required here #
Value type (type): "boolean"
DMA byte enable is only valid for DMA write(RX). Byte enable(1) means DMA write will be based on the number of dwords instead of the whole burst.
intel,dma-drb — not listed as required here #
Value type (type): "boolean"
DMA descriptor read back to make sure data and desc synchronization.
intel,dma-dburst-wr — not listed as required here #
Value type (type): "boolean"
Enable RX dynamic burst write. When it is enabled, the DMA does RX dynamic burst; if it is disabled, the DMA RX will still support programmable fixed burst size of 2,4,8,16. It only applies to RX DMA and memcopy DMA.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma0: dma-controller@e0e00000 {
compatible = "intel,lgm-cdma";
reg = <0xe0e00000 0x1000>;
#dma-cells = <3>;
dma-channels = <16>;
dma-channel-mask = <0xFFFF>;
interrupt-parent = <&ioapic1>;
interrupts = <82 1>;
resets = <&rcu0 0x30 0>;
reset-names = "ctrl";
clocks = <&cgu0 80>;
intel,dma-poll-cnt = <4>;
intel,dma-byte-en;
intel,dma-drb;
};
dma3: dma-controller@ec800000 {
compatible = "intel,lgm-dma3";
reg = <0xec800000 0x1000>;
clocks = <&cgu0 71>;
resets = <&rcu0 0x10 9>;
#dma-cells = <3>;
intel,dma-poll-cnt = <16>;
intel,dma-byte-en;
intel,dma-dburst-wr;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Loongson-1 APB DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/loongson,ls1b-apbdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"
Loongson-1 APB DMA controller provides 3 independent channels for peripherals such as NAND, audio playback and capture.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"loongson,ls1b-apbdma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"loongson,ls1a-apbdma","loongson,ls1c-apbdma"Item 2
Exact value (
const):"loongson,ls1b-apbdma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
NAND interrupt
Item 2
Audio playback interrupt
Item 3
Audio capture interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ch0"
Item 2
Exact value (
const):"ch1"
Item 3
Exact value (
const):"ch2"
#dma-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#dma-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
dma-controller@1fd01160 {
compatible = "loongson,ls1b-apbdma";
reg = <0x1fd01160 0x4>;
interrupt-parent = <&intc0>;
interrupts = <13 IRQ_TYPE_EDGE_RISING>,
<14 IRQ_TYPE_EDGE_RISING>,
<15 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ch0", "ch1", "ch2";
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Loongson LS2X APB DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/loongson,ls2x-apbdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Loongson LS2X APB DMA controller is used for transferring data between system memory and the peripherals on the APB bus.
Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"
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):"loongson,ls2k1000-apbdma"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"loongson,ls2k0500-apbdma"Item 2
Exact value (
const):"loongson,ls2k1000-apbdma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#dma-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/loongson,ls2k-clk.h>
dma-controller@1fe00c00 {
compatible = "loongson,ls2k1000-apbdma";
reg = <0x1fe00c00 0x8>;
interrupt-parent = <&liointc1>;
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk LOONGSON2_APB_CLK>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell MMP DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/marvell,mmp-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Duje Mihanović <duje.mihanovic@skole.hr>"
Marvell MMP SoCs may have two types of DMA controllers, peripheral and audio.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,pdma-1.0", "marvell,adma-1.0", "marvell,pxa910-squ"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Interrupt lines for the controller, may be shared or one per DMA channel
Minimum number of items (minItems): 1
asram — not listed as required here #
A phandle to the SRAM pool
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
#dma-channels — not listed as required here #
Deprecated (deprecated): true
#dma-requests — not listed as required here #
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
asram— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-controller@d4000000 {
compatible = "marvell,pdma-1.0";
reg = <0xd4000000 0x10000>;
interrupts = <47>;
#dma-cells = <2>;
dma-channels = <16>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell XOR engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/marvell,orion-xor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory Clement <gregory.clement@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"marvell,armada-380-xor"Item 2
Exact value (
const):"marvell,orion-xor"
Rule 2
Allowed values (
enum):"marvell,armada-3700-xor","marvell,orion-xor"
reg — required here #
Array item rules (items) #
Item 1
Low registers for the XOR engine
Item 2
High registers for the XOR engine
clocks — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^(channel|xor)[0-9]+$ — name matches this regular expression #
XOR channel sub-node
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
interrupts — required here
Interrupt specifier for the XOR channel
Array item rules (items)
Item 1
Interrupt for this channel
dmacap,memcpy — not listed as required here
Value type (type): "boolean"
Deprecated (deprecated): true
Indicates that the XOR channel is capable of memcpy operations
dmacap,memset — not listed as required here
Value type (type): "boolean"
Deprecated (deprecated): true
Indicates that the XOR channel is capable of memset operations
dmacap,xor — not listed as required here
Value type (type): "boolean"
Deprecated (deprecated): true
Indicates that the XOR channel is capable of xor operations
Required in this object (required): "interrupts"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
xor@d0060900 {
compatible = "marvell,orion-xor";
reg = <0xd0060900 0x100>,
<0xd0060b00 0x100>;
clocks = <&coreclk 0>;
xor00 {
interrupts = <51>;
};
xor01 {
interrupts = <52>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell XOR v2 engines
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/marvell,xor-v2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"marvell,xor-v2"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"marvell,xor-v2"
reg — required here #
Array item rules (items) #
Item 1
DMA registers
Item 2
global registers
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"reg"
msi-parent — required here #
Phandle to the MSI-capable interrupt controller used for interrupts.
Maximum number of items (maxItems): 1
dma-coherent — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "msi-parent", "dma-coherent"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
xor0@6a0000 {
compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
reg = <0x6a0000 0x1000>, <0x6b0000 0x1000>;
clocks = <&ap_clk 0>, <&ap_clk 1>;
clock-names = "core", "reg";
msi-parent = <&gic_v2m0>;
dma-coherent;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
MediaTek High-Speed DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/mediatek,mt7622-hsdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Wang <sean.wang@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "mediatek,mt7622-hsdma", "mediatek,mt7623-hsdma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "hsdma"
power-domains — required here #
Maximum number of items (maxItems): 1
#dma-cells — not listed as required here #
Channel number
Exact value (const): 1
Required in this object (required): "reg", "interrupts", "clocks", "clock-names", "power-domains"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt2701-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/mt2701-power.h>
dma-controller@1b007000 {
compatible = "mediatek,mt7623-hsdma";
reg = <0x1b007000 0x1000>;
interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>;
clocks = <ðsys CLK_ETHSYS_HSDMA>;
clock-names = "hsdma";
power-domains = <&scpsys MT2701_POWER_DOMAIN_ETH>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MediaTek UART APDMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/mediatek,uart-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>", "Long Cheng <long.cheng@mediatek.com>"
The MediaTek UART APDMA controller provides DMA capabilities for the UART peripheral bus.
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
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt2712-uart-dma","mediatek,mt6795-uart-dma","mediatek,mt8173-uart-dma","mediatek,mt8183-uart-dma","mediatek,mt8365-uart-dma","mediatek,mt8516-uart-dma"Item 2
Exact value (
const):"mediatek,mt6577-uart-dma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt7988-uart-dma","mediatek,mt8186-uart-dma","mediatek,mt8188-uart-dma","mediatek,mt8192-uart-dma","mediatek,mt8195-uart-dma"Item 2
Exact value (
const):"mediatek,mt6835-uart-dma"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6991-uart-dma","mediatek,mt8196-uart-dma"Item 2
Exact value (
const):"mediatek,mt6985-uart-dma"
Rule 4
Allowed values (
enum):"mediatek,mt6577-uart-dma","mediatek,mt6795-uart-dma","mediatek,mt6835-uart-dma","mediatek,mt6985-uart-dma"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
interrupts — required here #
TX, RX interrupt lines for each UART APDMA channel
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
clocks — not listed as required here #
Must contain one entry for the APDMA main clock
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "apdma"
#dma-cells — not listed as required here #
Exact value (const): 1
The first cell specifies the UART APDMA channel number
dma-requests — not listed as required here #
Number of virtual channels of the UART APDMA controller
Maximum value (maximum): 16
mediatek,dma-33bits — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
Enable 33-bits UART APDMA support
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Condition (if) #
This rule must not match (
not) #
When the condition matches (then) #
Properties and child nodes (
properties) #
interrupts— not listed as required here #Maximum number of items (
maxItems):8
reg— not listed as required here #Maximum number of items (
maxItems):8
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt2712-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
apdma: dma-controller@11000400 {
compatible = "mediatek,mt2712-uart-dma",
"mediatek,mt6577-uart-dma";
reg = <0 0x11000400 0 0x80>,
<0 0x11000480 0 0x80>,
<0 0x11000500 0 0x80>,
<0 0x11000580 0 0x80>,
<0 0x11000600 0 0x80>,
<0 0x11000680 0 0x80>,
<0 0x11000700 0 0x80>,
<0 0x11000780 0 0x80>,
<0 0x11000800 0 0x80>,
<0 0x11000880 0 0x80>,
<0 0x11000900 0 0x80>,
<0 0x11000980 0 0x80>;
interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 105 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 107 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 108 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 109 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 112 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
dma-requests = <12>;
clocks = <&pericfg CLK_PERI_AP_DMA>;
clock-names = "apdma";
mediatek,dma-33bits;
#dma-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra GPC DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/nvidia,tegra186-gpc-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Tegra General Purpose Central (GPC) DMA controller is used for faster data transfers between memory to memory, memory to device and device to memory.
Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>", "Rajesh Gumasta <rgumasta@nvidia.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):"nvidia,tegra186-gpcdma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"nvidia,tegra264-gpcdma","nvidia,tegra234-gpcdma","nvidia,tegra194-gpcdma"Item 2
Exact value (
const):"nvidia,tegra186-gpcdma"
#dma-cells — required here #
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Should contain all of the per-channel DMA interrupts in ascending order with respect to the DMA channel index.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Exact value (const): "gpcdma"
iommus — required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
dma-channel-mask — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names", "#dma-cells", "iommus", "dma-channel-mask"
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/memory/tegra186-mc.h>
#include <dt-bindings/reset/tegra186-reset.h>
dma-controller@2600000 {
compatible = "nvidia,tegra186-gpcdma";
reg = <0x2600000 0x210000>;
resets = <&bpmp TEGRA186_RESET_GPCDMA>;
reset-names = "gpcdma";
interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
<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>,
<GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <1>;
iommus = <&smmu TEGRA186_SID_GPCDMA_0>;
dma-coherent;
dma-channel-mask = <0xfffffffe>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra APB DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/nvidia,tegra20-apbdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The NVIDIA Tegra APB DMA controller is a hardware component that enables direct memory access (DMA) on Tegra systems. It facilitates data transfer between I/O devices and main memory without constant CPU intervention.
Maintainers (maintainers): "Jonathan Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"nvidia,tegra114-apbdma","nvidia,tegra20-apbdma"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"nvidia,tegra30-apbdma"Item 2
Exact value (
const):"nvidia,tegra20-apbdma"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"nvidia,tegra124-apbdma","nvidia,tegra210-apbdma"Item 2
Exact value (
const):"nvidia,tegra148-apbdma"
reg — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "dma"
interrupts — required here #
Should contain all of the per-channel DMA interrupts in ascending order with respect to the DMA channel index.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Exact value (const): "dma"
Required in this object (required): "compatible", "reg", "#dma-cells", "clocks", "interrupts", "resets", "reset-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/tegra186-reset.h>
dma-controller@6000a000 {
compatible = "nvidia,tegra30-apbdma", "nvidia,tegra20-apbdma";
reg = <0x6000a000 0x1200>;
interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car 34>;
resets = <&tegra_car 34>;
reset-names = "dma";
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra Audio DMA (ADMA) controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/nvidia,tegra210-adma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Tegra Audio DMA controller is used for transferring data between system memory and the Audio Processing Engine (APE).
Maintainers (maintainers): "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"nvidia,tegra210-adma","nvidia,tegra186-adma","nvidia,tegra264-adma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"nvidia,tegra234-adma","nvidia,tegra194-adma"Item 2
Exact value (
const):"nvidia,tegra186-adma"
reg — required here #
The 'page' region describes the address space of the page used for accessing the DMA channel registers. The 'global' region describes the address space of the global DMA registers. In the absence of the 'reg-names' property, there must be a single entry that covers the address space of the global DMA registers and the DMA channel registers.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Should contain all of the per-channel DMA interrupts in ascending order with respect to the DMA channel index.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 64
clocks — required here #
Must contain one entry for the ADMA module clock
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "d_audio"
#dma-cells — not listed as required here #
The first cell denotes the receive/transmit request number and should be between 1 and the maximum number of requests supported. This value corresponds to the RX/TX_REQUEST_SELECT fields in the ADMA_CHn_CTRL register.
Exact value (const): 1
dma-channel-mask — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Full address space range of DMA registers.
interrupts— not listed as required hereMaximum number of items (
maxItems):22
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):32
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"nvidia,tegra186-adma","nvidia,tegra264-adma"When the condition matches (
then) #At least one of these rules must match (
anyOf)Rule 1
Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Full address space range of DMA registers.
Rule 2
Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Channel Page address space range of DMA registers.
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"page"Rule 3
Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Channel Page address space range of DMA registers.
Item 2
Global Page address space range of DMA registers.
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"page"Item 2
Exact value (
const):"global"
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/clock/tegra210-car.h>
dma-controller@702e2000 {
compatible = "nvidia,tegra210-adma";
reg = <0x702e2000 0x2000>;
interrupt-parent = <&tegra_agic>;
interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>;
clock-names = "d_audio";
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
DMA multiplexer for LPC32XX SoC (DMA request router)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/nxp,lpc3220-dmamux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J.M.B. Downing <jonathan.downing@nautel.com>", "Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-router.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc3220-dmamux"
reg — required here #
Maximum number of items (maxItems): 1
dma-masters — required here #
phandle to a dma node compatible with arm,pl080
Maximum number of items (maxItems): 1
#dma-cells — not listed as required here #
Exact value (const): 3
First two cells same as for device pointed in dma-masters. Third cell represents mux value for the request.
Required in this object (required): "compatible", "reg", "dma-masters"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-router@7c {
compatible = "nxp,lpc3220-dmamux";
reg = <0x7c 0x8>;
dma-masters = <&dma>;
#dma-cells = <3>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Actions Semi Owl SoCs DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/owl-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The OWL DMA is a general-purpose direct memory access controller capable of supporting 10 independent DMA channels for the Actions Semi S700 SoC and 12 independent DMA channels for the S500 and S900 SoC variants.
Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "actions,s500-dma", "actions,s700-dma", "actions,s900-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
controller supports 4 interrupts, which are freely assignable to the DMA channels.
Maximum number of items (maxItems): 4
#dma-cells — required here #
Exact value (const): 1
dma-channels — required here #
Maximum value (maximum): 12
dma-requests — required here #
Maximum value (maximum): 46
clocks — required here #
Maximum number of items (maxItems): 1
Phandle and Specifier of the clock feeding the DMA controller.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "dma-channels", "dma-requests", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
dma: dma-controller@e0260000 {
compatible = "actions,s900-dma";
reg = <0xe0260000 0x1000>;
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <1>;
dma-channels = <12>;
dma-requests = <46>;
clocks = <&clock 22>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Qualcomm ADM DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/qcom,adm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>", "Bjorn Andersson <bjorn.andersson@linaro.org>"
QCOM ADM DMA controller provides DMA capabilities for peripheral buses such as NAND and SPI.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,adm"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
clocks — required here #
Array item rules (items) #
Item 1
phandle to the core clock
Item 2
phandle to the iface clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"iface"
resets — required here #
Array item rules (items) #
Item 1
phandle to the clk reset
Item 2
phandle to the pbus reset
Item 3
phandle to the c0 reset
Item 4
phandle to the c1 reset
Item 5
phandle to the c2 reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk"
Item 2
Exact value (
const):"pbus"
Item 3
Exact value (
const):"c0"
Item 4
Exact value (
const):"c1"
Item 5
Exact value (
const):"c2"
qcom,ee — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
indicates the security domain identifier used in the secure world.
Minimum value (minimum): 0
Maximum value (maximum): 255
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "clocks", "clock-names", "resets", "reset-names", "qcom,ee"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
#include <dt-bindings/reset/qcom,gcc-ipq806x.h>
adm_dma: dma-controller@18300000 {
compatible = "qcom,adm";
reg = <0x18300000 0x100000>;
interrupts = <0 170 0>;
#dma-cells = <1>;
clocks = <&gcc ADM0_CLK>,
<&gcc ADM0_PBUS_CLK>;
clock-names = "core", "iface";
resets = <&gcc ADM0_RESET>,
<&gcc ADM0_PBUS_RESET>,
<&gcc ADM0_C0_RESET>,
<&gcc ADM0_C1_RESET>,
<&gcc ADM0_C2_RESET>;
reset-names = "clk", "pbus", "c0", "c1", "c2";
qcom,ee = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Technologies Inc BAM DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/qcom,bam-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <andersson@kernel.org>"
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):"qcom,bam-v1.3.0","qcom,bam-v1.4.0","qcom,bam-v1.7.0"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,bam-v1.7.0"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"bam_clk"
#dma-cells — required here #
Exact value (const): 1
interrupts — required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
num-channels — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Indicates supported number of DMA channels in a remotely controlled bam.
qcom,controlled-remotely — not listed as required here #
Value type (type): "boolean"
Indicates that the bam is controlled by remote processor i.e. execution environment.
qcom,ee — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Indicates the active Execution Environment identifier (0-7) used in the secure world.
qcom,num-ees — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Indicates supported number of Execution Environments in a remotely controlled bam.
qcom,powered-remotely — not listed as required here #
Value type (type): "boolean"
Indicates that the bam is powered up by a remote processor but must be initialized by the local processor.
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "#dma-cells", "interrupts", "qcom,ee", "reg"
At least one of these rules must match (anyOf) #
Rule 1 #
Required in this object (
required):"qcom,powered-remotely","num-channels","qcom,num-ees"
Rule 2 #
Required in this object (
required):"qcom,controlled-remotely","num-channels","qcom,num-ees"
Rule 3 #
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/clock/qcom,gcc-msm8974.h>
dma-controller@f9944000 {
compatible = "qcom,bam-v1.4.0";
reg = <0xf9944000 0x19000>;
interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc GCC_BLSP2_AHB_CLK>;
clock-names = "bam_clk";
#dma-cells = <1>;
qcom,ee = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 20: APQ8064, IPQ8064 and MSM8960
Line 22: MSM8974, APQ8074 and APQ8084
Line 24: MSM8916, SDM630
Line 28: SDM845, SM6115, SM8150, SM8250 and QCM2290
Qualcomm Technologies Inc GPI DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/qcom,gpi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"
QCOM GPI DMA controller provides DMA capabilities for peripheral buses such as I2C, UART, and SPI.
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):"qcom,sdm845-gpi-dma","qcom,sm6350-gpi-dma"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,glymur-gpi-dma","qcom,kaanapali-gpi-dma","qcom,milos-gpi-dma","qcom,qcm2290-gpi-dma","qcom,qcs8300-gpi-dma","qcom,qdu1000-gpi-dma","qcom,sa8775p-gpi-dma","qcom,sar2130p-gpi-dma","qcom,sc7280-gpi-dma","qcom,sc8280xp-gpi-dma","qcom,sdx75-gpi-dma","qcom,sm6115-gpi-dma","qcom,sm6375-gpi-dma","qcom,sm8350-gpi-dma","qcom,sm8450-gpi-dma","qcom,sm8550-gpi-dma","qcom,sm8650-gpi-dma","qcom,sm8750-gpi-dma","qcom,x1e80100-gpi-dma"Item 2
Exact value (
const):"qcom,sm6350-gpi-dma"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,qcs615-gpi-dma","qcom,sdm670-gpi-dma","qcom,sm6125-gpi-dma","qcom,sm8150-gpi-dma","qcom,sm8250-gpi-dma"Item 2
Exact value (
const):"qcom,sdm845-gpi-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Interrupt lines for each GPI instance
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
#dma-cells — required here #
Exact value (const): 3
DMA clients must use the format described in dma.txt, giving a phandle to the DMA controller plus the following 3 integer cells: - channel: if set to 0xffffffff, any available channel will be allocated
for the client. Otherwise, the exact channel specified will be used.
- seid: serial id of the client as defined in the SoC documentation. - client: type of the client as defined in dt-bindings/dma/qcom-gpi.h
iommus — required here #
Maximum number of items (maxItems): 1
dma-channels — required here #
Maximum value (maximum): 31
dma-channel-mask — required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "iommus", "dma-channels", "dma-channel-mask"
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/dma/qcom-gpi.h>
gpi_dma0: dma-controller@800000 {
compatible = "qcom,sdm845-gpi-dma";
#dma-cells = <3>;
reg = <0x00800000 0x60000>;
iommus = <&apps_smmu 0x0016 0x0>;
dma-channels = <13>;
dma-channel-mask = <0xfa>;
interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas R-Car and RZ/G DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/renesas,rcar-dmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.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
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,dmac-r8a7742","renesas,dmac-r8a7743","renesas,dmac-r8a7744","renesas,dmac-r8a7745","renesas,dmac-r8a77470","renesas,dmac-r8a774a1","renesas,dmac-r8a774b1","renesas,dmac-r8a774c0","renesas,dmac-r8a774e1","renesas,dmac-r8a7790","renesas,dmac-r8a7791","renesas,dmac-r8a7792","renesas,dmac-r8a7793","renesas,dmac-r8a7794","renesas,dmac-r8a7795","renesas,dmac-r8a7796","renesas,dmac-r8a77961","renesas,dmac-r8a77965","renesas,dmac-r8a77970","renesas,dmac-r8a77980","renesas,dmac-r8a77990","renesas,dmac-r8a77995"Item 2
Exact value (
const):"renesas,rcar-dmac"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,dmac-r8a779a0","renesas,dmac-r8a779f0","renesas,dmac-r8a779g0","renesas,dmac-r8a779h0"Item 2
Exact value (
const):"renesas,rcar-gen4-dmac"
reg — required here #
true — No constraints added by this property rule.
interrupts — required here #
Minimum number of items (minItems): 9
Maximum number of items (maxItems): 17
interrupt-names — required here #
Minimum number of items (minItems): 9
Array item rules (items) #
Item 1
Exact value (
const):"error"
Item 2
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 3
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 4
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 5
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 6
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 7
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 8
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 9
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 10
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 11
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 12
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 13
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 14
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 15
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 16
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
Item 17
String pattern (
pattern):"^ch([0-9]|1[0-5])$"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
#dma-cells — required here #
Exact value (const): 1
The cell specifies the MID/RID of the DMAC port connected to the DMA client.
dma-channels — required here #
Minimum value (minimum): 8
Maximum value (maximum): 16
dma-channel-mask — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Minimum number of items (minItems): 8
Maximum number of items (maxItems): 16
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "#dma-cells", "dma-channels", "power-domains", "resets"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
reg— not listed as required here #Array item rules (
items)Item 1
Base register block
Item 2
Channel register block
When the condition does not match (else) #
Properties and child nodes (
properties) #
reg— 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/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
dmac0: dma-controller@e6700000 {
compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac";
reg = <0xe6700000 0x20000>;
interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "error",
"ch0", "ch1", "ch2", "ch3",
"ch4", "ch5", "ch6", "ch7",
"ch8", "ch9", "ch10", "ch11",
"ch12", "ch13", "ch14";
clocks = <&cpg CPG_MOD 219>;
clock-names = "fck";
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 219>;
#dma-cells = <1>;
dma-channels = <15>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 20: RZ/G1H
Line 21: RZ/G1M
Line 22: RZ/G1N
Line 23: RZ/G1E
Line 24: RZ/G1C
Line 25: RZ/G2M
Line 26: RZ/G2N
Line 27: RZ/G2E
Line 28: RZ/G2H
Line 29: R-Car H2
Line 30: R-Car M2-W
Line 31: R-Car V2H
Line 32: R-Car M2-N
Line 33: R-Car E2
Line 34: R-Car H3
Line 35: R-Car M3-W
Line 36: R-Car M3-W+
Line 37: R-Car M3-N
Line 38: R-Car V3M
Line 39: R-Car V3H
Line 40: R-Car E3
Line 41: R-Car D3
Line 46: R-Car V3U
Line 47: R-Car S4-8
Line 48: R-Car V4H
Line 49: R-Car V4M
Line 50: R-Car Gen4
Renesas RZ DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/renesas,rz-dmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r7s72100-dmac","renesas,r9a07g043-dmac","renesas,r9a07g044-dmac","renesas,r9a07g054-dmac","renesas,r9a08g045-dmac"Item 2
Exact value (
const):"renesas,rz-dmac"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g047-dmac","renesas,r9a09g056-dmac"Item 2
Exact value (
const):"renesas,r9a09g057-dmac"
Rule 3
Exact value (
const):"renesas,r9a09g057-dmac"
reg — required here #
Array item rules (items) #
Item 1
Control and channel register block
Item 2
DMA extended resource selector block
Minimum number of items (minItems): 1
interrupts — required here #
Maximum number of items (maxItems): 17
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"error"
Item 2
Exact value (
const):"ch0"
Item 3
Exact value (
const):"ch1"
Item 4
Exact value (
const):"ch2"
Item 5
Exact value (
const):"ch3"
Item 6
Exact value (
const):"ch4"
Item 7
Exact value (
const):"ch5"
Item 8
Exact value (
const):"ch6"
Item 9
Exact value (
const):"ch7"
Item 10
Exact value (
const):"ch8"
Item 11
Exact value (
const):"ch9"
Item 12
Exact value (
const):"ch10"
Item 13
Exact value (
const):"ch11"
Item 14
Exact value (
const):"ch12"
Item 15
Exact value (
const):"ch13"
Item 16
Exact value (
const):"ch14"
Item 17
Exact value (
const):"ch15"
clocks — not listed as required here #
Array item rules (items) #
Item 1
DMA main clock
Item 2
DMA register access clock
Minimum number of items (minItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"main"
Item 2
Exact value (
const):"register"
#dma-cells — required here #
Exact value (const): 1
The cell specifies the encoded MID/RID or the REQ No values of the DMAC port connected to the DMA client and the slave channel configuration parameters. bits[0:9] - Specifies the MID/RID or the REQ No value bit[10] - Specifies DMA request high enable (HIEN) bit[11] - Specifies DMA request detection type (LVL) bits[12:14] - Specifies DMAACK output mode (AM) bit[15] - Specifies Transfer Mode (TM)
dma-channels — required here #
Exact value (const): 16
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Array item rules (items) #
Item 1
Reset for DMA ARESETN reset terminal
Item 2
Reset for DMA RST_ASYNC reset terminal
Minimum number of items (minItems): 1
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"arst"
Item 2
Exact value (
const):"rst_async"
renesas,icu — not listed as required here #
It must contain the phandle to the ICU and the index of the DMAC as seen from the ICU.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
Phandle to the ICU node.
Item 2
The number of the DMAC as seen from the ICU, i.e. parameter k from register ICU_DMkSELy. This may differ from the actual DMAC instance number.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#dma-cells", "dma-channels"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a07g043-dmac","renesas,r9a07g044-dmac","renesas,r9a07g054-dmac","renesas,r9a08g045-dmac"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
clocks— required hereMinimum number of items (
minItems):2
resets— required hereMinimum number of items (
minItems):2
renesas,icu— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"clocks","clock-names","power-domains","resets","reset-names"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r7s72100-dmac"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
clocks— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required here
false— Not permitted by this property rule.
power-domains— not listed as required here
false— Not permitted by this property rule.
resets— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.
renesas,icu— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g057-dmac"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
clocks— required hereMaximum number of items (
maxItems):1
resets— required hereMaximum number of items (
maxItems):1
clock-names— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"clocks","power-domains","renesas,icu","resets"
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/clock/r9a07g044-cpg.h>
dmac: dma-controller@11820000 {
compatible = "renesas,r9a07g044-dmac",
"renesas,rz-dmac";
reg = <0x11820000 0x10000>,
<0x11830000 0x10000>;
interrupts = <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 125 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 126 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 127 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 128 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 130 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 131 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 132 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 133 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 135 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 136 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 137 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 138 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 139 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 140 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "error",
"ch0", "ch1", "ch2", "ch3",
"ch4", "ch5", "ch6", "ch7",
"ch8", "ch9", "ch10", "ch11",
"ch12", "ch13", "ch14", "ch15";
clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>,
<&cpg CPG_MOD R9A07G044_DMAC_PCLK>;
clock-names = "main", "register";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_DMAC_ARESETN>,
<&cpg R9A07G044_DMAC_RST_ASYNC>;
reset-names = "arst", "rst_async";
#dma-cells = <1>;
dma-channels = <16>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: RZ/A1H
Line 18: RZ/G2UL and RZ/Five
Line 19: RZ/G2{L,LC}
Line 20: RZ/V2L
Line 21: RZ/G3S
Line 26: RZ/G3E
Line 27: RZ/V2N
Line 30: RZ/V2H(P)
Renesas RZ/N1 DMA mux
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/renesas,rzn1-dmamux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-router.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "renesas,rzn1-dmamux"
reg — required here #
Maximum number of items (maxItems): 1
DMA mux first register offset within the system control parent.
#dma-cells — not listed as required here #
Exact value (const): 6
The first four cells are dedicated to the master DMA controller. The fifth cell gives the DMA mux bit index that must be set starting from 0. The sixth cell gives the binary value that must be written there, ie. 0 or 1.
dma-masters — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
dma-requests — required here #
Exact value (const): 32
Required in this object (required): "reg", "dma-requests"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-router@a0 {
compatible = "renesas,rzn1-dmamux";
reg = <0xa0 4>;
#dma-cells = <6>;
dma-masters = <&dma0 &dma1>;
dma-requests = <32>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas USB DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/renesas,usb-dmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.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 #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,r8a7742-usb-dmac","renesas,r8a7743-usb-dmac","renesas,r8a7744-usb-dmac","renesas,r8a7745-usb-dmac","renesas,r8a77470-usb-dmac","renesas,r8a774a1-usb-dmac","renesas,r8a774b1-usb-dmac","renesas,r8a774c0-usb-dmac","renesas,r8a774e1-usb-dmac","renesas,r8a7790-usb-dmac","renesas,r8a7791-usb-dmac","renesas,r8a7793-usb-dmac","renesas,r8a7794-usb-dmac","renesas,r8a7795-usb-dmac","renesas,r8a7796-usb-dmac","renesas,r8a77961-usb-dmac","renesas,r8a77965-usb-dmac","renesas,r8a77990-usb-dmac","renesas,r8a77995-usb-dmac"
Item 2
Exact value (
const):"renesas,usb-dmac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
interrupt-names — required here #
Array item rules (items) #
Item 1
String pattern (
pattern):"ch0"
Item 2
String pattern (
pattern):"ch1"
clocks — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 1
The cell specifies the channel number of the DMAC port connected to the DMA client.
dma-channels — required here #
Exact value (const): 2
iommus — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "#dma-cells", "dma-channels", "power-domains", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
usb_dmac0: dma-controller@e65a0000 {
compatible = "renesas,r8a7790-usb-dmac", "renesas,usb-dmac";
reg = <0xe65a0000 0x100>;
interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "ch0", "ch1";
clocks = <&cpg CPG_MOD 330>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 330>;
#dma-cells = <1>;
dma-channels = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: RZ/G1H
Line 20: RZ/G1M
Line 21: RZ/G1N
Line 22: RZ/G1E
Line 23: RZ/G1C
Line 24: RZ/G2M
Line 25: RZ/G2N
Line 26: RZ/G2E
Line 27: RZ/G2H
Line 28: R-Car H2
Line 29: R-Car M2-W
Line 30: R-Car M2-N
Line 31: R-Car E2
Line 32: R-Car H3
Line 33: R-Car M3-W
Line 34: R-Car M3-W+
Line 35: R-Car M3-N
Line 36: R-Car E3
Line 37: R-Car D3
SiFive Unleashed Rev C000 Platform DMA
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/sifive,fu540-c000-pdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Green Wan <green.wan@sifive.com>", "Palmer Debbelt <palmer@sifive.com>", "Paul Walmsley <paul.walmsley@sifive.com>"
Platform DMA is a DMA engine of SiFive Unleashed. It supports 4 channels. Each channel has 2 interrupts. One is for DMA done and the other is for DME error.
In different SoC, DMA could be attached to different IRQ line. DT file need to be changed to meet the difference. For technical doc,
https://static.dev.sifive.com/FU540-C000-v1.0.pdf
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
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-pdma"Item 2
Exact value (
const):"microchip,mpfs-pdma"Item 3
Exact value (
const):"sifive,pdma0"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,mpfs-pdma","sifive,fu540-c000-pdma"Item 2
Exact value (
const):"sifive,pdma0"
Should be "sifive,<chip>-pdma" and "sifive,pdma<version>". Supported compatible strings are - "sifive,fu540-c000-pdma" for the SiFive PDMA v0 as integrated onto the SiFive FU540 chip resp and "sifive,pdma0" for the SiFive PDMA v0 IP block with no chip integration tweaks.
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
dma-channels — not listed as required here #
For backwards-compatibility, the default value is 4
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 4
#dma-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-controller@3000000 {
compatible = "sifive,fu540-c000-pdma", "sifive,pdma0";
reg = <0x3000000 0x8000>;
dma-channels = <4>;
interrupts = <23>, <24>, <25>, <26>, <27>, <28>, <29>, <30>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Synopsys Designware DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
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
Synopsys DesignWare AXI DMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
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
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)
When the condition matches (then) #
Properties and child nodes (
properties) #
resets— not listed as required here #Minimum number of items (
minItems):2Array 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)
UniPhier Media IO DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/socionext,uniphier-mio-dmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This works as an external DMA engine for SD/eMMC controllers etc. found in UniPhier LD4, Pro4, sLD8 SoCs.
Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.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 #
Exact value (const): "socionext,uniphier-mio-dmac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
A list of interrupt specifiers associated with the DMA channels. The number of interrupt lines is SoC-dependent.
clocks — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
The single cell represents the channel index.
Exact value (const): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#dma-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
// In the example below, "interrupts = <0 68 4>, <0 68 4>, ..." is not a
// typo. The first two channels share a single interrupt line.
dmac: dma-controller@5a000000 {
compatible = "socionext,uniphier-mio-dmac";
reg = <0x5a000000 0x1000>;
interrupts = <0 68 4>, <0 68 4>, <0 69 4>, <0 70 4>,
<0 71 4>, <0 72 4>, <0 73 4>, <0 74 4>;
clocks = <&mio_clk 7>;
resets = <&mio_rst 7>;
#dma-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Socionext UniPhier external DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/socionext,uniphier-xdmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This describes the devicetree bindings for an external DMA engine to perform memory-to-memory or peripheral-to-memory data transfer capable of supporting 16 channels, implemented in Socionext UniPhier SoCs.
Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.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 #
Exact value (const): "socionext,uniphier-xdmac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#dma-cells — required here #
Exact value (const): 2
DMA request from clients consists of 2 cells:
1. Channel index
2. Transfer request factor number, If no transfer factor, use 0.
The number is SoC-specific, and this should be specified with
relation to the device to use the DMA controller.
dma-channels — required here #
Minimum value (minimum): 1
Maximum value (maximum): 16
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "#dma-cells", "dma-channels"
Examples (examples) #
xdmac: dma-controller@5fc10000 {
compatible = "socionext,uniphier-xdmac";
reg = <0x5fc10000 0x5300>;
interrupts = <0 188 4>;
#dma-cells = <2>;
dma-channels = <16>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Sophgo CV1800/SG200 Series DMA multiplexer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/sophgo,cv1800b-dmamux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Inochi Amaoto <inochiama@gmail.com>"
The DMA multiplexer of CV1800 is a subdevice of the system controller. It support mapping 8 channels, but each channel can be mapped only once.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-router.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "sophgo,cv1800b-dmamux"
reg — required here #
Array item rules (items) #
Item 1
DMA channal remapping register
Item 2
DMA channel interrupt mapping register
#dma-cells — required here #
Exact value (const): 2
The first cells is device id. The second one is the cpu id.
dma-masters — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "reg", "#dma-cells", "dma-masters"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
dma-router@154 {
compatible = "sophgo,cv1800b-dmamux";
reg = <0x154 0x8>, <0x298 0x4>;
#dma-cells = <2>;
dma-masters = <&dmac>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SpacemiT K1 PDMA Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/spacemit,k1-pdma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Guodong Xu <guodong@riscstar.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 #
Exact value (const): "spacemit,k1-pdma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Shared interrupt for all DMA channels
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
dma-channels — required here #
Maximum value (maximum): 16
#dma-cells — required here #
Exact value (const): 1
The DMA request number for the peripheral device.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "dma-channels", "#dma-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/spacemit,k1-syscon.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
dma-controller@d4000000 {
compatible = "spacemit,k1-pdma";
reg = <0x0 0xd4000000 0x0 0x4000>;
interrupts = <72>;
clocks = <&syscon_apmu CLK_DMA>;
resets = <&syscon_apmu RESET_DMA>;
dma-channels = <16>;
#dma-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Spreadtrum SC9860 DMA controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/sprd,sc9860-dma.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
There are three DMA controllers: AP DMA, AON DMA and AGCP DMA. For AGCP DMA controller, it can or do not request the IRQ, which will save system power without resuming system by DMA interrupts if AGCP DMA does not request the IRQ.
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sprd,sc9860-dma"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
DMA enable clock
Item 2
optional ashb_eb clock, only for the AGCP DMA controller
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"enable"
Item 2
Exact value (
const):"ashb_eb"
#dma-cells — required here #
Exact value (const): 1
dma-channels — required here #
Exact value (const): 32
#dma-channels — not listed as required here #
Exact value (const): 32
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#dma-cells", "dma-channels"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sprd,sc9860-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
/* AP DMA controller */
dma-controller@20100000 {
compatible = "sprd,sc9860-dma";
reg = <0x20100000 0x4000>;
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&apahb_gate CLK_DMA_EB>;
clock-names = "enable";
#dma-cells = <1>;
dma-channels = <32>;
};
/* AGCP DMA controller */
dma-controller@41580000 {
compatible = "sprd,sc9860-dma";
reg = <0x41580000 0x4000>;
clocks = <&agcp_gate CLK_AGCP_DMAAP_EB>,
<&agcp_gate CLK_AGCP_AP_ASHB_EB>;
clock-names = "enable", "ashb_eb";
#dma-cells = <1>;
dma-channels = <32>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ST-Ericsson DMA40 DMA Engine
Peios Kernel / Hardware and drivers / Device-tree binding reference / Dma bindings
Schema identifier ($id): "http://devicetree.org/schemas/dma/stericsson,dma40.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dma-controller.yaml#
Properties and child nodes (properties) #
#dma-cells — required here #
Exact value (const): 3
The first cell is the unique device channel number as indicated by this table for DB8500 which is the only ASIC known to use DMA40:
0: SPI controller 0 1: SD/MMC controller 0 (unused) 2: SD/MMC controller 1 (unused) 3: SD/MMC controller 2 (unused) 4: I2C port 1 5: I2C port 3 6: I2C port 2 7: I2C port 4 8: Synchronous Serial Port SSP0 9: Synchronous Serial Port SSP1 10: Multi-Channel Display Engine MCDE RX 11: UART port 2 12: UART port 1 13: UART port 0 14: Multirate Serial Port MSP2 15: I2C port 0 16: USB OTG in/out endpoints 7 & 15 17: USB OTG in/out endpoints 6 & 14 18: USB OTG in/out endpoints 5 & 13 19: USB OTG in/out endpoints 4 & 12 20: SLIMbus or HSI channel 0 21: SLIMbus or HSI channel 1 22: SLIMbus or HSI channel 2 23: SLIMbus or HSI channel 3 24: Multimedia DSP SXA0 25: Multimedia DSP SXA1 26: Multimedia DSP SXA2 27: Multimedia DSP SXA3 28: SD/MMC controller 2 29: SD/MMC controller 0 30: MSP port 1 on DB8500 v1, MSP port 3 on DB8500 v2 31: MSP port 0 or SLIMbus channel 0 32: SD/MMC controller 1 33: SPI controller 2 34: i2c3 RX2 TX2 35: SPI controller 1 36: USB OTG in/out endpoints 3 & 11 37: USB OTG in/out endpoints 2 & 10 38: USB OTG in/out endpoints 1 & 9 39: USB OTG in/out endpoints 8 40: SPI controller 3 41: SD/MMC controller 3 42: SD/MMC controller 4 43: SD/MMC controller 5 44: Multimedia DSP SXA4 45: Multimedia DSP SXA5 46: SLIMbus channel 8 or Multimedia DSP SXA6 47: SLIMbus channel 9 or Multimedia DSP SXA7 48: Crypto Accelerator 1 49: Crypto Accelerator 1 TX or Hash Accelerator 1 TX 50: Hash Accelerator 1 TX 51: memcpy TX (to be used by the DMA driver for memcpy operations) 52: SLIMbus or HSI channel 4 53: SLIMbus or HSI channel 5 54: SLIMbus or HSI channel 6 55: SLIMbus or HSI channel 7 56: memcpy (to be used by the DMA driver for memcpy operations) 57: memcpy (to be used by the DMA driver for memcpy operations) 58: memcpy (to be used by the DMA driver for memcpy operations) 59: memcpy (to be used by the DMA driver for memcpy operations) 60: memcpy (to be used by the DMA driver for memcpy operations) 61: Crypto Accelerator 0 62: Crypto Accelerator 0 TX or Hash Accelerator 0 TX 63: Hash Accelerator 0 TX
The second cell is the DMA request line number. This is only used when a fixed channel is allocated, and indicated by setting bit 3 in the flags field (see below).
The third cell is a 32bit flags bitfield with the following possible
bits set:
0x00000001 (bit 0) - mode:
Logical channel when unset
Physical channel when set
0x00000002 (bit 1) - direction:
Memory to Device when unset
Device to Memory when set
0x00000004 (bit 2) - endianness:
Little endian when unset
Big endian when set
0x00000008 (bit 3) - use fixed channel:
Use automatic channel selection when unset
Use DMA request line number when set
0x00000010 (bit 4) - set channel as high priority:
Normal priority when unset
High priority when set
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stericsson,db8500-dma40"
Item 2
Exact value (
const):"stericsson,dma40"
reg — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
DMA40 memory base
Rule 2
Array item rules (
items)Item 1
DMA40 memory base
Item 2
LCPA memory base, deprecated, use eSRAM pool instead
Deprecated (
deprecated):true
reg-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"base"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"base"Item 2
Exact value (
const):"lcpa"Deprecated (
deprecated):true
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
sram — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
A phandle array with inner size 1 (no arg cells). First phandle is the LCPA (Logical Channel Parameter Address) memory. Second phandle is the LCLA (Logical Channel Link base Address) memory.
Maximum number of items (maxItems): 2
Array item rules (items) #
Maximum number of items (
maxItems):1
memcpy-channels — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array of u32 elements indicating which channels on the DMA engine are eligible for memcpy transfers
Required in this object (required): "#dma-cells", "compatible", "reg", "interrupts", "clocks", "sram", "memcpy-channels"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/mfd/dbx500-prcmu.h>
dma-controller@801c0000 {
compatible = "stericsson,db8500-dma40", "stericsson,dma40";
reg = <0x801c0000 0x1000>;
reg-names = "base";
sram = <&lcpa>, <&lcla>;
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <3>;
memcpy-channels = <56 57 58 59 60>;
clocks = <&prcmu_clk PRCMU_DMACLK>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)