Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: imx7.rst: Provide an example for imx6ull-evk capture

imx6ull-evk has a parallel OV5640 sensor.

Provide an example for imx6ull-evk capture to improve the document.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Fabio Estevam and committed by
Mauro Carvalho Chehab
1e6494da c6c709ee

+60
+60
Documentation/admin-guide/media/imx7.rst
··· 155 155 [fmt:SBGGR10_1X10/800x600@1/30 field:none colorspace:srgb] 156 156 -> "imx7-mipi-csis.0":0 [ENABLED] 157 157 158 + i.MX6ULL-EVK with OV5640 159 + ------------------------ 160 + 161 + On this platform a parallel OV5640 sensor is connected to the CSI port. 162 + The following example configures a video capture pipeline with an output 163 + of 640x480 and UYVY8_2X8 format: 164 + 165 + .. code-block:: none 166 + 167 + # Setup links 168 + media-ctl -l "'ov5640 1-003c':0 -> 'csi':0[1]" 169 + media-ctl -l "'csi':1 -> 'csi capture':0[1]" 170 + 171 + # Configure pads for pipeline 172 + media-ctl -v -V "'ov5640 1-003c':0 [fmt:UYVY8_2X8/640x480 field:none]" 173 + 174 + After this streaming can start: 175 + 176 + .. code-block:: none 177 + 178 + gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=UYVY,width=640,height=480 ! v4l2convert ! fbdevsink 179 + 180 + .. code-block:: none 181 + 182 + # media-ctl -p 183 + Media controller API version 5.14.0 184 + 185 + Media device information 186 + ------------------------ 187 + driver imx7-csi 188 + model imx-media 189 + serial 190 + bus info 191 + hw revision 0x0 192 + driver version 5.14.0 193 + 194 + Device topology 195 + - entity 1: csi (2 pads, 2 links) 196 + type V4L2 subdev subtype Unknown flags 0 197 + device node name /dev/v4l-subdev0 198 + pad0: Sink 199 + [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range] 200 + <- "ov5640 1-003c":0 [ENABLED,IMMUTABLE] 201 + pad1: Source 202 + [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range] 203 + -> "csi capture":0 [ENABLED,IMMUTABLE] 204 + 205 + - entity 4: csi capture (1 pad, 1 link) 206 + type Node subtype V4L flags 0 207 + device node name /dev/video1 208 + pad0: Sink 209 + <- "csi":1 [ENABLED,IMMUTABLE] 210 + 211 + - entity 10: ov5640 1-003c (1 pad, 1 link) 212 + type V4L2 subdev subtype Sensor flags 0 213 + device node name /dev/v4l-subdev1 214 + pad0: Source 215 + [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range] 216 + -> "csi":0 [ENABLED,IMMUTABLE] 217 + 158 218 References 159 219 ---------- 160 220