xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/ov2680.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Omnivision OV2680 MIPI CSI-2 sensor
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired Properties:
4*c66ec88fSEmmanuel Vadot- compatible: should be "ovti,ov2680".
5*c66ec88fSEmmanuel Vadot- clocks: reference to the xvclk input clock.
6*c66ec88fSEmmanuel Vadot- clock-names: should be "xvclk".
7*c66ec88fSEmmanuel Vadot- DOVDD-supply: Digital I/O voltage supply.
8*c66ec88fSEmmanuel Vadot- DVDD-supply: Digital core voltage supply.
9*c66ec88fSEmmanuel Vadot- AVDD-supply: Analog voltage supply.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotOptional Properties:
12*c66ec88fSEmmanuel Vadot- reset-gpios: reference to the GPIO connected to the powerdown/reset pin,
13*c66ec88fSEmmanuel Vadot               if any. This is an active low signal to the OV2680.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotThe device node must contain one 'port' child node for its digital output
16*c66ec88fSEmmanuel Vadotvideo port, and this port must have a single endpoint in accordance with
17*c66ec88fSEmmanuel Vadot the video interface bindings defined in
18*c66ec88fSEmmanuel VadotDocumentation/devicetree/bindings/media/video-interfaces.txt.
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotEndpoint node required properties for CSI-2 connection are:
21*c66ec88fSEmmanuel Vadot- remote-endpoint: a phandle to the bus receiver's endpoint node.
22*c66ec88fSEmmanuel Vadot- clock-lanes: should be set to <0> (clock lane on hardware lane 0).
23*c66ec88fSEmmanuel Vadot- data-lanes: should be set to <1> (one CSI-2 lane supported).
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel VadotExample:
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot&i2c2 {
28*c66ec88fSEmmanuel Vadot	ov2680: camera-sensor@36 {
29*c66ec88fSEmmanuel Vadot		compatible = "ovti,ov2680";
30*c66ec88fSEmmanuel Vadot		reg = <0x36>;
31*c66ec88fSEmmanuel Vadot		clocks = <&osc>;
32*c66ec88fSEmmanuel Vadot		clock-names = "xvclk";
33*c66ec88fSEmmanuel Vadot		reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
34*c66ec88fSEmmanuel Vadot		DOVDD-supply = <&sw2_reg>;
35*c66ec88fSEmmanuel Vadot		DVDD-supply = <&sw2_reg>;
36*c66ec88fSEmmanuel Vadot		AVDD-supply = <&reg_peri_3p15v>;
37*c66ec88fSEmmanuel Vadot
38*c66ec88fSEmmanuel Vadot		port {
39*c66ec88fSEmmanuel Vadot			ov2680_to_mipi: endpoint {
40*c66ec88fSEmmanuel Vadot				remote-endpoint = <&mipi_from_sensor>;
41*c66ec88fSEmmanuel Vadot				clock-lanes = <0>;
42*c66ec88fSEmmanuel Vadot				data-lanes = <1>;
43*c66ec88fSEmmanuel Vadot			};
44*c66ec88fSEmmanuel Vadot		};
45*c66ec88fSEmmanuel Vadot	};
46*c66ec88fSEmmanuel Vadot};
47