xref: /linux/Documentation/devicetree/bindings/media/aspeed,video-engine.yaml (revision e7e86d7697c6ed1dbbde18d7185c35b6967945ed)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/aspeed,video-engine.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ASPEED Video Engine
8
9maintainers:
10  - Eddie James <eajames@linux.ibm.com>
11
12description:
13  The Video Engine (VE) embedded in the ASPEED SOCs can be configured to
14  capture and compress video data from digital or analog sources.
15
16properties:
17  compatible:
18    enum:
19      - aspeed,ast2400-video-engine
20      - aspeed,ast2500-video-engine
21      - aspeed,ast2600-video-engine
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    maxItems: 2
28
29  clock-names:
30    items:
31      - const: vclk
32      - const: eclk
33
34  resets:
35    maxItems: 1
36
37  interrupts:
38    maxItems: 1
39
40  memory-region:
41    maxItems: 1
42    description: |
43      Phandle to the reserved memory nodes to be associated with the
44      VE. VE will acquires memory space for 3 purposes:
45        1. JPEG header
46        2. Compressed result
47        3. Temporary transformed image data
48
49required:
50  - compatible
51  - reg
52  - clocks
53  - clock-names
54  - interrupts
55
56additionalProperties: false
57
58examples:
59  - |
60    #include <dt-bindings/interrupt-controller/arm-gic.h>
61    #include <dt-bindings/clock/ast2600-clock.h>
62
63    video@1e700000 {
64        compatible = "aspeed,ast2600-video-engine";
65        reg = <0x1e700000 0x1000>;
66        clocks = <&syscon ASPEED_CLK_GATE_VCLK>,
67                 <&syscon ASPEED_CLK_GATE_ECLK>;
68        clock-names = "vclk", "eclk";
69        interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
70    };
71