xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/lt7911d.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Lontium lt7911d type-c/DP to MIPI-CSI Bridge
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired Properties:
4*4882a593Smuzhiyun- compatible: should be "lontium,lt7911d".
5*4882a593Smuzhiyun- clocks: reference to the 27M xvclk input clock.
6*4882a593Smuzhiyun- clock-names: should be "xvclk".
7*4882a593Smuzhiyun- reset-gpios: Low active reset gpio.
8*4882a593Smuzhiyun- power-gpios: High active power gpio.
9*4882a593Smuzhiyun- hpd-ctl-gpios: High active hpd control gpio.
10*4882a593Smuzhiyun		 If inverted circuit, choose low active.
11*4882a593Smuzhiyun- plugin-det-gpios: Low active plugin detect gpio.
12*4882a593Smuzhiyun- interrupts: GPIO connected to the gpio5.
13*4882a593Smuzhiyun- data-lanes: should be <1 2 3 4> for four-lane operation,
14*4882a593Smuzhiyun	      or <1 2> for two-lane operation.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunAttention:
17*4882a593SmuzhiyunLT7911D device address 0x2b(7bit)
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunExample:
20*4882a593Smuzhiyun&i2c7 {
21*4882a593Smuzhiyun	status = "okay";
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	lt7911d: lt7911d@2b {
24*4882a593Smuzhiyun		compatible = "lontium,lt7911d";
25*4882a593Smuzhiyun		status = "okay";
26*4882a593Smuzhiyun		reg = <0x2b>;
27*4882a593Smuzhiyun		clocks = <&cru CLK_MIPI_CAMARAOUT_M1>;
28*4882a593Smuzhiyun		clock-names = "xvclk";
29*4882a593Smuzhiyun		interrupt-parent = <&gpio3>;
30*4882a593Smuzhiyun		interrupts = <RK_PD4 IRQ_TYPE_EDGE_RISING>;
31*4882a593Smuzhiyun		power-domains = <&power RK3588_PD_VI>;
32*4882a593Smuzhiyun		pinctrl-names = "default";
33*4882a593Smuzhiyun		pinctrl-0 = <&mipim1_camera1_clk>;
34*4882a593Smuzhiyun		reset-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>;
35*4882a593Smuzhiyun		power-gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_HIGH>;
36*4882a593Smuzhiyun		hpd-ctl-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
37*4882a593Smuzhiyun		plugin-det-gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
38*4882a593Smuzhiyun		rockchip,camera-module-index = <0>;
39*4882a593Smuzhiyun		rockchip,camera-module-facing = "back";
40*4882a593Smuzhiyun		rockchip,camera-module-name = "LT7911D";
41*4882a593Smuzhiyun		rockchip,camera-module-lens-name = "NC";
42*4882a593Smuzhiyun		port {
43*4882a593Smuzhiyun			lt7911d_out: endpoint {
44*4882a593Smuzhiyun				remote-endpoint = <&hdmi_mipi_in>;
45*4882a593Smuzhiyun				data-lanes = <1 2 3 4>;
46*4882a593Smuzhiyun			};
47*4882a593Smuzhiyun		};
48*4882a593Smuzhiyun	};
49*4882a593Smuzhiyun};
50