124538cc7SWenyou Yang* Omnivision OV7740 CMOS image sensor
224538cc7SWenyou Yang
324538cc7SWenyou YangThe Omnivision OV7740 image sensor supports multiple output image
424538cc7SWenyou Yangsize, such as VGA, and QVGA, CIF and any size smaller. It also
524538cc7SWenyou Yangsupports the RAW RGB and YUV output formats.
624538cc7SWenyou Yang
724538cc7SWenyou YangThe common video interfaces bindings (see video-interfaces.txt) should
824538cc7SWenyou Yangbe used to specify link to the image data receiver. The OV7740 device
924538cc7SWenyou Yangnode should contain one 'port' child node with an 'endpoint' subnode.
1024538cc7SWenyou Yang
1124538cc7SWenyou YangRequired Properties:
1224538cc7SWenyou Yang- compatible:	"ovti,ov7740".
1324538cc7SWenyou Yang- reg:		I2C slave address of the sensor.
1424538cc7SWenyou Yang- clocks:	Reference to the xvclk input clock.
1524538cc7SWenyou Yang- clock-names:	"xvclk".
1624538cc7SWenyou Yang
1724538cc7SWenyou YangOptional Properties:
1824538cc7SWenyou Yang- reset-gpios: Rreference to the GPIO connected to the reset_b pin,
1924538cc7SWenyou Yang  if any. Active low with pull-ip resistor.
2024538cc7SWenyou Yang- powerdown-gpios: Reference to the GPIO connected to the pwdn pin,
2124538cc7SWenyou Yang  if any. Active high with pull-down resistor.
2224538cc7SWenyou Yang
2324538cc7SWenyou YangEndpoint node mandatory properties:
2424538cc7SWenyou Yang- remote-endpoint: A phandle to the bus receiver's endpoint node.
2524538cc7SWenyou Yang
2624538cc7SWenyou YangExample:
2724538cc7SWenyou Yang
2824538cc7SWenyou Yang	i2c1: i2c@fc028000 {
2924538cc7SWenyou Yang		ov7740: camera@21 {
3024538cc7SWenyou Yang			compatible = "ovti,ov7740";
3124538cc7SWenyou Yang			reg = <0x21>;
3224538cc7SWenyou Yang			pinctrl-names = "default";
3324538cc7SWenyou Yang			pinctrl-0 = <&pinctrl_sensor_power &pinctrl_sensor_reset>;
3424538cc7SWenyou Yang			clocks = <&isc>;
3524538cc7SWenyou Yang			clock-names = "xvclk";
3624538cc7SWenyou Yang			assigned-clocks = <&isc>;
3724538cc7SWenyou Yang			assigned-clock-rates = <24000000>;
3824538cc7SWenyou Yang			reset-gpios = <&pioA 43 GPIO_ACTIVE_LOW>;
3924538cc7SWenyou Yang			powerdown-gpios = <&pioA 44 GPIO_ACTIVE_HIGH>;
4024538cc7SWenyou Yang
4124538cc7SWenyou Yang			port {
4224538cc7SWenyou Yang				ov7740_0: endpoint {
4324538cc7SWenyou Yang					remote-endpoint = <&isc_0>;
4424538cc7SWenyou Yang				};
4524538cc7SWenyou Yang			};
4624538cc7SWenyou Yang		};
4724538cc7SWenyou Yang	};
48