media: xilinx: vip: Add yuv444 and bayer formats

Add more video formats: yuv444 and bayer.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: vip: Remove _TIMING_ from register definition

Remove _TIMING_ from register definition.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: vipp: Add control to enable subdevice controls

Add a dummy control to enable subdevices to have controls.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: dma: Add vidioc_enum_fmt_vid_cap callback

Add vidioc_enum_fmt_vid_cap callback to enumerate the proper format
to user.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: dma: Fix alignments of xvip_dma_fops definition

Fix alignments of xvip_dma_fops definition.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: dma: Workaround for bytesperline

Workaround for bytesperline bug from mplayer.

need to be removed.
Documentation: media: xilinx: Add more description of input/output formats

Add more description of input/output formats. As some of IPs can have
different input and output formats, description is added to documentation
accordingly.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Add the passthrough mode

Add the passthrough mode, which TPG takes the external input and draws
some pattern(moving box) on top of it. TPG would have input/output pads
in the passthrough modes.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Add controls for TPG

Add controls for TPG. Controls include motion, speed, noise, stuck pixel,
and etc. These controls are exposed to users to configure.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Change *_OFFSET to *_SHIFT

Change *_OFFSET to *_SHIFT.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Remove _TIMING_ from register definition

Remove _TIMING_ from register definition.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Remove hard-coded default width/height

Remove hard-coded default width/height. Width and height are configured
at synthesis time, and correct values can be read from registers.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Fix alignments around __xtpg_get_pad_format()

Fix minor alignments around __xtpg_get_pad_format().

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Use the fixed format for xtpg_set_format()

Since pixel format is fixed, use the format for xtpg_set_format().

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Add xtpg_init_formats()

As the TPG can have different input and output formats, xtpg_init_formats()
is added, and called in xtpg_open() and xtpg_probe().

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Change include <linux/slab.h> to <linux/device.h>

Change include <linux/slab.h> to <linux/device.h>.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Fix alignments

Fix minor alignments.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: tpg: Fix minor styles

Fix minor styles; Remove empty lines, and change the structure order.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: vip: Add xvip_of_get_formats()

xvip_of_get_formats() takes a dts node, and pares the input and output formats.
This function can be used for IP drivers which can have different input and
output formats.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
media: xilinx: vip: Add default min/max height/width definitions

Add default min/max height/width definitions, min = 32, max = 7680.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>