Skip to content

drivers: video: Add support for STM32 DCMI #71462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ 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_STM32_DCMI video_stm32_dcmi.c)
2 changes: 2 additions & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ source "drivers/video/Kconfig.ov7725"

source "drivers/video/Kconfig.ov2640"

source "drivers/video/Kconfig.stm32_dcmi"

endif # VIDEO
22 changes: 22 additions & 0 deletions drivers/video/Kconfig.stm32_dcmi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# STM32 DCMI driver configuration options

# Copyright (c) 2024 Charles Dias <[email protected]>
# SPDX-License-Identifier: Apache-2.0

DT_STM32_DCMI_HAS_DMA := $(dt_nodelabel_has_prop,dcmi,dmas)

config VIDEO_STM32_DCMI
bool "STM32 Digital camera interface (DCMI) driver"
default y
depends on DT_HAS_ST_STM32_DCMI_ENABLED
select USE_STM32_HAL_DCMI
select USE_STM32_HAL_MDMA if SOC_SERIES_STM32H7X
select DMA if $(DT_STM32_DCMI_HAS_DMA)
select USE_STM32_HAL_DMA if $(DT_STM32_DCMI_HAS_DMA)
select USE_STM32_HAL_DMA_EX if $(DT_STM32_DCMI_HAS_DMA)
help
Enable driver for STM32 Digital camera interface periheral.

module = STM32_DCMI
module-str = stm32_dcmi
source "subsys/logging/Kconfig.template.log_config"
Loading
Loading