xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/tc358743.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Toshiba TC358743 HDMI-RX to MIPI CSI2-TX Bridge
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe Toshiba TC358743 HDMI-RX to MIPI CSI2-TX (H2C) is a bridge that converts
4*4882a593Smuzhiyuna HDMI stream to MIPI CSI-2 TX. It is programmable through I2C.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunRequired Properties:
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun- compatible: value should be "toshiba,tc358743"
9*4882a593Smuzhiyun- clocks, clock-names: should contain a phandle link to the reference clock
10*4882a593Smuzhiyun		       source, the clock input is named "refclk".
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunOptional Properties:
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun- reset-gpios: gpio phandle GPIO connected to the reset pin
15*4882a593Smuzhiyun- interrupts: GPIO connected to the interrupt pin
16*4882a593Smuzhiyun- data-lanes: should be <1 2 3 4> for four-lane operation,
17*4882a593Smuzhiyun	      or <1 2> for two-lane operation
18*4882a593Smuzhiyun- clock-lanes: should be <0>
19*4882a593Smuzhiyun- clock-noncontinuous: Presence of this boolean property decides whether the
20*4882a593Smuzhiyun		       MIPI CSI-2 clock is continuous or non-continuous.
21*4882a593Smuzhiyun- link-frequencies: List of allowed link frequencies in Hz. Each frequency is
22*4882a593Smuzhiyun		    expressed as a 64-bit big-endian integer. The frequency
23*4882a593Smuzhiyun		    is half of the bps per lane due to DDR transmission.
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunFor further information on the MIPI CSI-2 endpoint node properties, see
26*4882a593SmuzhiyunDocumentation/devicetree/bindings/media/video-interfaces.txt.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	tc358743@f {
31*4882a593Smuzhiyun		compatible = "toshiba,tc358743";
32*4882a593Smuzhiyun		reg = <0x0f>;
33*4882a593Smuzhiyun		clocks = <&hdmi_osc>;
34*4882a593Smuzhiyun		clock-names = "refclk";
35*4882a593Smuzhiyun		reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>;
36*4882a593Smuzhiyun		interrupt-parent = <&gpio2>;
37*4882a593Smuzhiyun		interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun		port {
40*4882a593Smuzhiyun			tc358743_out: endpoint {
41*4882a593Smuzhiyun				remote-endpoint = <&mipi_csi2_in>;
42*4882a593Smuzhiyun				data-lanes = <1 2 3 4>;
43*4882a593Smuzhiyun				clock-lanes = <0>;
44*4882a593Smuzhiyun				clock-noncontinuous;
45*4882a593Smuzhiyun				link-frequencies = /bits/ 64 <297000000>;
46*4882a593Smuzhiyun			};
47*4882a593Smuzhiyun		};
48*4882a593Smuzhiyun	};
49