diff options
author | Todor Tomov <todor.tomov@linaro.org> | 2017-04-11 07:28:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-04-14 21:58:10 -0400 |
commit | 09c716af36e6741032ebbe5e0502f65abc245b17 (patch) | |
tree | 0c2944e7dd9ddfeea950b378beec377c2de0fffb | |
parent | 6c1c0afd19317a15d6f2ae4965a73be7240aba18 (diff) |
[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>
-rw-r--r-- | Documentation/devicetree/bindings/media/i2c/ov5645.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/i2c/ov5645.txt b/Documentation/devicetree/bindings/media/i2c/ov5645.txt new file mode 100644 index 000000000000..fd7aec9f8e24 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov5645.txt | |||
@@ -0,0 +1,54 @@ | |||
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 | }; | ||