video: gc2145: add GC2145 sensor

support and basic controls.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
This commit is contained in:
Felipe Neves 2024-08-26 20:33:30 -03:00 committed by Anas Nashif
parent ae6c20d324
commit 35c0cc7bf1
5 changed files with 1178 additions and 0 deletions

View file

@ -10,6 +10,7 @@ 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)
zephyr_library_sources_ifdef(CONFIG_VIDEO_GC2145 gc2145.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMI video_stm32_dcmi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV5640 ov5640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7670 ov7670.c)

View file

@ -55,4 +55,6 @@ source "drivers/video/Kconfig.ov5640"
source "drivers/video/Kconfig.ov7670"
source "drivers/video/Kconfig.gc2145"
endif # VIDEO

View file

@ -0,0 +1,10 @@
# Copyright (c) 2024 Felipe Neves
# SPDX-License-Identifier: Apache-2.0
config VIDEO_GC2145
bool "GC2145 CMOS digital image sensor"
select I2C
depends on DT_HAS_GC_GC2145_ENABLED
default y
help
Enable driver for GC2145 CMOS digital image sensor device.

1150
drivers/video/gc2145.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,15 @@
# Copyright (c) 2024 Felipe Neves
# SPDX-License-Identifier: Apache-2.0
description: Galaxy Core GC2145 CMOS video sensor
compatible: "gc,gc2145"
include: i2c-device.yaml
properties:
reset-gpios:
type: phandle-array
description: |
The RESETn pin is asserted to disable the sensor causing a hard
reset. The sensor receives this as an active-low signal.