Merge tag 'tegra-for-4.8-i2c' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[cascardo/linux.git] / Documentation / devicetree / bindings / display / bridge / adi,adv7511.txt
1 Analog Device ADV7511(W)/13/33 HDMI Encoders
2 -----------------------------------------
3
4 The ADV7511, ADV7511W, ADV7513 and ADV7533 are HDMI audio and video transmitters
5 compatible with HDMI 1.4 and DVI 1.0. They support color space conversion,
6 S/PDIF, CEC and HDCP. ADV7533 supports the DSI interface for input pixels, while
7 the others support RGB interface.
8
9 Required properties:
10
11 - compatible: Should be one of:
12                 "adi,adv7511"
13                 "adi,adv7511w"
14                 "adi,adv7513"
15                 "adi,adv7533"
16
17 - reg: I2C slave address
18
19 The ADV7511 supports a large number of input data formats that differ by their
20 color depth, color format, clock mode, bit justification and random
21 arrangement of components on the data bus. The combination of the following
22 properties describe the input and map directly to the video input tables of the
23 ADV7511 datasheet that document all the supported combinations.
24
25 - adi,input-depth: Number of bits per color component at the input (8, 10 or
26   12).
27 - adi,input-colorspace: The input color space, one of "rgb", "yuv422" or
28   "yuv444".
29 - adi,input-clock: The input clock type, one of "1x" (one clock cycle per
30   pixel), "2x" (two clock cycles per pixel), "ddr" (one clock cycle per pixel,
31   data driven on both edges).
32
33 The following input format properties are required except in "rgb 1x" and
34 "yuv444 1x" modes, in which case they must not be specified.
35
36 - adi,input-style: The input components arrangement variant (1, 2 or 3), as
37   listed in the input format tables in the datasheet.
38 - adi,input-justification: The input bit justification ("left", "evenly",
39   "right").
40
41 The following properties are required for ADV7533:
42
43 - adi,dsi-lanes: Number of DSI data lanes connected to the DSI host. It should
44   be one of 1, 2, 3 or 4.
45
46 Optional properties:
47
48 - interrupts: Specifier for the ADV7511 interrupt
49 - pd-gpios: Specifier for the GPIO connected to the power down signal
50
51 - adi,clock-delay: Video data clock delay relative to the pixel clock, in ps
52   (-1200 ps .. 1600 ps). Defaults to no delay.
53 - adi,embedded-sync: The input uses synchronization signals embedded in the
54   data stream (similar to BT.656). Defaults to separate H/V synchronization
55   signals.
56 - adi,disable-timing-generator: Only for ADV7533. Disables the internal timing
57   generator. The chip will rely on the sync signals in the DSI data lanes,
58   rather than generate its own timings for HDMI output.
59
60 Required nodes:
61
62 The ADV7511 has two video ports. Their connections are modelled using the OF
63 graph bindings specified in Documentation/devicetree/bindings/graph.txt.
64
65 - Video port 0 for the RGB, YUV or DSI input. In the case of ADV7533, the
66   remote endpoint phandle should be a reference to a valid mipi_dsi_host device
67   node.
68 - Video port 1 for the HDMI output
69
70
71 Example
72 -------
73
74         adv7511w: hdmi@39 {
75                 compatible = "adi,adv7511w";
76                 reg = <39>;
77                 interrupt-parent = <&gpio3>;
78                 interrupts = <29 IRQ_TYPE_EDGE_FALLING>;
79
80                 adi,input-depth = <8>;
81                 adi,input-colorspace = "rgb";
82                 adi,input-clock = "1x";
83                 adi,input-style = <1>;
84                 adi,input-justification = "evenly";
85
86                 ports {
87                         #address-cells = <1>;
88                         #size-cells = <0>;
89
90                         port@0 {
91                                 reg = <0>;
92                                 adv7511w_in: endpoint {
93                                         remote-endpoint = <&dpi_out>;
94                                 };
95                         };
96
97                         port@1 {
98                                 reg = <1>;
99                                 adv7511_out: endpoint {
100                                         remote-endpoint = <&hdmi_connector_in>;
101                                 };
102                         };
103                 };
104         };