]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: dt-bindings: Add OF properties to ov7670
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Wed, 24 Jan 2018 09:30:49 +0000 (04:30 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 08:04:30 +0000 (03:04 -0500)
Describe newly introduced OF properties for ov7670 image sensor.
The driver supports two standard properties to configure synchronism
signals polarities and one custom property already supported as
platform data options to suppress pixel clock during horizontal
blankings.

Re-phrase child nodes description while at there.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.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@s-opensource.com>
Documentation/devicetree/bindings/media/i2c/ov7670.txt

index 826b6563b009ce7508d2598323f0648a0a8e3d66..2c972a56f3cb5ea354f22c74bc8a41ee5792b6a0 100644 (file)
@@ -9,14 +9,21 @@ Required Properties:
 - clocks: reference to the xclk input clock.
 - clock-names: should be "xclk".
 
+Required Endpoint Properties:
+- hsync-active: active state of the HSYNC signal, 0/1 for LOW/HIGH respectively.
+- vsync-active: active state of the VSYNC signal, 0/1 for LOW/HIGH respectively.
+
 Optional Properties:
 - reset-gpios: reference to the GPIO connected to the resetb pin, if any.
   Active is low.
 - powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any.
   Active is high.
+- ov7670,pclk-hb-disable: a boolean property to suppress pixel clock output
+  signal during horizontal blankings.
 
-The device node must contain one 'port' child node for its digital output
-video port, in accordance with the video interface bindings defined in
+The device node must contain one 'port' child node with one 'endpoint' child
+sub-node for its digital output video port, in accordance with the video
+interface bindings defined in:
 Documentation/devicetree/bindings/media/video-interfaces.txt.
 
 Example:
@@ -34,8 +41,13 @@ Example:
                        assigned-clocks = <&pck0>;
                        assigned-clock-rates = <25000000>;
 
+                       ov7670,pclk-hb-disable;
+
                        port {
                                ov7670_0: endpoint {
+                                       hsync-active = <0>;
+                                       vsync-active = <0>;
+
                                        remote-endpoint = <&isi_0>;
                                };
                        };