1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/dma/allwinner,sun50i-a64-dma.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A64 DMA Controller Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13allOf:
14  - $ref: "dma-controller.yaml#"
15
16properties:
17  "#dma-cells":
18    const: 1
19    description: The cell is the request line number.
20
21  compatible:
22    oneOf:
23      - const: allwinner,sun50i-a64-dma
24      - const: allwinner,sun50i-h6-dma
25      - items:
26          - const: allwinner,sun8i-r40-dma
27          - const: allwinner,sun50i-a64-dma
28
29  reg:
30    maxItems: 1
31
32  interrupts:
33    maxItems: 1
34
35  clocks:
36    minItems: 1
37    maxItems: 2
38
39  clock-names:
40    items:
41      - const: bus
42      - const: mbus
43
44  resets:
45    maxItems: 1
46
47required:
48  - "#dma-cells"
49  - compatible
50  - reg
51  - interrupts
52  - clocks
53  - resets
54  - dma-channels
55
56if:
57  properties:
58    compatible:
59      const: allwinner,sun50i-h6-dma
60
61then:
62  properties:
63    clocks:
64      maxItems: 2
65
66  required:
67    - clock-names
68
69else:
70  properties:
71    clocks:
72      maxItems: 1
73
74unevaluatedProperties: false
75
76examples:
77  - |
78    dma: dma-controller@1c02000 {
79        compatible = "allwinner,sun50i-a64-dma";
80        reg = <0x01c02000 0x1000>;
81        interrupts = <0 50 4>;
82        clocks = <&ccu 30>;
83        dma-channels = <8>;
84        dma-requests = <27>;
85        resets = <&ccu 7>;
86        #dma-cells = <1>;
87    };
88
89...
90