1c51d58daSLaurent Pinchart# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c51d58daSLaurent Pinchart%YAML 1.2
3c51d58daSLaurent Pinchart---
4c51d58daSLaurent Pinchart$id: http://devicetree.org/schemas/display/bridge/thine,thc63lvd1024.yaml#
5c51d58daSLaurent Pinchart$schema: http://devicetree.org/meta-schemas/core.yaml#
6c51d58daSLaurent Pinchart
7c51d58daSLaurent Pincharttitle: Thine Electronics THC63LVD1024 LVDS Decoder
8c51d58daSLaurent Pinchart
9c51d58daSLaurent Pinchartmaintainers:
10c51d58daSLaurent Pinchart  - Jacopo Mondi <jacopo+renesas@jmondi.org>
11c51d58daSLaurent Pinchart  - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
12c51d58daSLaurent Pinchart
13c51d58daSLaurent Pinchartdescription: |
14c51d58daSLaurent Pinchart  The THC63LVD1024 is a dual link LVDS receiver designed to convert LVDS
15c51d58daSLaurent Pinchart  streams to parallel data outputs. The chip supports single/dual input/output
16c51d58daSLaurent Pinchart  modes, handling up to two LVDS input streams and up to two digital CMOS/TTL
17c51d58daSLaurent Pinchart  outputs.
18c51d58daSLaurent Pinchart
19c51d58daSLaurent Pinchart  Single or dual operation mode, output data mapping and DDR output modes are
20c51d58daSLaurent Pinchart  configured through input signals and the chip does not expose any control
21c51d58daSLaurent Pinchart  bus.
22c51d58daSLaurent Pinchart
23c51d58daSLaurent Pinchartproperties:
24c51d58daSLaurent Pinchart  compatible:
25c51d58daSLaurent Pinchart    const: thine,thc63lvd1024
26c51d58daSLaurent Pinchart
27c51d58daSLaurent Pinchart  ports:
28c51d58daSLaurent Pinchart    type: object
29c51d58daSLaurent Pinchart    description: |
30c51d58daSLaurent Pinchart      This device has four video ports. Their connections are modeled using the
31c51d58daSLaurent Pinchart      OF graph bindings specified in Documentation/devicetree/bindings/graph.txt.
32c51d58daSLaurent Pinchart
33c51d58daSLaurent Pinchart      The device can operate in single-link mode or dual-link mode. In
34c51d58daSLaurent Pinchart      single-link mode, all pixels are received on port@0, and port@1 shall not
35c51d58daSLaurent Pinchart      contain any endpoint. In dual-link mode, even-numbered pixels are
36c51d58daSLaurent Pinchart      received on port@0 and odd-numbered pixels on port@1, and both port@0 and
37c51d58daSLaurent Pinchart      port@1 shall contain endpoints.
38c51d58daSLaurent Pinchart
39c51d58daSLaurent Pinchart    properties:
40c51d58daSLaurent Pinchart      '#address-cells':
41c51d58daSLaurent Pinchart        const: 1
42c51d58daSLaurent Pinchart
43c51d58daSLaurent Pinchart      '#size-cells':
44c51d58daSLaurent Pinchart        const: 0
45c51d58daSLaurent Pinchart
46c51d58daSLaurent Pinchart      port@0:
47c51d58daSLaurent Pinchart        type: object
48c51d58daSLaurent Pinchart        description: First LVDS input port
49c51d58daSLaurent Pinchart
50c51d58daSLaurent Pinchart      port@1:
51c51d58daSLaurent Pinchart        type: object
52c51d58daSLaurent Pinchart        description: Second LVDS input port
53c51d58daSLaurent Pinchart
54c51d58daSLaurent Pinchart      port@2:
55c51d58daSLaurent Pinchart        type: object
56c51d58daSLaurent Pinchart        description: First digital CMOS/TTL parallel output
57c51d58daSLaurent Pinchart
58c51d58daSLaurent Pinchart      port@3:
59c51d58daSLaurent Pinchart        type: object
60c51d58daSLaurent Pinchart        description: Second digital CMOS/TTL parallel output
61c51d58daSLaurent Pinchart
62c51d58daSLaurent Pinchart    required:
63c51d58daSLaurent Pinchart      - port@0
64c51d58daSLaurent Pinchart      - port@2
65c51d58daSLaurent Pinchart
66c51d58daSLaurent Pinchart    additionalProperties: false
67c51d58daSLaurent Pinchart
68c51d58daSLaurent Pinchart  oe-gpios:
69c51d58daSLaurent Pinchart    maxItems: 1
70c51d58daSLaurent Pinchart    description: Output enable GPIO signal, pin name "OE", active high.
71c51d58daSLaurent Pinchart
72c51d58daSLaurent Pinchart  powerdown-gpios:
73c51d58daSLaurent Pinchart    maxItems: 1
74c51d58daSLaurent Pinchart    description: Power down GPIO signal, pin name "/PDWN", active low.
75c51d58daSLaurent Pinchart
76c51d58daSLaurent Pinchart  vcc-supply:
77c51d58daSLaurent Pinchart    maxItems: 1
78c51d58daSLaurent Pinchart    description:
79c51d58daSLaurent Pinchart      Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and
80c51d58daSLaurent Pinchart      digital circuitry.
81c51d58daSLaurent Pinchart
82c51d58daSLaurent Pinchartrequired:
83c51d58daSLaurent Pinchart  - compatible
84c51d58daSLaurent Pinchart  - ports
85c51d58daSLaurent Pinchart  - vcc-supply
86c51d58daSLaurent Pinchart
87c51d58daSLaurent PinchartadditionalProperties: false
88c51d58daSLaurent Pinchart
89c51d58daSLaurent Pinchartexamples:
90c51d58daSLaurent Pinchart  - |
91c51d58daSLaurent Pinchart    #include <dt-bindings/gpio/gpio.h>
92c51d58daSLaurent Pinchart
93c51d58daSLaurent Pinchart    lvds-decoder {
94c51d58daSLaurent Pinchart        compatible = "thine,thc63lvd1024";
95c51d58daSLaurent Pinchart
96c51d58daSLaurent Pinchart        vcc-supply = <&reg_lvds_vcc>;
97c51d58daSLaurent Pinchart        powerdown-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
98c51d58daSLaurent Pinchart
99c51d58daSLaurent Pinchart        ports {
100c51d58daSLaurent Pinchart            #address-cells = <1>;
101c51d58daSLaurent Pinchart            #size-cells = <0>;
102c51d58daSLaurent Pinchart
103c51d58daSLaurent Pinchart            port@0 {
104c51d58daSLaurent Pinchart                reg = <0>;
105c51d58daSLaurent Pinchart
106c51d58daSLaurent Pinchart                lvds_dec_in_0: endpoint {
107c51d58daSLaurent Pinchart                    remote-endpoint = <&lvds_out>;
108c51d58daSLaurent Pinchart                };
109c51d58daSLaurent Pinchart            };
110c51d58daSLaurent Pinchart
111c51d58daSLaurent Pinchart            port@2 {
112c51d58daSLaurent Pinchart                reg = <2>;
113c51d58daSLaurent Pinchart
114c51d58daSLaurent Pinchart                lvds_dec_out_2: endpoint {
115c51d58daSLaurent Pinchart                    remote-endpoint = <&adv7511_in>;
116c51d58daSLaurent Pinchart                };
117c51d58daSLaurent Pinchart            };
118c51d58daSLaurent Pinchart        };
119c51d58daSLaurent Pinchart    };
120c51d58daSLaurent Pinchart
121c51d58daSLaurent Pinchart...
122