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:
28*b6755423SRob Herring    $ref: /schemas/graph.yaml#/properties/ports
29c51d58daSLaurent Pinchart    description: |
30a4767912SLaurent Pinchart      The device can operate in single or dual input and output modes.
31a4767912SLaurent Pinchart
32a4767912SLaurent Pinchart      When operating in single input mode, all pixels are received on port@0,
33a4767912SLaurent Pinchart      and port@1 shall not contain any endpoint. In dual input mode,
34a4767912SLaurent Pinchart      even-numbered pixels are received on port@0 and odd-numbered pixels on
35a4767912SLaurent Pinchart      port@1, and both port@0 and port@1 shall contain endpoints.
36a4767912SLaurent Pinchart
37a4767912SLaurent Pinchart      When operating in single output mode all pixels are output from the first
38a4767912SLaurent Pinchart      CMOS/TTL port and port@3 shall not contain any endpoint. In dual output
39a4767912SLaurent Pinchart      mode pixels are output from both CMOS/TTL ports and both port@2 and
40a4767912SLaurent Pinchart      port@3 shall contain endpoints.
41c51d58daSLaurent Pinchart
42c51d58daSLaurent Pinchart    properties:
43c51d58daSLaurent Pinchart      port@0:
44*b6755423SRob Herring        $ref: /schemas/graph.yaml#/properties/port
45c51d58daSLaurent Pinchart        description: First LVDS input port
46c51d58daSLaurent Pinchart
47c51d58daSLaurent Pinchart      port@1:
48*b6755423SRob Herring        $ref: /schemas/graph.yaml#/properties/port
49c51d58daSLaurent Pinchart        description: Second LVDS input port
50c51d58daSLaurent Pinchart
51c51d58daSLaurent Pinchart      port@2:
52*b6755423SRob Herring        $ref: /schemas/graph.yaml#/properties/port
53c51d58daSLaurent Pinchart        description: First digital CMOS/TTL parallel output
54c51d58daSLaurent Pinchart
55c51d58daSLaurent Pinchart      port@3:
56*b6755423SRob Herring        $ref: /schemas/graph.yaml#/properties/port
57c51d58daSLaurent Pinchart        description: Second digital CMOS/TTL parallel output
58c51d58daSLaurent Pinchart
59c51d58daSLaurent Pinchart    required:
60c51d58daSLaurent Pinchart      - port@0
61c51d58daSLaurent Pinchart      - port@2
62c51d58daSLaurent Pinchart
63c51d58daSLaurent Pinchart  oe-gpios:
64c51d58daSLaurent Pinchart    maxItems: 1
65c51d58daSLaurent Pinchart    description: Output enable GPIO signal, pin name "OE", active high.
66c51d58daSLaurent Pinchart
67c51d58daSLaurent Pinchart  powerdown-gpios:
68c51d58daSLaurent Pinchart    maxItems: 1
69c51d58daSLaurent Pinchart    description: Power down GPIO signal, pin name "/PDWN", active low.
70c51d58daSLaurent Pinchart
71c51d58daSLaurent Pinchart  vcc-supply:
72c51d58daSLaurent Pinchart    description:
73c51d58daSLaurent Pinchart      Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and
74c51d58daSLaurent Pinchart      digital circuitry.
75c51d58daSLaurent Pinchart
76c51d58daSLaurent Pinchartrequired:
77c51d58daSLaurent Pinchart  - compatible
78c51d58daSLaurent Pinchart  - ports
79c51d58daSLaurent Pinchart  - vcc-supply
80c51d58daSLaurent Pinchart
81c51d58daSLaurent PinchartadditionalProperties: false
82c51d58daSLaurent Pinchart
83c51d58daSLaurent Pinchartexamples:
84c51d58daSLaurent Pinchart  - |
85c51d58daSLaurent Pinchart    #include <dt-bindings/gpio/gpio.h>
86c51d58daSLaurent Pinchart
87c51d58daSLaurent Pinchart    lvds-decoder {
88c51d58daSLaurent Pinchart        compatible = "thine,thc63lvd1024";
89c51d58daSLaurent Pinchart
90c51d58daSLaurent Pinchart        vcc-supply = <&reg_lvds_vcc>;
91c51d58daSLaurent Pinchart        powerdown-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;
92c51d58daSLaurent Pinchart
93c51d58daSLaurent Pinchart        ports {
94c51d58daSLaurent Pinchart            #address-cells = <1>;
95c51d58daSLaurent Pinchart            #size-cells = <0>;
96c51d58daSLaurent Pinchart
97c51d58daSLaurent Pinchart            port@0 {
98c51d58daSLaurent Pinchart                reg = <0>;
99c51d58daSLaurent Pinchart
100c51d58daSLaurent Pinchart                lvds_dec_in_0: endpoint {
101c51d58daSLaurent Pinchart                    remote-endpoint = <&lvds_out>;
102c51d58daSLaurent Pinchart                };
103c51d58daSLaurent Pinchart            };
104c51d58daSLaurent Pinchart
105c51d58daSLaurent Pinchart            port@2 {
106c51d58daSLaurent Pinchart                reg = <2>;
107c51d58daSLaurent Pinchart
108c51d58daSLaurent Pinchart                lvds_dec_out_2: endpoint {
109c51d58daSLaurent Pinchart                    remote-endpoint = <&adv7511_in>;
110c51d58daSLaurent Pinchart                };
111c51d58daSLaurent Pinchart            };
112c51d58daSLaurent Pinchart        };
113c51d58daSLaurent Pinchart    };
114c51d58daSLaurent Pinchart
115c51d58daSLaurent Pinchart...
116