Skip to content

Commit c4c0283

Browse files
bparrotmchehab
authored andcommitted
[media] media: i2c: add support for omnivision's ov2659 sensor
this patch adds support for omnivision's ov2659 sensor, the driver supports following features: 1: Asynchronous probing 2: DT support 3: Media controller support Signed-off-by: Benoit Parrot <[email protected]> Signed-off-by: Lad, Prabhakar <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent d16cae2 commit c4c0283

File tree

6 files changed

+1603
-0
lines changed

6 files changed

+1603
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
* OV2659 1/5-Inch 2Mp SOC Camera
2+
3+
The Omnivision OV2659 is a 1/5-inch SOC camera, with an active array size of
4+
1632H x 1212V. It is programmable through a SCCB. The OV2659 sensor supports
5+
multiple resolutions output, such as UXGA, SVGA, 720p. It also can support
6+
YUV422, RGB565/555 or raw RGB output formats.
7+
8+
Required Properties:
9+
- compatible: Must be "ovti,ov2659"
10+
- reg: I2C slave address
11+
- clocks: reference to the xvclk input clock.
12+
- clock-names: should be "xvclk".
13+
- link-frequencies: target pixel clock frequency.
14+
15+
For further reading on port node refer to
16+
Documentation/devicetree/bindings/media/video-interfaces.txt.
17+
18+
Example:
19+
20+
i2c0@1c22000 {
21+
...
22+
...
23+
ov2659@30 {
24+
compatible = "ovti,ov2659";
25+
reg = <0x30>;
26+
27+
clocks = <&clk_ov2659 0>;
28+
clock-names = "xvclk";
29+
30+
port {
31+
ov2659_0: endpoint {
32+
remote-endpoint = <&vpfe_ep>;
33+
link-frequencies = /bits/ 64 <70000000>;
34+
};
35+
};
36+
};
37+
...
38+
};

MAINTAINERS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8911,6 +8911,16 @@ T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git
89118911
S: Maintained
89128912
F: drivers/media/platform/am437x/
89138913

8914+
OV2659 OMNIVISION SENSOR DRIVER
8915+
M: Lad, Prabhakar <[email protected]>
8916+
8917+
W: http://linuxtv.org/
8918+
Q: http://patchwork.linuxtv.org/project/linux-media/list/
8919+
T: git git://linuxtv.org/mhadli/v4l-dvb-davinci_devices.git
8920+
S: Maintained
8921+
F: drivers/media/i2c/ov2659.c
8922+
F: include/media/ov2659.h
8923+
89148924
SIS 190 ETHERNET DRIVER
89158925
M: Francois Romieu <[email protected]>
89168926

drivers/media/i2c/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,17 @@ config VIDEO_APTINA_PLL
466466
config VIDEO_SMIAPP_PLL
467467
tristate
468468

469+
config VIDEO_OV2659
470+
tristate "OmniVision OV2659 sensor support"
471+
depends on VIDEO_V4L2 && I2C
472+
depends on MEDIA_CAMERA_SUPPORT
473+
---help---
474+
This is a Video4Linux2 sensor-level driver for the OmniVision
475+
OV2659 camera.
476+
477+
To compile this driver as a module, choose M here: the
478+
module will be called ov2659.
479+
469480
config VIDEO_OV7640
470481
tristate "OmniVision OV7640 sensor support"
471482
depends on I2C && VIDEO_V4L2

drivers/media/i2c/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,4 @@ obj-$(CONFIG_VIDEO_SMIAPP_PLL) += smiapp-pll.o
7777
obj-$(CONFIG_VIDEO_AK881X) += ak881x.o
7878
obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o
7979
obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o
80+
obj-$(CONFIG_VIDEO_OV2659) += ov2659.o

0 commit comments

Comments
 (0)