xref: /linux/Documentation/devicetree/bindings/media/i2c/ov7740.txt (revision 552c69b36ebd966186573b9c7a286b390935cce1)
1*24538cc7SWenyou Yang* Omnivision OV7740 CMOS image sensor
2*24538cc7SWenyou Yang
3*24538cc7SWenyou YangThe Omnivision OV7740 image sensor supports multiple output image
4*24538cc7SWenyou Yangsize, such as VGA, and QVGA, CIF and any size smaller. It also
5*24538cc7SWenyou Yangsupports the RAW RGB and YUV output formats.
6*24538cc7SWenyou Yang
7*24538cc7SWenyou YangThe common video interfaces bindings (see video-interfaces.txt) should
8*24538cc7SWenyou Yangbe used to specify link to the image data receiver. The OV7740 device
9*24538cc7SWenyou Yangnode should contain one 'port' child node with an 'endpoint' subnode.
10*24538cc7SWenyou Yang
11*24538cc7SWenyou YangRequired Properties:
12*24538cc7SWenyou Yang- compatible:	"ovti,ov7740".
13*24538cc7SWenyou Yang- reg:		I2C slave address of the sensor.
14*24538cc7SWenyou Yang- clocks:	Reference to the xvclk input clock.
15*24538cc7SWenyou Yang- clock-names:	"xvclk".
16*24538cc7SWenyou Yang
17*24538cc7SWenyou YangOptional Properties:
18*24538cc7SWenyou Yang- reset-gpios: Rreference to the GPIO connected to the reset_b pin,
19*24538cc7SWenyou Yang  if any. Active low with pull-ip resistor.
20*24538cc7SWenyou Yang- powerdown-gpios: Reference to the GPIO connected to the pwdn pin,
21*24538cc7SWenyou Yang  if any. Active high with pull-down resistor.
22*24538cc7SWenyou Yang
23*24538cc7SWenyou YangEndpoint node mandatory properties:
24*24538cc7SWenyou Yang- remote-endpoint: A phandle to the bus receiver's endpoint node.
25*24538cc7SWenyou Yang
26*24538cc7SWenyou YangExample:
27*24538cc7SWenyou Yang
28*24538cc7SWenyou Yang	i2c1: i2c@fc028000 {
29*24538cc7SWenyou Yang		ov7740: camera@21 {
30*24538cc7SWenyou Yang			compatible = "ovti,ov7740";
31*24538cc7SWenyou Yang			reg = <0x21>;
32*24538cc7SWenyou Yang			pinctrl-names = "default";
33*24538cc7SWenyou Yang			pinctrl-0 = <&pinctrl_sensor_power &pinctrl_sensor_reset>;
34*24538cc7SWenyou Yang			clocks = <&isc>;
35*24538cc7SWenyou Yang			clock-names = "xvclk";
36*24538cc7SWenyou Yang			assigned-clocks = <&isc>;
37*24538cc7SWenyou Yang			assigned-clock-rates = <24000000>;
38*24538cc7SWenyou Yang			reset-gpios = <&pioA 43 GPIO_ACTIVE_LOW>;
39*24538cc7SWenyou Yang			powerdown-gpios = <&pioA 44 GPIO_ACTIVE_HIGH>;
40*24538cc7SWenyou Yang
41*24538cc7SWenyou Yang			port {
42*24538cc7SWenyou Yang				ov7740_0: endpoint {
43*24538cc7SWenyou Yang					remote-endpoint = <&isc_0>;
44*24538cc7SWenyou Yang				};
45*24538cc7SWenyou Yang			};
46*24538cc7SWenyou Yang		};
47*24538cc7SWenyou Yang	};
48