Skip to content

Commit 3d8a97e

Browse files
Sowjanya Komatinenithierryreding
authored andcommitted
media: tegra-video: Add Tegra210 Video input driver
Tegra210 contains a powerful Video Input (VI) hardware controller which can support up to 6 MIPI CSI camera sensors. Each Tegra CSI port can be one-to-one mapped to VI channel and can capture from an external camera sensor connected to CSI or from built-in test pattern generator. Tegra210 supports built-in test pattern generator from CSI to VI. This patch adds a V4L2 capture driver with a media interface for Tegra210 built-in CSI to VI test pattern generator. This patch includes TPG support only and all the video pipeline configuration happens through the video device node. Acked-by: Thierry Reding <[email protected]> Signed-off-by: Sowjanya Komatineni <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 612c341 commit 3d8a97e

File tree

12 files changed

+3213
-0
lines changed

12 files changed

+3213
-0
lines changed

drivers/staging/media/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ source "drivers/staging/media/sunxi/Kconfig"
3434

3535
source "drivers/staging/media/tegra-vde/Kconfig"
3636

37+
source "drivers/staging/media/tegra-video/Kconfig"
38+
3739
source "drivers/staging/media/ipu3/Kconfig"
3840

3941
source "drivers/staging/media/soc_camera/Kconfig"

drivers/staging/media/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ obj-$(CONFIG_VIDEO_IMX_MEDIA) += imx/
44
obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/
55
obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/
66
obj-$(CONFIG_VIDEO_SUNXI) += sunxi/
7+
obj-$(CONFIG_VIDEO_TEGRA) += tegra-video/
78
obj-$(CONFIG_TEGRA_VDE) += tegra-vde/
89
obj-$(CONFIG_VIDEO_HANTRO) += hantro/
910
obj-$(CONFIG_VIDEO_IPU3_IMGU) += ipu3/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
config VIDEO_TEGRA
3+
tristate "NVIDIA Tegra VI driver"
4+
depends on TEGRA_HOST1X || COMPILE_TEST
5+
select VIDEO_V4L2
6+
select MEDIA_CONTROLLER
7+
select VIDEOBUF2_DMA_CONTIG
8+
help
9+
Choose this option if you have an NVIDIA Tegra SoC.
10+
11+
To compile this driver as a module, choose M here: the module
12+
will be called tegra-video.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
tegra-video-objs := \
3+
video.o \
4+
vi.o \
5+
csi.o
6+
7+
tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
8+
obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
TODO list
2+
* Currently driver supports Tegra build-in TPG only with direct media links
3+
from CSI to VI. Add kernel config CONFIG_VIDEO_TEGRA_TPG and update the
4+
driver to do TPG Vs Sensor media links based on CONFIG_VIDEO_TEGRA_TPG.
5+
* Add real camera sensor capture support.
6+
* Add Tegra CSI MIPI pads calibration.
7+
* Add MIPI clock Settle time computation based on the data rate.
8+
* Add support for Ganged mode.
9+
* Add RAW10 packed video format support to Tegra210 video formats.
10+
* Add support for suspend and resume.
11+
* Make sure v4l2-compliance tests pass with all of the above implementations.

0 commit comments

Comments
 (0)