From patchwork Thu Apr 9 16:29:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 210243 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=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, 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 31D66C2BA2B for ; Thu, 9 Apr 2020 16:29:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0854520730 for ; Thu, 9 Apr 2020 16:29:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="n7HAG9r8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726946AbgDIQ3Y (ORCPT ); Thu, 9 Apr 2020 12:29:24 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44139 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbgDIQ3X (ORCPT ); Thu, 9 Apr 2020 12:29:23 -0400 Received: by mail-qt1-f193.google.com with SMTP id w24so348474qts.11 for ; Thu, 09 Apr 2020 09:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=w3Df8xLGfV/1bGxtqXtvF8/jtUvkTYDFnMbV6MxMdlU=; b=n7HAG9r8mnJExzjmaEA/S1jpDDdEMKIsc76hn+DKOwRCi+MZxSaeG7cWLBMcXwseUd UE7I/PHoyYZU2kJTN0WYqTzazsifFvInjG0DmcsPBoG5xHpA2kPhi+yzMf0YuoNSBh0r SuX/wwe/Mlg7Bd4SAx7Sownau/fZoNGWd2ehe6/Y+jDzNhxCJrMNC07gZkUBGolodWlc 0mJk6GqFD1mMLtMPM1Ph/w8yBO2SSWzV0QkbZO+RW1FFppWUdqMKI9sjgSrVdP6ybNlC Md+EnN0HgxxyUbE87hGGCv0yFqpr3ZG3md1SJ0ZeX23OWAo8T5yGKa5Y+8817N4mqdMr /AhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=w3Df8xLGfV/1bGxtqXtvF8/jtUvkTYDFnMbV6MxMdlU=; b=MzP9kmBs3Q/1VN084z/U4/Xoo/PMBazMDSNY0WPts/7Qr4h+JUR5lq+GSDkL3mh8yQ zT7GQ97Ygv8ozlbb6kKQ1ZtH5GmjiIek816+MHYIblDU86dZ4b/SmX0XcOQlgnRHzeIE Ovai+8AmGnMPc+qGCTPFkTbZpL5p0CfLkLxcphIV9YMcKlu/RNuXdgM/8uQQir/uXZNH VRgyvbZrVx7bbtlON8EocgNh8uI/MeoCPs3e5CITvXOThahOETeCFAnrG/hIes20slbG rHFUdHujnEaD5zz3cVwWOY5Af0OwqkmTXeEYtdPtgWFdGXedaH3dB9cEp6t1r81i5OaU Uq+A== X-Gm-Message-State: AGi0PuavDyVXMsY3vQ2avl/gzacE35TfyKL+fF4D1t2gKoxLvBA72xSV 2tvI/guidC+HH+x422ZIvps= X-Google-Smtp-Source: APiQypJCkRwhTllJ3Gmt7DLt2ZOHNnbuKQWwwcTtOnHcx82d5RUIMKKcAqqSWqLgy/8VL2w7bc9WoQ== X-Received: by 2002:ac8:7396:: with SMTP id t22mr146210qtp.15.1586449761428; Thu, 09 Apr 2020 09:29:21 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:5bb::3]) by smtp.gmail.com with ESMTPSA id x66sm16980587qka.121.2020.04.09.09.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 09:29:20 -0700 (PDT) From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: slongerbeam@gmail.com, p.zabel@pengutronix.de, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v2 2/4] media: imx.rst: Provide an example for unprocessed video capture Date: Thu, 9 Apr 2020 13:29:43 -0300 Message-Id: <20200409162945.3559-2-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200409162945.3559-1-festevam@gmail.com> References: <20200409162945.3559-1-festevam@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The current example for imx6q-sabresd is for a direct conversion pipeline. Provide an extra example using unprocessed video capture for completeness. Signed-off-by: Fabio Estevam Reviewed-by: Steve Longerbeam --- Changes since v1: - None Documentation/media/v4l-drivers/imx.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index b8df91f83f14..fb6e01976254 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -644,6 +644,26 @@ CSI-2 OV5640 has been tested, so the OV5642 node is currently disabled. The OV5640 module connects to MIPI connector J5 (sorry I don't have the compatible module part number or URL). +The following example configures unprocessed video capture pipeline to +capture from the OV5640, transmitting on MIPI CSI-2 virtual channel 0: + +.. code-block:: none + + # Setup links + media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]" + media-ctl -l "'imx6-mipi-csi2':1 -> 'ipu1_csi0_mux':0[1]" + media-ctl -l "'ipu1_csi0_mux':2 -> 'ipu1_csi0':0[1]" + media-ctl -l "'ipu1_csi0':2 -> 'ipu1_csi0 capture':0[1]" + # Configure pads + media-ctl -V "'ov5640 1-003c':0 [fmt:UYVY2X8/640x480]" + media-ctl -V "'imx6-mipi-csi2':1 [fmt:UYVY2X8/640x480]" + media-ctl -V "'ipu1_csi0_mux':0 [fmt:UYVY2X8/640x480]" + media-ctl -V "'ipu1_csi0':0 [fmt:AYUV32/640x480]" + +Streaming can then begin on "ipu1_csi0 capture" node. The v4l2-ctl +tool can be used to select any supported pixelformat on the capture +device node. + The following example configures a direct conversion pipeline to capture from the OV5640, transmitting on MIPI CSI-2 virtual channel 0. It also shows colorspace conversion and scaling at IC output. From patchwork Thu Apr 9 16:29:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 210242 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=-9.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, 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 61F34C2BA2B for ; Thu, 9 Apr 2020 16:29:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3878120730 for ; Thu, 9 Apr 2020 16:29:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G7v8XEQt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726975AbgDIQ33 (ORCPT ); Thu, 9 Apr 2020 12:29:29 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:39380 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbgDIQ33 (ORCPT ); Thu, 9 Apr 2020 12:29:29 -0400 Received: by mail-qt1-f194.google.com with SMTP id o10so378294qtr.6 for ; Thu, 09 Apr 2020 09:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OtJZwSLn11Kwe6u9NgIgEbPCDkD2EDEfs9ZSWlyMdWI=; b=G7v8XEQtn17XM27gcCLBlbLPG7CWbnJjGNjvSNgbus3YQki8QH5nyw5pC66JhevNje 5OmPksvHFAM9VRCmT7mnZFVB6Drw1W90b4vjfvkI+Pmrb2JGkMcvSonSESplpXgNFnXZ WdIPTPOAABnXlKXV1DkpTEasijRQIUB8WPYhf0qfSeEXPNTK5hj++4OTK2e3czdUsTgm D0qi1ZeOaEKcwSSUvA8fqOCkSPXysMELrG4HIE5/b4zGCwRhauwu7Fo8Tv66YvSIPbDN aTAPnH1kBrMQmaNSgrkLWyEyYCKFivUXaQ3oh4ZW8BRAsVap0Qo5LCWY9dyAcHzOb2Rc C0Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OtJZwSLn11Kwe6u9NgIgEbPCDkD2EDEfs9ZSWlyMdWI=; b=A7lfU6B00a0vomlK//vMSWkxPyHV2xUhfQJwgy263WBRn6ZzBwMXALgQW/PQwy+wF1 LRFvXgDcsLSeo/IBjH7qVRYZ8DEc6Rsecd8O7K2HKU4m/zlMcVN5FT8e8zZ0SrQeuh11 CMJ2irVf0u/J1XNX1SFbT/HOLS+txyHqHN359qDaRBhscdNFfR49TFYc818aRZJ9Bkb3 kHH12+6UekOat9OrKcFgElBUUs5QLP17vPEdyZUniUxfigKpSckkN/zYxz+1rz6Bp9La +V6Cidz3dX/pdi2So6+Bd1py8xuhH732x9g0UMLCoxt5rmWiZXankGqgqT/u2EiNbqaS 8+eg== X-Gm-Message-State: AGi0PuasFpE2ikSoHLuQI23wbwWQZuvVGOcszCYcaY341cRgFsIMmjQk X4vRe+ClM+j1BUpIhjz0P8Q= X-Google-Smtp-Source: APiQypJ/CHF2S0Snyamz4vJ/WQ9hrwa8UOQT53NGoiNYMSmVMYLEgX/nGSBWvri02/tNoEl0+JTFew== X-Received: by 2002:ac8:22ad:: with SMTP id f42mr164508qta.292.1586449767154; Thu, 09 Apr 2020 09:29:27 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:5bb::3]) by smtp.gmail.com with ESMTPSA id x66sm16980587qka.121.2020.04.09.09.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 09:29:26 -0700 (PDT) From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: slongerbeam@gmail.com, p.zabel@pengutronix.de, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v2 4/4] media: imx.rst: Provide streaming examples for imx6q-sabresd Date: Thu, 9 Apr 2020 13:29:45 -0300 Message-Id: <20200409162945.3559-4-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200409162945.3559-1-festevam@gmail.com> References: <20200409162945.3559-1-festevam@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Improve the documentation by providing examples on how to test camera capture on imx6q-sabresd via v4l2-ctl and Gstreamer. Signed-off-by: Fabio Estevam --- Changes since v1: - Use media-ctl -e to determine the video node. (Steve) Documentation/media/v4l-drivers/imx.rst | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 955d27582e10..025f21def7dc 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -664,6 +664,28 @@ Streaming can then begin on "ipu1_csi0 capture" node. The v4l2-ctl tool can be used to select any supported pixelformat on the capture device node. +To determine what is the /dev/video node correspondent to +"ipu1_csi0 capture": + +.. code-block:: none + + media-ctl -e "ipu1_csi0 capture" + /dev/video0 + +/dev/video0 is the streaming element in this case. + +Starting the streaming via v4l2-ctl: + +.. code-block:: none + + v4l2-ctl --stream-mmap -d /dev/video0 + +Starting the streaming via Gstreamer and sending the content to the display: + +.. code-block:: none + + gst-launch-1.0 v4l2src device=/dev/video0 ! kmssink + The following example configures a direct conversion pipeline to capture from the OV5640, transmitting on MIPI CSI-2 virtual channel 0. It also shows colorspace conversion and scaling at IC output. @@ -689,6 +711,29 @@ shows colorspace conversion and scaling at IC output. Streaming can then begin on "ipu1_ic_prpenc capture" node. +To determine what is the /dev/video node correspondent to +"ipu1_ic_prpenc capture": + +.. code-block:: none + + media-ctl -e "ipu1_ic_prpenc capture" + /dev/video1 + + +/dev/video1 is the streaming element in this case. + +Starting the streaming via v4l2-ctl: + +.. code-block:: none + + v4l2-ctl --stream-mmap -d /dev/video1 + +Starting the streaming via Gstreamer and sending the content to the display: + +.. code-block:: none + + gst-launch-1.0 v4l2src device=/dev/video1 ! kmssink + Known Issues ------------