Skip to content

Commit

Permalink
media: ov9650: add device tree binding
Browse files Browse the repository at this point in the history
Now the ov9650 driver supports device tree probing.  So this adds a
device tree binding documentation.

Cc: Sylwester Nawrocki <[email protected]>
Cc: Jacopo Mondi <[email protected]>
Cc: H. Nikolaus Schaller <[email protected]>
Cc: Hugues Fruchet <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mita authored and mchehab committed Feb 23, 2018
1 parent be5f18c commit 7b05db6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/ov9650.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
* Omnivision OV9650/OV9652 CMOS sensor

Required Properties:
- compatible: shall be one of
"ovti,ov9650"
"ovti,ov9652"
- clocks: reference to the xvclk input clock.

Optional Properties:
- reset-gpios: reference to the GPIO connected to the resetb pin, if any.
Active is high.
- powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any.
Active is high.

The device node shall contain one 'port' child node with one child 'endpoint'
subnode for its digital output video port, in accordance with the video
interface bindings defined in Documentation/devicetree/bindings/media/
video-interfaces.txt.

Example:

&i2c0 {
ov9650: camera@30 {
compatible = "ovti,ov9650";
reg = <0x30>;
reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_HIGH>;
powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_HIGH>;
clocks = <&xclk>;

port {
ov9650_0: endpoint {
remote-endpoint = <&vcap1_in0>;
};
};
};
};
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -10224,6 +10224,7 @@ L: [email protected]
T: git git://linuxtv.org/media_tree.git
S: Maintained
F: drivers/media/i2c/ov9650.c
F: Documentation/devicetree/bindings/media/i2c/ov9650.txt

ONENAND FLASH DRIVER
M: Kyungmin Park <[email protected]>
Expand Down

0 comments on commit 7b05db6

Please sign in to comment.