v4l: Add RGB 8:8:8 media bus format on 24 and 32 bit busses

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: Add YUYV10 and YUYV12 on 24 bits bus formats

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
V4L2: support asynchronous subdevice registration

Currently bridge device drivers register devices for all subdevices
synchronously, tupically, during their probing. E.g. if an I2C CMOS sensor
is attached to a video bridge device, the bridge driver will create an I2C
device and wait for the respective I2C driver to probe. This makes linking
of devices straight forward, but this approach cannot be used with
intrinsically asynchronous and unordered device registration systems like
the Flattened Device Tree. To support such systems this patch adds an
asynchronous subdevice registration framework to V4L2. To use it respective
(e.g. I2C) subdevice drivers must register themselves with the framework.
A bridge driver on the other hand must register notification callbacks,
that will be called upon various related events.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
v4l: async: Add DT-based subdev matching support

Adding a new V4L2_ASYNC_BUS_DT bus type that matches devices based on
their of_node.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: async: Make it safe to unregister unregistered notifier

Calling v4l2_async_notifier_unregister() on a notifier that hasn't been
registered leads to a crash. To simplify drivers, make it safe to
unregister a notifier that has not been registered.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: async: Don't match when the notifier waiting list is empty

v4l2_async_belongs() loops over the notifier waiting list to check
whether a given subdev matches the notifier. When the list is empty the
function erroneously returned the waiting list head. Return NULL
instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: of: Return an int in v4l2_of_parse_endpoint()

When CONFIG_OF is not defined the v4l2_of_parse_endpoint() function is
defined as a stub that returns -ENOSYS. Make the real function return an
integer as well to be able to differentiate between the two cases.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: of: Remove struct v4l2_of_endpoint remote field

The field isn't set when parsing the endpoint. Remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: of: Drop endpoint node reference in v4l2_of_get_remote_port()

The v4l2_of_get_remote_port() function acquires a reference to an
endpoint node through a phandle and then returns the node's parent,
without dropping the reference to the endpoint node. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: of: Add v4l2_of_parse_link() function

The function fills a link data structure with the device node and port
number at both the local and remote ends of a link defined by one of its
endpoint nodes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: of: Use of_get_child_by_name()

Replace a manual loop through child nodes with a call to
of_get_child_by_name().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
v4l: of: Drop acquired reference to node when getting next endpoint

The of_get_child_by_name() function takes a reference to the node it
returns. Make sure to drop it when looking for the ports node in
v4l2_of_get_next_endpoint().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
xilinx video
xilinx video formats wip
xilinx video tpg
xilinx video pipeline
xilinx video remapper
xilinx video tpg: Reset the TPG at streamoff time

Stopping the TPG without resetting it confuses the VDMA and results in
VDMA errors the next time the stream is started. Reset the TPG when
stopping the stream for now.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
xilinx video tpg: Change the test pattern

Change the test pattern to color bars, and slow down the speed
of a moving box. Disable color masks.

Signed-off-by: hyun woo kwon <hyunk@xilinx.com>
v4l: xilinx: Preliminary support for capture and output video nodes

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>