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

[media] media: i2c/ov5645: add the device tree binding document

Add the document for ov5645 device tree binding.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Todor Tomov and committed by
Mauro Carvalho Chehab
09c716af 6c1c0afd

+54
+54
Documentation/devicetree/bindings/media/i2c/ov5645.txt
··· 1 + * Omnivision 1/4-Inch 5Mp CMOS Digital Image Sensor 2 + 3 + The Omnivision OV5645 is a 1/4-Inch CMOS active pixel digital image sensor with 4 + an active array size of 2592H x 1944V. It is programmable through a serial I2C 5 + interface. 6 + 7 + Required Properties: 8 + - compatible: Value should be "ovti,ov5645". 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 PWDNB which is physically active low. 14 + - reset-gpios: Chip reset GPIO. Polarity is GPIO_ACTIVE_LOW. This corresponds to 15 + the hardware pin RESETB. 16 + - vdddo-supply: Chip digital IO regulator. 17 + - vdda-supply: Chip analog regulator. 18 + - vddd-supply: Chip digital core regulator. 19 + 20 + The device node must contain one 'port' child node for its digital output 21 + video port, in accordance with the video interface bindings defined in 22 + Documentation/devicetree/bindings/media/video-interfaces.txt. 23 + 24 + Example: 25 + 26 + &i2c1 { 27 + ... 28 + 29 + ov5645: ov5645@78 { 30 + compatible = "ovti,ov5645"; 31 + reg = <0x78>; 32 + 33 + enable-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 34 + reset-gpios = <&gpio5 20 GPIO_ACTIVE_LOW>; 35 + pinctrl-names = "default"; 36 + pinctrl-0 = <&camera_rear_default>; 37 + 38 + clocks = <&clks 200>; 39 + clock-names = "xclk"; 40 + clock-frequency = <23880000>; 41 + 42 + vdddo-supply = <&camera_dovdd_1v8>; 43 + vdda-supply = <&camera_avdd_2v8>; 44 + vddd-supply = <&camera_dvdd_1v2>; 45 + 46 + port { 47 + ov5645_ep: endpoint { 48 + clock-lanes = <1>; 49 + data-lanes = <0 2>; 50 + remote-endpoint = <&csi0_ep>; 51 + }; 52 + }; 53 + }; 54 + };