xref: /freebsd/sys/contrib/device-tree/Bindings/media/i2c/ov7251.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1* Omnivision 1/7.5-Inch B&W VGA CMOS Digital Image Sensor
2
3The Omnivision OV7251 is a 1/7.5-Inch CMOS active pixel digital image sensor
4with an active array size of 640H x 480V. It is programmable through a serial
5I2C interface.
6
7Required Properties:
8- compatible: Value should be "ovti,ov7251".
9- clocks: Reference to the xclk clock.
10- clock-names: Should be "xclk".
11- clock-frequency: Frequency of the xclk clock.
12- enable-gpios: Chip enable GPIO. Polarity is GPIO_ACTIVE_HIGH. This corresponds
13  to the hardware pin XSHUTDOWN which is physically active low.
14- vdddo-supply: Chip digital IO regulator.
15- vdda-supply: Chip analog regulator.
16- vddd-supply: Chip digital core regulator.
17
18The device node shall contain one 'port' child node with a single 'endpoint'
19subnode for its digital output video port, in accordance with the video
20interface bindings defined in
21Documentation/devicetree/bindings/media/video-interfaces.txt.
22
23Example:
24
25	&i2c1 {
26		...
27
28		ov7251: camera-sensor@60 {
29			compatible = "ovti,ov7251";
30			reg = <0x60>;
31
32			enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
33			pinctrl-names = "default";
34			pinctrl-0 = <&camera_bw_default>;
35
36			clocks = <&clks 200>;
37			clock-names = "xclk";
38			clock-frequency = <24000000>;
39
40			vdddo-supply = <&camera_dovdd_1v8>;
41			vdda-supply = <&camera_avdd_2v8>;
42			vddd-supply = <&camera_dvdd_1v2>;
43
44			port {
45				ov7251_ep: endpoint {
46					clock-lanes = <1>;
47					data-lanes = <0>;
48					remote-endpoint = <&csi0_ep>;
49				};
50			};
51		};
52	};
53