treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / dma / allwinner,sun50i-a64-dma.yaml
blob9e53472be1947d0dcf4aa0fc26ab32f6b6c8031f
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#
7 title: Allwinner A64 DMA Controller Device Tree Bindings
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <mripard@kernel.org>
13 allOf:
14   - $ref: "dma-controller.yaml#"
16 properties:
17   "#dma-cells":
18     const: 1
19     description: The cell is the request line number.
21   compatible:
22     enum:
23       - allwinner,sun50i-a64-dma
24       - allwinner,sun50i-h6-dma
26   reg:
27     maxItems: 1
29   interrupts:
30     maxItems: 1
32   clocks:
33     minItems: 1
34     maxItems: 2
36   clock-names:
37     items:
38       - const: bus
39       - const: mbus
41   resets:
42     maxItems: 1
44 required:
45   - "#dma-cells"
46   - compatible
47   - reg
48   - interrupts
49   - clocks
50   - resets
51   - dma-channels
53 if:
54   properties:
55     compatible:
56       const: allwinner,sun50i-h6-dma
58 then:
59   properties:
60     clocks:
61       maxItems: 2
63   required:
64     - clock-names
66 else:
67   properties:
68     clocks:
69       maxItems: 1
71 unevaluatedProperties: false
73 examples:
74   - |
75     dma: dma-controller@1c02000 {
76         compatible = "allwinner,sun50i-a64-dma";
77         reg = <0x01c02000 0x1000>;
78         interrupts = <0 50 4>;
79         clocks = <&ccu 30>;
80         dma-channels = <8>;
81         dma-requests = <27>;
82         resets = <&ccu 7>;
83         #dma-cells = <1>;
84     };
86 ...