Commit 3d8a97ea authored by Sowjanya Komatineni's avatar Sowjanya Komatineni Committed by Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarSowjanya Komatineni <skomatineni@nvidia.com>
Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
Acked-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 612c341c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ source "drivers/staging/media/sunxi/Kconfig"

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

source "drivers/staging/media/tegra-video/Kconfig"

source "drivers/staging/media/ipu3/Kconfig"

source "drivers/staging/media/soc_camera/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ obj-$(CONFIG_VIDEO_IMX_MEDIA) += imx/
obj-$(CONFIG_VIDEO_MESON_VDEC)	+= meson/vdec/
obj-$(CONFIG_VIDEO_OMAP4)	+= omap4iss/
obj-$(CONFIG_VIDEO_SUNXI)	+= sunxi/
obj-$(CONFIG_VIDEO_TEGRA)	+= tegra-video/
obj-$(CONFIG_TEGRA_VDE)		+= tegra-vde/
obj-$(CONFIG_VIDEO_HANTRO)	+= hantro/
obj-$(CONFIG_VIDEO_IPU3_IMGU)	+= ipu3/
+12 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
config VIDEO_TEGRA
	tristate "NVIDIA Tegra VI driver"
	depends on TEGRA_HOST1X || COMPILE_TEST
	select VIDEO_V4L2
	select MEDIA_CONTROLLER
	select VIDEOBUF2_DMA_CONTIG
	help
	  Choose this option if you have an NVIDIA Tegra SoC.

	  To compile this driver as a module, choose M here: the module
	  will be called tegra-video.
+8 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
tegra-video-objs := \
		video.o \
		vi.o \
		csi.o

tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o
obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
+11 −0
Original line number Diff line number Diff line
TODO list
* Currently driver supports Tegra build-in TPG only with direct media links
  from CSI to VI. Add kernel config CONFIG_VIDEO_TEGRA_TPG and update the
  driver to do TPG Vs Sensor media links based on CONFIG_VIDEO_TEGRA_TPG.
* Add real camera sensor capture support.
* Add Tegra CSI MIPI pads calibration.
* Add MIPI clock Settle time computation based on the data rate.
* Add support for Ganged mode.
* Add RAW10 packed video format support to Tegra210 video formats.
* Add support for suspend and resume.
* Make sure v4l2-compliance tests pass with all of the above implementations.
Loading