Lines Matching +full:pixel +full:- +full:array

1 .. SPDX-License-Identifier: GPL-2.0
3 .. _transmitter-receiver:
5 Pixel data transmitter and receiver drivers
8 V4L2 supports various devices that transmit and receive pixel data. Examples of
10 CSI-2 receiver in an SoC.
13 ---------
17 MIPI CSI-2
20 CSI-2 is a data bus intended for transferring images from cameras to
32 .. _`BT.656`: https://en.wikipedia.org/wiki/ITU-R_BT.656
35 -------------------
41 Media bus pixel code
44 See :ref:`v4l2-mbus-pixelcode`.
49 The :ref:`V4L2_CID_LINK_FREQ <v4l2-cid-link-freq>` control is used to tell the
55 The struct v4l2_subdev_pad_ops->enable_streams() and struct
56 v4l2_subdev_pad_ops->disable_streams() callbacks are used by the receiver driver
62 CSI-2 transmitter drivers
63 -------------------------
65 Pixel rate
68 The pixel rate on the bus is calculated as follows::
74 .. list-table:: variables in pixel rate calculation
75 :header-rows: 1
77 * - variable or constant
78 - description
79 * - link_freq
80 - The value of the ``V4L2_CID_LINK_FREQ`` integer64 menu item.
81 * - nr_of_lanes
82 - Number of data lanes used on the CSI-2 link.
83 * - 2
84 - Data is transferred on both rising and falling edge of the signal.
85 * - bits_per_sample
86 - Number of bits per sample.
87 * - k
88 - 16 for D-PHY and 7 for C-PHY.
90 Information on whether D-PHY or C-PHY is used, and the value of ``nr_of_lanes``, can be obtained fr…
94 The pixel rate calculated this way is **not** the same thing as the
95 pixel rate on the camera sensor's pixel array which is indicated by the
96 :ref:`V4L2_CID_PIXEL_RATE <v4l2-cid-pixel-rate>` control.
98 LP-11 and LP-111 states
101 As part of transitioning to high speed mode, a CSI-2 transmitter typically
102 briefly sets the bus to LP-11 or LP-111 state, depending on the PHY. This period
108 involvement in observing LP-11 or LP-111 state. 100 µs is a brief period to hit
112 One way to address this is to configure the transmitter side explicitly to LP-11
113 or LP-111 state, which requires support from the transmitter hardware. This is
115 stopped while the state after power-on is LP-00 or LP-000.
123 In the context of CSI-2, the ``.pre_streamon()`` callback is used to transition
124 the transmitter to the LP-11 or LP-111 state. This also requires powering on the
127 Receiver drivers that do not need explicit LP-11 or LP-111 state setup are