Lightning Mountain centralized DMA controllers.
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)