All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture
@ 2021-08-26 18:38 Fabio Estevam
  2021-08-26 18:38 ` [PATCH 2/2] media: imx: TODO: Remove items that are already supported Fabio Estevam
  2021-08-27 18:07 ` [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Rui Miguel Silva
  0 siblings, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2021-08-26 18:38 UTC (permalink / raw)
  To: hverkuil-cisco
  Cc: mchehab+huawei, rmfrfs, laurent.pinchart, linux-media,
	sebastien.szymanski, Fabio Estevam

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>
---
 Documentation/admin-guide/media/imx7.rst | 60 ++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/Documentation/admin-guide/media/imx7.rst b/Documentation/admin-guide/media/imx7.rst
index 1e442c97da47..4785ae8ac978 100644
--- a/Documentation/admin-guide/media/imx7.rst
+++ b/Documentation/admin-guide/media/imx7.rst
@@ -155,6 +155,66 @@ the resolutions supported by the sensor.
 	                [fmt:SBGGR10_1X10/800x600@1/30 field:none colorspace:srgb]
 	                -> "imx7-mipi-csis.0":0 [ENABLED]
 
+i.MX6ULL-EVK with OV5640
+------------------------
+
+On this platform a parallel OV5640 sensor is connected to the CSI port.
+The following example configures a video capture pipeline with an output
+of 640x480 and UYVY8_2X8 format:
+
+.. code-block:: none
+
+   # Setup links
+   media-ctl -l "'ov5640 1-003c':0 -> 'csi':0[1]"
+   media-ctl -l "'csi':1 -> 'csi capture':0[1]"
+
+   # Configure pads for pipeline
+   media-ctl -v -V "'ov5640 1-003c':0 [fmt:UYVY8_2X8/640x480 field:none]"
+
+After this streaming can start:
+
+.. code-block:: none
+
+   gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=UYVY,width=640,height=480 ! v4l2convert ! fbdevsink
+
+.. code-block:: none
+
+	# media-ctl -p
+	Media controller API version 5.14.0
+
+	Media device information
+	------------------------
+	driver          imx7-csi
+	model           imx-media
+	serial
+	bus info
+	hw revision     0x0
+	driver version  5.14.0
+
+	Device topology
+	- entity 1: csi (2 pads, 2 links)
+	            type V4L2 subdev subtype Unknown flags 0
+	            device node name /dev/v4l-subdev0
+	        pad0: Sink
+	                [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
+	                <- "ov5640 1-003c":0 [ENABLED,IMMUTABLE]
+	        pad1: Source
+	                [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
+	                -> "csi capture":0 [ENABLED,IMMUTABLE]
+
+	- entity 4: csi capture (1 pad, 1 link)
+	            type Node subtype V4L flags 0
+	            device node name /dev/video1
+	        pad0: Sink
+	                <- "csi":1 [ENABLED,IMMUTABLE]
+
+	- entity 10: ov5640 1-003c (1 pad, 1 link)
+	             type V4L2 subdev subtype Sensor flags 0
+	             device node name /dev/v4l-subdev1
+	        pad0: Source
+	                [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
+	                -> "csi":0 [ENABLED,IMMUTABLE]
+
 References
 ----------
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] media: imx: TODO: Remove items that are already supported
  2021-08-26 18:38 [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Fabio Estevam
@ 2021-08-26 18:38 ` Fabio Estevam
  2021-08-27 18:09   ` Rui Miguel Silva
  2021-08-27 21:13   ` Laurent Pinchart
  2021-08-27 18:07 ` [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Rui Miguel Silva
  1 sibling, 2 replies; 5+ messages in thread
From: Fabio Estevam @ 2021-08-26 18:38 UTC (permalink / raw)
  To: hverkuil-cisco
  Cc: mchehab+huawei, rmfrfs, laurent.pinchart, linux-media,
	sebastien.szymanski, Fabio Estevam

Video capture has been successfully tested using an OV5640 parallel
sensor on a imx6ull-evk board at a 640x480 resolution and UYVY8_2X8
format.

Remove the two items that are no longer pending.

Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/staging/media/imx/TODO | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO
index 2384f4c6b09d..06c94f20ecf8 100644
--- a/drivers/staging/media/imx/TODO
+++ b/drivers/staging/media/imx/TODO
@@ -27,8 +27,3 @@
 - i.MX7: all of the above, since it uses the imx media core
 
 - i.MX7: use Frame Interval Monitor
-
-- i.MX7: runtime testing with parallel sensor, links setup and streaming
-
-- i.MX7: runtime testing with different formats, for the time only 10-bit bayer
-  is tested
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture
  2021-08-26 18:38 [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Fabio Estevam
  2021-08-26 18:38 ` [PATCH 2/2] media: imx: TODO: Remove items that are already supported Fabio Estevam
@ 2021-08-27 18:07 ` Rui Miguel Silva
  1 sibling, 0 replies; 5+ messages in thread
From: Rui Miguel Silva @ 2021-08-27 18:07 UTC (permalink / raw)
  To: Fabio Estevam, hverkuil-cisco
  Cc: mchehab+huawei, laurent.pinchart, linux-media, sebastien.szymanski

Oi Fabio,
On Thu Aug 26, 2021 at 7:38 PM WEST, Fabio Estevam wrote:

> 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>

Glad it worked for you and thanks for documenting this here.

Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>

Cheers,
   Rui

> ---
>  Documentation/admin-guide/media/imx7.rst | 60 ++++++++++++++++++++++++
>  1 file changed, 60 insertions(+)
>
> diff --git a/Documentation/admin-guide/media/imx7.rst b/Documentation/admin-guide/media/imx7.rst
> index 1e442c97da47..4785ae8ac978 100644
> --- a/Documentation/admin-guide/media/imx7.rst
> +++ b/Documentation/admin-guide/media/imx7.rst
> @@ -155,6 +155,66 @@ the resolutions supported by the sensor.
>  	                [fmt:SBGGR10_1X10/800x600@1/30 field:none colorspace:srgb]
>  	                -> "imx7-mipi-csis.0":0 [ENABLED]
>  
> +i.MX6ULL-EVK with OV5640
> +------------------------
> +
> +On this platform a parallel OV5640 sensor is connected to the CSI port.
> +The following example configures a video capture pipeline with an output
> +of 640x480 and UYVY8_2X8 format:
> +
> +.. code-block:: none
> +
> +   # Setup links
> +   media-ctl -l "'ov5640 1-003c':0 -> 'csi':0[1]"
> +   media-ctl -l "'csi':1 -> 'csi capture':0[1]"
> +
> +   # Configure pads for pipeline
> +   media-ctl -v -V "'ov5640 1-003c':0 [fmt:UYVY8_2X8/640x480 field:none]"
> +
> +After this streaming can start:
> +
> +.. code-block:: none
> +
> +   gst-launch-1.0 -v v4l2src device=/dev/video1 ! video/x-raw,format=UYVY,width=640,height=480 ! v4l2convert ! fbdevsink
> +
> +.. code-block:: none
> +
> +	# media-ctl -p
> +	Media controller API version 5.14.0
> +
> +	Media device information
> +	------------------------
> +	driver          imx7-csi
> +	model           imx-media
> +	serial
> +	bus info
> +	hw revision     0x0
> +	driver version  5.14.0
> +
> +	Device topology
> +	- entity 1: csi (2 pads, 2 links)
> +	            type V4L2 subdev subtype Unknown flags 0
> +	            device node name /dev/v4l-subdev0
> +	        pad0: Sink
> +	                [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
> +	                <- "ov5640 1-003c":0 [ENABLED,IMMUTABLE]
> +	        pad1: Source
> +	                [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
> +	                -> "csi capture":0 [ENABLED,IMMUTABLE]
> +
> +	- entity 4: csi capture (1 pad, 1 link)
> +	            type Node subtype V4L flags 0
> +	            device node name /dev/video1
> +	        pad0: Sink
> +	                <- "csi":1 [ENABLED,IMMUTABLE]
> +
> +	- entity 10: ov5640 1-003c (1 pad, 1 link)
> +	             type V4L2 subdev subtype Sensor flags 0
> +	             device node name /dev/v4l-subdev1
> +	        pad0: Source
> +	                [fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
> +	                -> "csi":0 [ENABLED,IMMUTABLE]
> +
>  References
>  ----------
>  
> -- 
> 2.25.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] media: imx: TODO: Remove items that are already supported
  2021-08-26 18:38 ` [PATCH 2/2] media: imx: TODO: Remove items that are already supported Fabio Estevam
@ 2021-08-27 18:09   ` Rui Miguel Silva
  2021-08-27 21:13   ` Laurent Pinchart
  1 sibling, 0 replies; 5+ messages in thread
From: Rui Miguel Silva @ 2021-08-27 18:09 UTC (permalink / raw)
  To: Fabio Estevam, hverkuil-cisco
  Cc: mchehab+huawei, laurent.pinchart, linux-media, sebastien.szymanski

Oi Fabio,
On Thu Aug 26, 2021 at 7:38 PM WEST, Fabio Estevam wrote:

> Video capture has been successfully tested using an OV5640 parallel
> sensor on a imx6ull-evk board at a 640x480 resolution and UYVY8_2X8
> format.
>
> Remove the two items that are no longer pending.
>
> Signed-off-by: Fabio Estevam <festevam@denx.de>

great to see this parallel sensor worked

Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>

Cheers,
  Rui

> ---
>  drivers/staging/media/imx/TODO | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO
> index 2384f4c6b09d..06c94f20ecf8 100644
> --- a/drivers/staging/media/imx/TODO
> +++ b/drivers/staging/media/imx/TODO
> @@ -27,8 +27,3 @@
>  - i.MX7: all of the above, since it uses the imx media core
>  
>  - i.MX7: use Frame Interval Monitor
> -
> -- i.MX7: runtime testing with parallel sensor, links setup and streaming
> -
> -- i.MX7: runtime testing with different formats, for the time only 10-bit bayer
> -  is tested
> -- 
> 2.25.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] media: imx: TODO: Remove items that are already supported
  2021-08-26 18:38 ` [PATCH 2/2] media: imx: TODO: Remove items that are already supported Fabio Estevam
  2021-08-27 18:09   ` Rui Miguel Silva
@ 2021-08-27 21:13   ` Laurent Pinchart
  1 sibling, 0 replies; 5+ messages in thread
From: Laurent Pinchart @ 2021-08-27 21:13 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: hverkuil-cisco, mchehab+huawei, rmfrfs, linux-media, sebastien.szymanski

Hi Fabio,

Thank you for the patch.

On Thu, Aug 26, 2021 at 03:38:19PM -0300, Fabio Estevam wrote:
> Video capture has been successfully tested using an OV5640 parallel
> sensor on a imx6ull-evk board at a 640x480 resolution and UYVY8_2X8
> format.
> 
> Remove the two items that are no longer pending.
> 
> Signed-off-by: Fabio Estevam <festevam@denx.de>

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

> ---
>  drivers/staging/media/imx/TODO | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/staging/media/imx/TODO b/drivers/staging/media/imx/TODO
> index 2384f4c6b09d..06c94f20ecf8 100644
> --- a/drivers/staging/media/imx/TODO
> +++ b/drivers/staging/media/imx/TODO
> @@ -27,8 +27,3 @@
>  - i.MX7: all of the above, since it uses the imx media core
>  
>  - i.MX7: use Frame Interval Monitor
> -
> -- i.MX7: runtime testing with parallel sensor, links setup and streaming
> -
> -- i.MX7: runtime testing with different formats, for the time only 10-bit bayer
> -  is tested

-- 
Regards,

Laurent Pinchart

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-08-27 21:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 18:38 [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Fabio Estevam
2021-08-26 18:38 ` [PATCH 2/2] media: imx: TODO: Remove items that are already supported Fabio Estevam
2021-08-27 18:09   ` Rui Miguel Silva
2021-08-27 21:13   ` Laurent Pinchart
2021-08-27 18:07 ` [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Rui Miguel Silva

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.