[media] v4l: mt9v032: Add OF support
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 1 Jan 2014 17:40:35 +0000 (14:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 00:31:31 +0000 (21:31 -0300)
Parse DT properties into a platform data structure when a DT node is
available.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Documentation/devicetree/bindings/media/i2c/mt9v032.txt [new file with mode: 0644]
MAINTAINERS
drivers/media/i2c/mt9v032.c

diff --git a/Documentation/devicetree/bindings/media/i2c/mt9v032.txt b/Documentation/devicetree/bindings/media/i2c/mt9v032.txt
new file mode 100644 (file)
index 0000000..2025653
--- /dev/null
@@ -0,0 +1,39 @@
+* Aptina 1/3-Inch WVGA CMOS Digital Image Sensor
+
+The Aptina MT9V032 is a 1/3-inch CMOS active pixel digital image sensor with
+an active array size of 752H x 480V. It is programmable through a simple
+two-wire serial interface.
+
+Required Properties:
+
+- compatible: value should be either one among the following
+       (a) "aptina,mt9v022" for MT9V022 color sensor
+       (b) "aptina,mt9v022m" for MT9V022 monochrome sensor
+       (c) "aptina,mt9v024" for MT9V024 color sensor
+       (d) "aptina,mt9v024m" for MT9V024 monochrome sensor
+       (e) "aptina,mt9v032" for MT9V032 color sensor
+       (f) "aptina,mt9v032m" for MT9V032 monochrome sensor
+       (g) "aptina,mt9v034" for MT9V034 color sensor
+       (h) "aptina,mt9v034m" for MT9V034 monochrome sensor
+
+Optional Properties:
+
+- link-frequencies: List of allowed link frequencies in Hz. Each frequency is
+       expressed as a 64-bit big-endian integer.
+
+For further reading on port node refer to
+Documentation/devicetree/bindings/media/video-interfaces.txt.
+
+Example:
+
+       mt9v032@5c {
+               compatible = "aptina,mt9v032";
+               reg = <0x5c>;
+
+               port {
+                       mt9v032_out: endpoint {
+                               link-frequencies = /bits/ 64
+                                       <13000000 26600000 27000000>;
+                       };
+               };
+       };
index b596508..97c174b 100644 (file)
@@ -6535,6 +6535,7 @@ M:        Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 L:     linux-media@vger.kernel.org
 T:     git git://linuxtv.org/media_tree.git
 S:     Maintained
+F:     Documentation/devicetree/bindings/media/i2c/mt9v032.txt
 F:     drivers/media/i2c/mt9v032.c
 F:     include/media/mt9v032.h
 
Simple merge