187838addSJosh Wu* Omnivision OV2640 CMOS sensor
287838addSJosh Wu
39f994253SHans VerkuilThe Omnivision OV2640 sensor supports multiple resolutions output, such as
49f994253SHans VerkuilCIF, SVGA, UXGA. It also can support the YUV422/420, RGB565/555 or raw RGB
59f994253SHans Verkuiloutput formats.
687838addSJosh Wu
787838addSJosh WuRequired Properties:
887838addSJosh Wu- compatible: should be "ovti,ov2640"
987838addSJosh Wu- clocks: reference to the xvclk input clock.
1087838addSJosh Wu- clock-names: should be "xvclk".
1187838addSJosh Wu
1287838addSJosh WuOptional Properties:
1387838addSJosh Wu- resetb-gpios: reference to the GPIO connected to the resetb pin, if any.
1487838addSJosh Wu- pwdn-gpios: reference to the GPIO connected to the pwdn pin, if any.
1587838addSJosh Wu
1687838addSJosh WuThe device node must contain one 'port' child node for its digital output
1787838addSJosh Wuvideo port, in accordance with the video interface bindings defined in
1887838addSJosh WuDocumentation/devicetree/bindings/media/video-interfaces.txt.
1987838addSJosh Wu
2087838addSJosh WuExample:
2187838addSJosh Wu
2287838addSJosh Wu	i2c1: i2c@f0018000 {
239f994253SHans Verkuil		ov2640: camera@30 {
2487838addSJosh Wu			compatible = "ovti,ov2640";
2587838addSJosh Wu			reg = <0x30>;
2687838addSJosh Wu			pinctrl-names = "default";
279f994253SHans Verkuil			pinctrl-0 = <&pinctrl_pck0_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
289f994253SHans Verkuil			resetb-gpios = <&pioE 11 GPIO_ACTIVE_LOW>;
299f994253SHans Verkuil			pwdn-gpios = <&pioE 13 GPIO_ACTIVE_HIGH>;
309f994253SHans Verkuil			clocks = <&pck0>;
3187838addSJosh Wu			clock-names = "xvclk";
329f994253SHans Verkuil			assigned-clocks = <&pck0>;
3387838addSJosh Wu			assigned-clock-rates = <25000000>;
3487838addSJosh Wu
3587838addSJosh Wu			port {
3687838addSJosh Wu				ov2640_0: endpoint {
3787838addSJosh Wu					remote-endpoint = <&isi_0>;
3887838addSJosh Wu				};
3987838addSJosh Wu			};
4087838addSJosh Wu		};
4187838addSJosh Wu	};
42