drm: xilinx: Add Xilinx video format descriptors

Add Xilinx video format descriptors which have a Xilinx format name,
a Xilinx format code, and a drm format code. This descriptor can be
used to convert between format codes/name.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: drv: Replace xilinx_drm_format() with xilinx_drm_format_by_code()

Add xilinx_drm_format_by_code() which utilizes the Xilinx format descriptor,
then replace previous xilinx_drm_format() with xilinx_drm_format_by_code().
xilinx_drm_format_by_code() converts the Xilinx format code to the drm format.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: cresample: Add input/output video format dts prop

Add input/output video format dts prop. It requires to detect
formats of IP and provide proper information to users.
xilinx_cresample_get_input/output_format() functions are added.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: plane: Add xilinx_drm_plane_check_format()

Add xilinx_drm_plane_check_format(), and replace
xilinx_drm_plane_get_format() with it. When fb is allocated, the requested
format is checked by calling this function. This function checks
if the given format is supported by available planes.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: plane: Add the 'planes' dts node

Add the 'planes' dts node under xilinx_drm. The IP instances for each plane
can be specified using this node, and this enables to have the same IPs
in 2 locations: 1 before OSD(for plane), and 1 after OSD(for crtc).

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: drv: Add xilinx_drm_format_by_name()

xilinx_drm_format_by_name() translates the xilinx format name into
the drm format code. This function can be used by subdevice drivers
with format names in DTS descriptions.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: plane: Add rgb2yuv/cresample support

Add to support the pipeline configuration with rgb2yuv and cresample
for each plane. Proper format checking between IP connections is done
in drivers.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drm: xilinx: crtc: Add CCF support for pixel clock

Replace dependency on si570 using CCF interface.

Signed-off-by: Hyun Kwon <hyunk@xilinx.com>
Acked-by: Soren Brinkmann <sorenb@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>