Lines Matching +full:csi +full:- +full:in

1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Driver for Renesas R-Car VIN
6 * Copyright (C) 2011-2013 Renesas Solutions Corp.
10 * Based on the soc-camera rcar_vin driver
18 #include <media/v4l2-async.h>
19 #include <media/v4l2-ctrls.h>
20 #include <media/v4l2-dev.h>
21 #include <media/v4l2-device.h>
22 #include <media/v4l2-fwnode.h>
23 #include <media/videobuf2-v4l2.h>
31 /* Max number on VIN instances that can be in a system */
65 * enum rvin_dma_state - DMA states
66 * @STOPPED: No operation in progress
68 * @RUNNING: Operation in progress have buffers
98 * struct rvin_video_format - Data format stored in memory
108 * struct rvin_parallel_entity - Parallel video input endpoint descriptor
129 * struct rvin_group_route - describes a route from a channel of a
130 * CSI-2 receiver to a VIN
133 * @csi: CSI-2 receiver ID.
134 * @chsel: CHSEL register values that connects VIN group to CSI-2.
137 * Each R-Car CSI-2 receiver has four output channels facing the VIN
138 * devices, each channel can carry one CSI-2 Virtual Channel (VC).
139 * There is no correlation between channel number and CSI-2 VC. It's
140 * up to the CSI-2 receiver driver to configure which VC is output
145 enum rvin_csi_id csi; member
150 * struct rvin_info - Information about the particular VIN implementation
153 * @use_isp: the VIN is connected to the ISP and not to the CSI-2
157 * @routes: list of possible routes from the CSI-2 recivers to
174 * struct rvin_dev - Renesas VIN device structure
186 * @group: Gen3 CSI group
201 * @is_csi: flag to mark the VIN as using a CSI-2 subdevice
202 * @chsel: Cached value of the current CSI-2 channel selection
212 * @alpha: Alpha component to fill in for supported pixel formats
259 #define vin_to_source(vin) ((vin)->parallel.subdev)
262 #define vin_dbg(d, fmt, arg...) dev_dbg(d->dev, fmt, ##arg)
263 #define vin_info(d, fmt, arg...) dev_info(d->dev, fmt, ##arg)
264 #define vin_warn(d, fmt, arg...) dev_warn(d->dev, fmt, ##arg)
265 #define vin_err(d, fmt, arg...) dev_err(d->dev, fmt, ##arg)
268 * struct rvin_group - VIN CSI2 group information
273 * @lock: protects the count, notifier, vin and csi members
274 * @count: number of enabled VIN instances found in DT
275 * @notifier: group notifier for CSI-2 async connections