Loongson-1 APB DMA Controller
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)