summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/dma/loongson,ls2x-apbdma.yaml
blob: 6a1b49a49a646b9964e071981f9bb776dcb664d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/dma/loongson,ls2x-apbdma.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Loongson LS2X APB DMA controller

description:
  The Loongson LS2X APB DMA controller is used for transferring data
  between system memory and the peripherals on the APB bus.

maintainers:
  - Binbin Zhou <zhoubinbin@loongson.cn>

allOf:
  - $ref: dma-controller.yaml#

properties:
  compatible:
    oneOf:
      - const: loongson,ls2k1000-apbdma
      - items:
          - const: loongson,ls2k0500-apbdma
          - const: loongson,ls2k1000-apbdma

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  '#dma-cells':
    const: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - '#dma-cells'

additionalProperties: false

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>;
    };

...