aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorLad, Prabhakar <prabhakar.csengg@gmail.com>2013-05-26 09:08:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-17 10:31:37 -0400
commit8d4da37c3006f30a7cf75cd7bb33b254afc30279 (patch)
treed874b274ac0644f41a4fae77d4273108bf321d61 /Documentation
parent3080f8c77f277eb87397d639581ebea859f9ea41 (diff)
[media] media: i2c: mt9p031: add OF support
Add OF support for the mt9p031 sensor driver. Alongside this patch sorts the header inclusion alphabetically. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/media/i2c/mt9p031.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/i2c/mt9p031.txt b/Documentation/devicetree/bindings/media/i2c/mt9p031.txt
new file mode 100644
index 000000000000..cb60443ff78f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/mt9p031.txt
@@ -0,0 +1,40 @@
1* Aptina 1/2.5-Inch 5Mp CMOS Digital Image Sensor
2
3The Aptina MT9P031 is a 1/2.5-inch CMOS active pixel digital image sensor with
4an active array size of 2592H x 1944V. It is programmable through a simple
5two-wire serial interface.
6
7Required Properties:
8- compatible: value should be either one among the following
9 (a) "aptina,mt9p031" for mt9p031 sensor
10 (b) "aptina,mt9p031m" for mt9p031m sensor
11
12- input-clock-frequency: Input clock frequency.
13
14- pixel-clock-frequency: Pixel clock frequency.
15
16Optional Properties:
17- reset-gpios: Chip reset GPIO
18
19For further reading on port node refer to
20Documentation/devicetree/bindings/media/video-interfaces.txt.
21
22Example:
23
24 i2c0@1c22000 {
25 ...
26 ...
27 mt9p031@5d {
28 compatible = "aptina,mt9p031";
29 reg = <0x5d>;
30 reset-gpios = <&gpio3 30 0>;
31
32 port {
33 mt9p031_1: endpoint {
34 input-clock-frequency = <6000000>;
35 pixel-clock-frequency = <96000000>;
36 };
37 };
38 };
39 ...
40 };