Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: dt-bindings: media: Binding document for OV7251 camera sensor

Add the document for ov7251 device tree binding.

CC: Rob Herring <robh@kernel.org>
CC: Mark Rutland <mark.rutland@arm.com>
CC: devicetree@vger.kernel.org
Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Todor Tomov and committed by
Mauro Carvalho Chehab
eae419ef 86633417

+52
+52
Documentation/devicetree/bindings/media/i2c/ov7251.txt
··· 1 + * Omnivision 1/7.5-Inch B&W VGA CMOS Digital Image Sensor 2 + 3 + The Omnivision OV7251 is a 1/7.5-Inch CMOS active pixel digital image sensor 4 + with an active array size of 640H x 480V. It is programmable through a serial 5 + I2C interface. 6 + 7 + Required 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 + 18 + The device node shall contain one 'port' child node with a single 'endpoint' 19 + subnode for its digital output video port, in accordance with the video 20 + interface bindings defined in 21 + Documentation/devicetree/bindings/media/video-interfaces.txt. 22 + 23 + Example: 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 + };