1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-tv-encoder.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 TV Encoder Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  compatible:
15    const: allwinner,sun4i-a10-tv-encoder
16
17  reg:
18    maxItems: 1
19
20  clocks:
21    maxItems: 1
22
23  resets:
24    maxItems: 1
25
26  port:
27    type: object
28    description:
29      A port node with endpoint definitions as defined in
30      Documentation/devicetree/bindings/media/video-interfaces.txt. The
31      first port should be the input endpoint, usually coming from the
32      associated TCON.
33
34required:
35  - compatible
36  - reg
37  - clocks
38  - resets
39  - port
40
41additionalProperties: false
42
43examples:
44  - |
45    tve0: tv-encoder@1c0a000 {
46        compatible = "allwinner,sun4i-a10-tv-encoder";
47        reg = <0x01c0a000 0x1000>;
48        clocks = <&ahb_gates 34>;
49        resets = <&tcon_ch0_clk 0>;
50
51        port {
52            tve0_in_tcon0: endpoint {
53                remote-endpoint = <&tcon0_out_tve0>;
54            };
55        };
56    };
57
58...
59