Skip to content
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

drivers: video: add imx219 sensor (RPi Cam v2) #88011

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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 @@ -18,3 +18,4 @@ zephyr_library_sources_ifdef(CONFIG_VIDEO_ESP32 video_esp32_dvp.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_SDMA video_mcux_smartdma.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_EMUL_IMAGER video_emul_imager.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_EMUL_RX video_emul_rx.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_IMX219 imx219.c)
10 changes: 10 additions & 0 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ config VIDEO_BUFFER_SMH_ATTRIBUTE
1: SMH_REG_ATTR_NON_CACHEABLE
2: SMH_REG_ATTR_EXTERNAL

config VIDEO_I2C_RETRY_NUM
int "Number of attempts for retrying I2C communication if it failed"
default 3
help
The default is there to reduce the chance of failure (i.e. occasional EMI) without
flooding the I2C bus upon error with too many retries. There is a 1ms wait time between
every retry.

source "drivers/video/Kconfig.esp32_dvp"

source "drivers/video/Kconfig.mcux_csi"
Expand Down Expand Up @@ -78,4 +86,6 @@ source "drivers/video/Kconfig.emul_imager"

source "drivers/video/Kconfig.emul_rx"

source "drivers/video/Kconfig.imx219"

endif # VIDEO
1 change: 1 addition & 0 deletions drivers/video/Kconfig.emul_imager
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ config VIDEO_EMUL_IMAGER
bool "Software implementation of an imager"
depends on DT_HAS_ZEPHYR_VIDEO_EMUL_IMAGER_ENABLED
default y
depends on EMUL
help
Enable driver for the emulated Imager. A line buffer contains
the color pattern within the imager data struct, at the first
Expand Down
10 changes: 10 additions & 0 deletions drivers/video/Kconfig.imx219
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024-2025 tinyVision.ai Inc.
# SPDX-License-Identifier: Apache-2.0

config VIDEO_IMX219
bool "IMX219 8 MP CMOS image sensor"
select I2C
depends on DT_HAS_SONY_IMX219_ENABLED
default y
help
Enable the driver for the Sony IMX219 8 Mega-Pixel CMOS image sensor
Loading