xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/rk628.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* RK628 HDMI-RX to MIPI CSI2-TX Bridge
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe RK628 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- compatible: value should be "rockchip,rk628-csi-v4l2"
8*4882a593Smuzhiyun- reg: I2C device address
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional Properties:
11*4882a593Smuzhiyun- reset-gpios: gpio phandle GPIO connected to the reset pin
12*4882a593Smuzhiyun- enable-gpios: a GPIO spec for the enable pin
13*4882a593Smuzhiyun- plugin-det-gpios: HDMI 5V detect pin
14*4882a593Smuzhiyun- interrupts: GPIO connected to the interrupt pin
15*4882a593Smuzhiyun- data-lanes: should be <1 2 3 4> for four-lane operation,
16*4882a593Smuzhiyun	      or <1 2> for two-lane operation
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunFor further information on the MIPI CSI-2 endpoint node properties, see
19*4882a593SmuzhiyunDocumentation/devicetree/bindings/media/video-interfaces.txt.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunExample:
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	rk628_csi_v4l2: rk628_csi_v4l2@50 {
24*4882a593Smuzhiyun		reg = <0x50>;
25*4882a593Smuzhiyun		compatible = "rockchip,rk628-csi-v4l2";
26*4882a593Smuzhiyun		interrupt-parent = <&gpio2>;
27*4882a593Smuzhiyun		interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
28*4882a593Smuzhiyun		enable-gpios = <&gpio5 RK_PC3 GPIO_ACTIVE_HIGH>;
29*4882a593Smuzhiyun		reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_LOW>;
30*4882a593Smuzhiyun		plugin-det-gpios = <&gpio2 RK_PA4 GPIO_ACTIVE_LOW>;
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun		rockchip,camera-module-index = <0>;
33*4882a593Smuzhiyun		rockchip,camera-module-facing = "back";
34*4882a593Smuzhiyun		rockchip,camera-module-name = "RK628-CSI";
35*4882a593Smuzhiyun		rockchip,camera-module-lens-name = "NC";
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun		port {
38*4882a593Smuzhiyun			hdmiin_out0: endpoint {
39*4882a593Smuzhiyun				remote-endpoint = <&mipi_in>;
40*4882a593Smuzhiyun				data-lanes = <1 2 3 4>;
41*4882a593Smuzhiyun			};
42*4882a593Smuzhiyun		};
43*4882a593Smuzhiyun	};
44