Merge tag 'docs-5.11-2' of git://git.lwn.net/linux
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / media / allwinner,sun4i-a10-video-engine.yaml
1 # SPDX-License-Identifier: GPL-2.0-only
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-video-engine.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Allwinner A10 Video Engine Device Tree Bindings
8
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <mripard@kernel.org>
12
13 properties:
14   compatible:
15     enum:
16       - allwinner,sun4i-a10-video-engine
17       - allwinner,sun5i-a13-video-engine
18       - allwinner,sun7i-a20-video-engine
19       - allwinner,sun8i-a33-video-engine
20       - allwinner,sun8i-h3-video-engine
21       - allwinner,sun8i-v3s-video-engine
22       - allwinner,sun8i-r40-video-engine
23       - allwinner,sun50i-a64-video-engine
24       - allwinner,sun50i-h5-video-engine
25       - allwinner,sun50i-h6-video-engine
26
27   reg:
28     maxItems: 1
29
30   interrupts:
31     maxItems: 1
32
33   clocks:
34     items:
35       - description: Bus Clock
36       - description: Module Clock
37       - description: RAM Clock
38
39   clock-names:
40     items:
41       - const: ahb
42       - const: mod
43       - const: ram
44
45   resets:
46     maxItems: 1
47
48   allwinner,sram:
49     $ref: /schemas/types.yaml#/definitions/phandle-array
50     description: Phandle to the device SRAM
51
52   iommus:
53     maxItems: 1
54
55   memory-region:
56     description:
57       CMA pool to use for buffers allocation instead of the default
58       CMA pool.
59
60 required:
61   - compatible
62   - reg
63   - interrupts
64   - clocks
65   - clock-names
66   - resets
67   - allwinner,sram
68
69 additionalProperties: false
70
71 examples:
72   - |
73     #include <dt-bindings/interrupt-controller/arm-gic.h>
74     #include <dt-bindings/clock/sun7i-a20-ccu.h>
75     #include <dt-bindings/reset/sun4i-a10-ccu.h>
76
77     video-codec@1c0e000 {
78         compatible = "allwinner,sun7i-a20-video-engine";
79         reg = <0x01c0e000 0x1000>;
80         interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
81         clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
82                  <&ccu CLK_DRAM_VE>;
83         clock-names = "ahb", "mod", "ram";
84         resets = <&ccu RST_VE>;
85         allwinner,sram = <&ve_sram 1>;
86     };
87
88 ...