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