Loongson LS2X APB DMA controller

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)

Edit this page