Add bindings for OV5640 DVP parallel interface support.

Signed-off-by: Hugues Fruchet <hugues.fruc...@st.com>
---
 .../devicetree/bindings/media/i2c/ov5640.txt       | 27 ++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/ov5640.txt 
b/Documentation/devicetree/bindings/media/i2c/ov5640.txt
index 540b36c..04e2a91 100644
--- a/Documentation/devicetree/bindings/media/i2c/ov5640.txt
+++ b/Documentation/devicetree/bindings/media/i2c/ov5640.txt
@@ -1,4 +1,4 @@
-* Omnivision OV5640 MIPI CSI-2 sensor
+* Omnivision OV5640 MIPI CSI-2 / parallel sensor
 
 Required Properties:
 - compatible: should be "ovti,ov5640"
@@ -18,7 +18,11 @@ The device node must contain one 'port' child node for its 
digital output
 video port, in accordance with the video interface bindings defined in
 Documentation/devicetree/bindings/media/video-interfaces.txt.
 
-Example:
+Parallel or CSI mode is selected according to optional endpoint properties.
+Without properties (or bus properties), parallel mode is selected.
+Specifying any CSI properties such as lanes will enable CSI mode.
+
+Examples:
 
 &i2c1 {
        ov5640: camera@3c {
@@ -35,6 +39,7 @@ Example:
                reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
 
                port {
+                       /* MIPI CSI-2 bus endpoint */
                        ov5640_to_mipi_csi2: endpoint {
                                remote-endpoint = <&mipi_csi2_from_ov5640>;
                                clock-lanes = <0>;
@@ -43,3 +48,21 @@ Example:
                };
        };
 };
+
+&i2c1 {
+       ov5640: camera@3c {
+               compatible = "ovti,ov5640";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_ov5640>;
+               reg = <0x3c>;
+               clocks = <&clk_ext_camera>;
+               clock-names = "xclk";
+
+               port {
+                       /* Parallel bus endpoint */
+                       ov5640_to_parallel: endpoint {
+                               remote-endpoint = <&parallel_from_ov5640>;
+                       };
+               };
+       };
+};
-- 
1.9.1

Reply via email to