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