NVIDIA Tegra Audio DMA (ADMA) controller

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 here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra210-adma"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Full address space range of DMA registers.

interrupts — not listed as required here

Maximum number of items (maxItems): 22

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra186-adma"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 32

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

Array item rules (items)

Item 1

Full address space range of DMA registers.

Rule 2

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Channel Page address space range of DMA registers.

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "page"

Rule 3

Properties and child nodes (properties)

reg — not listed as required here

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

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

Edit this page