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