1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) 2019,2020 Lubomir Rintel <lkundrak@v3.sk>
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/display/bridge/chrontel,ch7033.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Chrontel CH7033 Video Encoder
9
10maintainers:
11  - Lubomir Rintel <lkundrak@v3.sk>
12
13properties:
14  compatible:
15    const: chrontel,ch7033
16
17  reg:
18    maxItems: 1
19    description: I2C address of the device
20
21  ports:
22    $ref: /schemas/graph.yaml#/properties/ports
23
24    properties:
25      port@0:
26        $ref: /schemas/graph.yaml#/properties/port
27        description: |
28          Video port for RGB input.
29
30      port@1:
31        $ref: /schemas/graph.yaml#/properties/port
32        description: |
33          DVI port, should be connected to a node compatible with the
34          dvi-connector binding.
35
36    required:
37      - port@0
38      - port@1
39
40required:
41  - compatible
42  - reg
43  - ports
44
45additionalProperties: false
46
47examples:
48  - |
49    i2c {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        vga-dvi-encoder@76 {
54            compatible = "chrontel,ch7033";
55            reg = <0x76>;
56
57            ports {
58                #address-cells = <1>;
59                #size-cells = <0>;
60
61                port@0 {
62                    reg = <0>;
63                    endpoint {
64                        remote-endpoint = <&lcd0_rgb_out>;
65                    };
66                };
67
68                port@1 {
69                    reg = <1>;
70                    endpoint {
71                        remote-endpoint = <&dvi_in>;
72                    };
73                };
74
75            };
76        };
77    };
78