From patchwork Thu Aug 26 18:38:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 503546 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66734C432BE for ; Thu, 26 Aug 2021 18:38:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3D4E361002 for ; Thu, 26 Aug 2021 18:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243300AbhHZSja (ORCPT ); Thu, 26 Aug 2021 14:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243241AbhHZSj3 (ORCPT ); Thu, 26 Aug 2021 14:39:29 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B0BC061757 for ; Thu, 26 Aug 2021 11:38:41 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:f5aa:2721:8538:a2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 065218311A; Thu, 26 Aug 2021 20:38:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630003118; bh=b8QFrq1K95xpghvDAxRqMcGidmkl+Au4xJoOTuoBHYE=; h=From:To:Cc:Subject:Date:From; b=BSAaXCaIHe+Ft7901zEScnD5XKPYlcthGtZrew7ixx6ttPPaSXFAAWYgfYJ0Y5cXF HnDbYc1nyC4efvUxW4XTgLxjqeU+hg7+WR4DET3V6GiqY3V2YDfkbC7RfxsBBh3B/6 W1f/fD83FpthIg8kGDbgktgfotLhwYTnuGTHufQs6kkKl/BRxxI8e/U1qv/qK9VoBp fQaKLXfIo23XQPDplyuUCJMuMNx2bmTA0Dd7kT0jrGtfeuzP38piM3M0XXdQ1FAjSc YS2gyqRr1ChkOZ2IyVHEA6O0KxWf7+ZJbL/Ed+wwtjpdo/GQ2z42t+QAAbmNtciDdB 3QYiA4B4AsANQ== From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: mchehab+huawei@kernel.org, rmfrfs@gmail.com, laurent.pinchart@ideasonboard.com, linux-media@vger.kernel.org, sebastien.szymanski@armadeus.com, Fabio Estevam Subject: [PATCH 1/2] media: imx7.rst: Provide an example for imx6ull-evk capture Date: Thu, 26 Aug 2021 15:38:18 -0300 Message-Id: <20210826183819.105804-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org imx6ull-evk has a parallel OV5640 sensor. Provide an example for imx6ull-evk capture to improve the document. Signed-off-by: Fabio Estevam Acked-by: Rui Miguel Silva --- 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 ---------- From patchwork Thu Aug 26 18:38:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 503127 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A634C4320A for ; Thu, 26 Aug 2021 18:38:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72C2E60F44 for ; Thu, 26 Aug 2021 18:38:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243303AbhHZSjb (ORCPT ); Thu, 26 Aug 2021 14:39:31 -0400 Received: from phobos.denx.de ([85.214.62.61]:47824 "EHLO phobos.denx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243298AbhHZSja (ORCPT ); Thu, 26 Aug 2021 14:39:30 -0400 Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:f5aa:2721:8538:a2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 62070831C2; Thu, 26 Aug 2021 20:38:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630003122; bh=3RMqqhwjI/w1J7UJT3+gYaUdlRjH0BAWwkkc9Ww0GME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WoJPQhFUPgPZjRbjseqGQjMj/bSSmGDtotkqn0ZT5ad5cdoRRfw02xKg5CINMsYox ZGomc1qZ1bwHzKobsHTuAqb5uoOXhAnKgkGBSHCS4jo2+8+nve+iYSSqmXK6zUZLgG 0cOUNBEH4vFVlQ4Wf7aeZpovdzPDX791maW7ed/mj/PbN998ApcuoT4/dr1/u/A5N6 ujdmXgqO55QmsaZnE7R65HSMhuUP4B8K6mFBhAkrCejRIEBk+R9NKkEsULhf2OXxfk eUdLAzVnBv9msBXWhS/aHe0JgmHDf9a/9C//PqnBJ4SB5cgLb+AmYhc3hWuDfULUtE dAN0ndZwM5plw== From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: mchehab+huawei@kernel.org, rmfrfs@gmail.com, laurent.pinchart@ideasonboard.com, linux-media@vger.kernel.org, sebastien.szymanski@armadeus.com, Fabio Estevam Subject: [PATCH 2/2] media: imx: TODO: Remove items that are already supported Date: Thu, 26 Aug 2021 15:38:19 -0300 Message-Id: <20210826183819.105804-2-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210826183819.105804-1-festevam@denx.de> References: <20210826183819.105804-1-festevam@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Acked-by: Rui Miguel Silva Reviewed-by: Laurent Pinchart --- 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