xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/i2c/ov2640.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Omnivision OV2640 CMOS sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe Omnivision OV2640 sensor supports multiple resolutions output, such as
4*4882a593SmuzhiyunCIF, SVGA, UXGA. It also can support the YUV422/420, RGB565/555 or raw RGB
5*4882a593Smuzhiyunoutput formats.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRequired Properties:
8*4882a593Smuzhiyun- compatible: should be "ovti,ov2640"
9*4882a593Smuzhiyun- clocks: reference to the xvclk input clock.
10*4882a593Smuzhiyun- clock-names: should be "xvclk".
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunOptional Properties:
13*4882a593Smuzhiyun- resetb-gpios: reference to the GPIO connected to the resetb pin, if any.
14*4882a593Smuzhiyun- pwdn-gpios: reference to the GPIO connected to the pwdn pin, if any.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunThe device node must contain one 'port' child node for its digital output
17*4882a593Smuzhiyunvideo port, in accordance with the video interface bindings defined in
18*4882a593SmuzhiyunDocumentation/devicetree/bindings/media/video-interfaces.txt.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunExample:
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun	i2c1: i2c@f0018000 {
23*4882a593Smuzhiyun		ov2640: camera@30 {
24*4882a593Smuzhiyun			compatible = "ovti,ov2640";
25*4882a593Smuzhiyun			reg = <0x30>;
26*4882a593Smuzhiyun			pinctrl-names = "default";
27*4882a593Smuzhiyun			pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
28*4882a593Smuzhiyun			resetb-gpios = <&pioE 11 GPIO_ACTIVE_LOW>;
29*4882a593Smuzhiyun			pwdn-gpios = <&pioE 13 GPIO_ACTIVE_HIGH>;
30*4882a593Smuzhiyun			clocks = <&pck0>;
31*4882a593Smuzhiyun			clock-names = "xvclk";
32*4882a593Smuzhiyun			assigned-clocks = <&pck0>;
33*4882a593Smuzhiyun			assigned-clock-rates = <25000000>;
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun			port {
36*4882a593Smuzhiyun				ov2640_0: endpoint {
37*4882a593Smuzhiyun					remote-endpoint = <&isi_0>;
38*4882a593Smuzhiyun				};
39*4882a593Smuzhiyun			};
40*4882a593Smuzhiyun		};
41*4882a593Smuzhiyun	};
42