xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/ov772x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Omnivision OV7720/OV7725 CMOS sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe Omnivision OV7720/OV7725 sensor supports multiple resolutions output,
4*4882a593Smuzhiyunsuch as VGA, QVGA, and any size scaling down from CIF to 40x30. It also can
5*4882a593Smuzhiyunsupport the YUV422, RGB565/555/444, GRB422 or raw RGB output formats.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRequired Properties:
8*4882a593Smuzhiyun- compatible: shall be one of
9*4882a593Smuzhiyun	"ovti,ov7720"
10*4882a593Smuzhiyun	"ovti,ov7725"
11*4882a593Smuzhiyun- clocks: reference to the xclk input clock.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunOptional Properties:
14*4882a593Smuzhiyun- reset-gpios: reference to the GPIO connected to the RSTB pin which is
15*4882a593Smuzhiyun  active low, if any.
16*4882a593Smuzhiyun- powerdown-gpios: reference to the GPIO connected to the PWDN pin which is
17*4882a593Smuzhiyun  active high, if any.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunThe device node shall contain one 'port' child node with one child 'endpoint'
20*4882a593Smuzhiyunsubnode for its digital output video port, in accordance with the video
21*4882a593Smuzhiyuninterface bindings defined in Documentation/devicetree/bindings/media/
22*4882a593Smuzhiyunvideo-interfaces.txt.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunExample:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun&i2c0 {
27*4882a593Smuzhiyun	ov772x: camera@21 {
28*4882a593Smuzhiyun		compatible = "ovti,ov7725";
29*4882a593Smuzhiyun		reg = <0x21>;
30*4882a593Smuzhiyun		reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_LOW>;
31*4882a593Smuzhiyun		powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_LOW>;
32*4882a593Smuzhiyun		clocks = <&xclk>;
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun		port {
35*4882a593Smuzhiyun			ov772x_0: endpoint {
36*4882a593Smuzhiyun				remote-endpoint = <&vcap1_in0>;
37*4882a593Smuzhiyun			};
38*4882a593Smuzhiyun		};
39*4882a593Smuzhiyun	};
40*4882a593Smuzhiyun};
41