-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: video: add emulated Imager driver and RX driver
Add a new implementation of a test pattern generator, with the same architecture as real drivers: split receiver core and I2C-controlled sub-device, with changes of video format in "zephyr,emul-imager" leads to different data produced by "zephyr,emul-rx". Signed-off-by: Josuah Demangeon <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,173 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2024 tinyVision.ai Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config VIDEO_EMUL_IMAGER | ||
bool "Software implementation of an imager" | ||
depends on DT_HAS_ZEPHYR_VIDEO_EMUL_IMAGER_ENABLED | ||
default y | ||
help | ||
Enable driver for the emulated Imager. | ||
|
||
config VIDEO_EMUL_IMAGER_FRAMEBUFFER_SIZE | ||
int "Internal framebuffer size used for link emulation purpose" | ||
default 4096 | ||
help | ||
Configure the size of the internal framebuffer the emulated Imager | ||
driver uses to simulate MIPI transfers. This is the first field of | ||
dev->data, and the emulated video MIPI driver will `memcpy()` it | ||
into the video buffer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (c) 2024 tinyVision.ai Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config VIDEO_EMUL_RX | ||
bool "Software implementation of video frame RX core" | ||
depends on DT_HAS_ZEPHYR_VIDEO_EMUL_RX_ENABLED | ||
depends on VIDEO_EMUL_IMAGER | ||
default y | ||
help | ||
Enable driver for the MIPI RX emulated DMA engine. |
Oops, something went wrong.