NXP Layerscape SoC qDMA Controller

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 here

Rule 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 here

Minimum number of items (minItems): 5

interrupt-names — not listed as required here

Minimum number of items (minItems): 5

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Maximum 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)

Edit this page