Merge tag 'drm-intel-gt-next-2020-11-12-1' of git://anongit.freedesktop.org/drm/drm...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / dma / allwinner,sun50i-a64-dma.yaml
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
7 title: Allwinner A64 DMA Controller Device Tree Bindings
8
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <mripard@kernel.org>
12
13 allOf:
14   - $ref: "dma-controller.yaml#"
15
16 properties:
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
47 required:
48   - "#dma-cells"
49   - compatible
50   - reg
51   - interrupts
52   - clocks
53   - resets
54   - dma-channels
55
56 if:
57   properties:
58     compatible:
59       const: allwinner,sun50i-h6-dma
60
61 then:
62   properties:
63     clocks:
64       maxItems: 2
65
66   required:
67     - clock-names
68
69 else:
70   properties:
71     clocks:
72       maxItems: 1
73
74 unevaluatedProperties: false
75
76 examples:
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 ...