drivers: video: ov2640: add driver for ov2640 image sensor

This adds the driver for Omnivision OV2640 image sensor.

The driver provides support for 10 different resolutions in range from
160x120 to 1600x1200 in both JPEG and RGB565 pixel formats. There are
also mutliple configuration options, e.g. hflip, vflip, saturation and
brightness control.

Signed-off-by: Robert Szczepanski <rszczepanski@antmicro.com>
This commit is contained in:
Robert Szczepanski 2021-06-21 11:48:29 +02:00 committed by Christopher Friedt
parent fceb5a1c44
commit 55e3c732d0
5 changed files with 1095 additions and 0 deletions

View file

@ -8,3 +8,4 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 ov2640.c)

View file

@ -39,4 +39,6 @@ source "drivers/video/Kconfig.mt9m114"
source "drivers/video/Kconfig.ov7725"
source "drivers/video/Kconfig.ov2640"
endif # VIDEO

View file

@ -0,0 +1,10 @@
# OV2640
# Copyright (c) 2021 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
config VIDEO_OV2640
bool "OV2640 CMOS digital image sensor"
depends on I2C
help
Enable driver for OV2640 CMOS digital image sensor device.

1066
drivers/video/ov2640.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,16 @@
# Copyright (c) 2021 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
description: OV2640 CMOS video sensor
compatible: "ovti,ov2640"
properties:
reset-gpios:
type: phandle-array
required: false
description: |
The RESETn pin is asserted to disable the sensor causing a hard
reset. The sensor receives this as an active-low signal.
include: i2c-device.yaml