From patchwork Thu Apr 9 16:29:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11481975 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BCB191392 for ; Thu, 9 Apr 2020 16:29:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C8E320768 for ; Thu, 9 Apr 2020 16:29:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gI8YDLF2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726936AbgDIQ3T (ORCPT ); Thu, 9 Apr 2020 12:29:19 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:41827 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbgDIQ3T (ORCPT ); Thu, 9 Apr 2020 12:29:19 -0400 Received: by mail-qt1-f194.google.com with SMTP id i3so367758qtv.8 for ; Thu, 09 Apr 2020 09:29:19 -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; bh=9P7rafqbXxs9JOuSQyiPCNhemqH5gCU5YG9s65U6l4Y=; b=gI8YDLF2+vG87fxXOQmeYSh7sXfgmw4grvhCSbJbnpKOyxhk8+oxWLBHnwkrHIqA6n fxtJMx4eIHOaekJi0MknOGK5pDUiacsypOFfegnntrwhKen+9FiPp0AgnSwopTD/V9bq 8WgVHCZ1TBokcBU1WTRMJAiSBIX/MpRRMq5beuP0iRrSnSM8dmk9DoBTTn+VhQt/viEy vvGQ3+DIJj/u8tb2Na2tXp6sMpJfEedAShd7p2vHmf8ZxAX6u+psZ5yUBE9Fdie/JNqZ BNvRitM47pmU7h2NQjRmiRUxn++SV+uqPDnPt//1s1tYUYceEMX3Qh1tb/gp/uZUn6ql itYQ== 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; bh=9P7rafqbXxs9JOuSQyiPCNhemqH5gCU5YG9s65U6l4Y=; b=UeuHjcc08H+/99bthFHEahpn3dcrhJ88nTzsHTx+xh5FBxuvhr7JsS+8xVe/41UCoI 5vVQXxG+zUPNS5Oagej7xGB2xkbb5lDBJ/ZpWiCgvhPRDwGRZpylaAtUZHOfr7PFr763 JUZ4/r6/FMmRfvMmE5I/W6ntensWUXjJgu+DZF4KgheGHhx4ZGT8N0Ggv7gB2RFZNTUE zC2cCsn00u9t347h3BAF0HLxhBPDN7ePM5IdEH16kyKVnklIshnaK2hnf/y1fqJRui40 LMyWimsnrUKtxcn+8lmjAo7Tn0TBPmS6iw1UtrAdZ6bw5XNDIKd/p2VJBCaQWRfTTb8E IZHw== X-Gm-Message-State: AGi0PubLc05La5UukmnjGo59l98mi6whNqpgfqpBWcrO/JC2igMPpp2G peWdTu+WOT7EN2S3PTxAZxpQ9868YRo= X-Google-Smtp-Source: APiQypLcDT86pEDmPyrMGti9u+Gkf2lUqsH3tBtD5la9rps3KMWA/sg6V75XXdzVDAFo/RGmW53z4Q== X-Received: by 2002:ac8:5388:: with SMTP id x8mr147608qtp.21.1586449758637; Thu, 09 Apr 2020 09:29:18 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 09:29:17 -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 1/4] media: imx.rst: Fix the MIPI CSI-2 virtual channel Date: Thu, 9 Apr 2020 13:29:42 -0300 Message-Id: <20200409162945.3559-1-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The current instructions for imx6q-sabresd do not lead to functional capture on OV5640 MIPI CSI-2. The reason for this, as explained by Steve Longerbeam, is that OV5640 by default transmits on virtual channel 0, not channel 1 as is given in the instructions. Adapt the instructions to use virtual channel 0 so that a working camera setup can be achieved on imx6q-sabresd. Also, since we are using an IC direct conversion pipeline, improve the example by demonstrating colorspace and scaling. Signed-off-by: Fabio Estevam Reviewed-by: Steve Longerbeam --- Changes since v1: - Demonstrate colorspace and scaling. (Steve) Documentation/media/v4l-drivers/imx.rst | 31 ++++++++++++------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 1246573c1019..b8df91f83f14 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -645,30 +645,29 @@ The OV5640 module connects to MIPI connector J5 (sorry I don't have the compatible module part number or URL). The following example configures a direct conversion pipeline to capture -from the OV5640, transmitting on MIPI CSI-2 virtual channel 1. $sensorfmt -can be any format supported by the OV5640. $sensordim is the frame -dimension part of $sensorfmt (minus the mbus pixel code). $outputfmt can -be any format supported by the ipu1_ic_prpenc entity at its output pad: +from the OV5640, transmitting on MIPI CSI-2 virtual channel 0. It also +shows colorspace conversion and scaling at IC output. .. code-block:: none # Setup links media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]" - media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]" - media-ctl -l "'ipu1_csi1':1 -> 'ipu1_ic_prp':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':1 -> 'ipu1_ic_prp':0[1]" media-ctl -l "'ipu1_ic_prp':1 -> 'ipu1_ic_prpenc':0[1]" media-ctl -l "'ipu1_ic_prpenc':1 -> 'ipu1_ic_prpenc capture':0[1]" # Configure pads - media-ctl -V "'ov5640 1-003c':0 [fmt:$sensorfmt field:none]" - media-ctl -V "'imx6-mipi-csi2':2 [fmt:$sensorfmt field:none]" - media-ctl -V "'ipu1_csi1':1 [fmt:AYUV32/$sensordim field:none]" - media-ctl -V "'ipu1_ic_prp':1 [fmt:AYUV32/$sensordim field:none]" - media-ctl -V "'ipu1_ic_prpenc':1 [fmt:$outputfmt field:none]" - -Streaming can then begin on "ipu1_ic_prpenc capture" node. The v4l2-ctl -tool can be used to select any supported YUV or RGB pixelformat on the -capture device node. - + 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':2 [fmt:UYVY2X8/640x480]" + media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/640x480]" + media-ctl -V "'ipu1_ic_prp':1 [fmt:AYUV32/640x480]" + media-ctl -V "'ipu1_ic_prpenc':1 [fmt:ARGB8888_1X32/800x600]" + # Set a format at the capture interface + v4l2-ctl -d /dev/video1 --set-fmt-video=pixelformat=RGB3 + +Streaming can then begin on "ipu1_ic_prpenc capture" node. Known Issues ------------ 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: 11481977 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 29CEE1744 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 0A93720769 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:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11481979 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DDC861744 for ; Thu, 9 Apr 2020 16:29:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BEE5C20769 for ; Thu, 9 Apr 2020 16:29:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a/acH/4e" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726964AbgDIQ30 (ORCPT ); Thu, 9 Apr 2020 12:29:26 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:39244 "EHLO mail-qk1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbgDIQ30 (ORCPT ); Thu, 9 Apr 2020 12:29:26 -0400 Received: by mail-qk1-f171.google.com with SMTP id b62so4570553qkf.6 for ; Thu, 09 Apr 2020 09:29:24 -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=8s2ERfHLg960xclFm8h70FIDF2UYHX/AGMAOPHRNwaU=; b=a/acH/4e+7K7w9ktaCkPJkZr1X5xYvh3zLoe+pRkrwPdE42/ARLoZ8OqCVeqlU7R0Z B0luo4te4ObKwyAHmYJPiH19Sm/zwMuUR+1wrMPUiqPr5KIZpzSAi+ciADEMX4/AmeQx HIO4BC6vvJ1Egnf8CqsXGnfOtapsfLU4XNl0RINwP8jHTpahziLpIg7x894GFt7rALT0 eQJ9ViPjp3mTEKNO5qHNcnNbzsA+Nw92QaCWSr5JleKaQRd8esaFEmzNZRs4zhpnF21H rXoy0cBUO6XodInqUELINhtF1UYeClDWZ1g7UYPG7PL4gtv3PmXm4K1gIiGkWc17S7jK 7XsQ== 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=8s2ERfHLg960xclFm8h70FIDF2UYHX/AGMAOPHRNwaU=; b=hJAfs5Ktve/9mMg1w9lvwqmlTLBo/MELy1qSSpWJmxQ6bD/Fbjii99BwSHGoyifVkd FPFyvIJ/8F9OZCttwu26LY5W3+qHEjT1Y8R6S++1Ge2vqV5N60GlmGt3XUYWOVzCuhcG 96W5Mh83G2mwuBYezUJShBO96WDOYUewJCZmsxxL0OW5QB3ZropeSOxYnoIrluR+vQQz m6wts3uVSoGJN038OQ/TET8qZERDJ6XaoiBFfh+hOGlbpLur01WQ6sG+NAmw5baBFE1E pbAFcAyG5fpZkFabXSGw3oPNETzlHuBMI5I6WrtHXqEd+dGzGKmVAx2YauvjQ36OA7jk LCDQ== X-Gm-Message-State: AGi0PuZnve66cgOfeQQP6Y/ZpzTKVCIVVr1WynDE0bXMuByAIc5H8LP5 jK6u4S7VtLKua+ig73NrEpU= X-Google-Smtp-Source: APiQypKLMmDSOH5ddkSOPNbq6Rb7kb3V3JcD53aNurzC7sULVCQQoUViP4/fXXkkAc/DzGiiNwvubg== X-Received: by 2002:a37:b17:: with SMTP id 23mr663826qkl.136.1586449764357; Thu, 09 Apr 2020 09:29:24 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2020 09:29:23 -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 3/4] media: imx.rst: Provide the OV560 module part number Date: Thu, 9 Apr 2020 13:29:44 -0300 Message-Id: <20200409162945.3559-3-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 In order to improve the documentation, provide the OV5640 MIPI module part number that is used on the imx6q-sabresd board. Signed-off-by: Fabio Estevam Reviewed-by: Steve Longerbeam --- Changes since v1: - None Documentation/media/v4l-drivers/imx.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index fb6e01976254..955d27582e10 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -641,8 +641,8 @@ connects to i2c bus 1 and the OV5640 to i2c bus 2. The device tree for SabreSD includes OF graphs for both the parallel OV5642 and the MIPI CSI-2 OV5640, but as of this writing only the MIPI 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 OV5640 module connects to MIPI connector J5. The NXP part number +for the OV5640 module that connects to the SabreSD board is H120729. The following example configures unprocessed video capture pipeline to capture from the OV5640, transmitting on MIPI CSI-2 virtual channel 0: 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: 11481981 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6159517D4 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 41EEA20769 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 Reviewed-by: Steve Longerbeam --- 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 ------------