From patchwork Wed Apr 8 12:32:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 62934 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1jM9pG-00BKUO-0O; Wed, 08 Apr 2020 12:29:02 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728454AbgDHMbt (ORCPT + 1 other); Wed, 8 Apr 2020 08:31:49 -0400 Received: from mail-qv1-f65.google.com ([209.85.219.65]:41686 "EHLO mail-qv1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbgDHMbt (ORCPT ); Wed, 8 Apr 2020 08:31:49 -0400 Received: by mail-qv1-f65.google.com with SMTP id b4so1145980qvw.8 for ; Wed, 08 Apr 2020 05:31:48 -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=av+V9OCAoiE9wtnyqgCwAxBKSBlWviHFTCRPpGmAtvU=; b=Z7WCMy6LxDEH1nSXf/TkIYBm5fK++iqegBNETRE0NB4Jq/82ADO8MK5MI8I5/Wu0vc MGt68ogxcH9XjObrRw3ycZj11nModlbt8lJT5KD32TURV6q+1/sNCeE0LOwdgvV60YV0 /ZwsWGuDcUALLNa1v5x1/U1FmU52iny0xoQZapJx4+kJMsRo04bdPA45WMgBdvso0brm XinieRsFULr7fZg8fpOAO2kcnPyvUR6TsUdzR3vlMFlqEEMwt+cGIk9uS2uDVevPtIdj X6foaJP/ppbwPRn7KSWxRvXjw6cCEtTNXues309EHDyNlMJRKb0s91jIKsuZA/id8DRK hCKA== 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=av+V9OCAoiE9wtnyqgCwAxBKSBlWviHFTCRPpGmAtvU=; b=jtd2BnPtK74KKt/dvwfhhzEJOL85NWZydkIdr6isPV8QVy90URmpLvWz+aqzQSJxKW QTyiZbwJYsfO+R1eZLsgRq+Cwa35tnyOdsy4JaxSSffLoOnCTAYvBQ3Gz3GpGVZ86PDW pAgyVLnoVD/RAwdlM835ij1BsHxQKTB8o5rj8qlurlyJPBv8qR8HQzsqewyfZqNC+18q k6raTt4hQa1EJJUBwuKGhTczthqxY4f5lBYDKXHNPSVj/IHo4TbHMaKmYM9Vm+p+Aaqv 2O1O/fZreHdXY3EFrPcQ4tbu2GW0zyLsiP+WUfonqAjySyDvUB7unqMTAOvgeGqyjpyw 9WJg== X-Gm-Message-State: AGi0PuaX05k3Y1VFt6eHIP4Lf9gu3+eMufBaguUjm3j05FmbLqmzM1p5 hCbiOpgKY40xCbHPp7zzL6g= X-Google-Smtp-Source: APiQypJNIT/5/nRRJ7TyCCN6So8dlvQ5boMzqnjNCfhcNEz3mFPGfHWbkrZ/ant4mxBwYkXvcs6lLQ== X-Received: by 2002:a0c:c28c:: with SMTP id b12mr7279894qvi.26.1586349107460; Wed, 08 Apr 2020 05:31:47 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:5bb::4]) by smtp.gmail.com with ESMTPSA id z40sm9120377qtj.45.2020.04.08.05.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 05:31:46 -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 1/4] media: imx.rst: Fix the MIPI CSI-2 virtual channel Date: Wed, 8 Apr 2020 09:32:12 -0300 Message-Id: <20200408123215.2531-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. Suggested-by: Steve Longerbeam Signed-off-by: Fabio Estevam --- Hi Steve, I don't have access to a imx6q sabrelite with camera, but I think it needs fixing as well. Documentation/media/v4l-drivers/imx.rst | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 1246573c1019..7c3afd32e456 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -645,25 +645,26 @@ 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: .. 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]" + 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':0 [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':0 [fmt:AYUV32/640x480]" + media-ctl -V "'ipu1_ic_prpenc':1 [fmt:AYUV32/640x480]" 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 From patchwork Wed Apr 8 12:32:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 62935 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1jM9pH-00BKUO-KR; Wed, 08 Apr 2020 12:29:03 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbgDHMbv (ORCPT + 1 other); Wed, 8 Apr 2020 08:31:51 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45506 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbgDHMbv (ORCPT ); Wed, 8 Apr 2020 08:31:51 -0400 Received: by mail-qt1-f196.google.com with SMTP id 71so5336777qtc.12 for ; Wed, 08 Apr 2020 05:31:50 -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=+q+seak13ylX0CXT7gqP2UMp4PkbkAJ3zkFCaFVZjBE=; b=cIqjvGm2aWtRoahrYw6PFtHhEHreUvBr4jY+tUkJS9VtvIQemcQzAJaKA6ZgP4krDx WgYbdt+Yclyvar8fS09AKtUHzxWCCW+1wOvSpbzu5TDH0fVFybaPwoa/DEzCNa2HKhbe rzL5fuyLYocL0eYN0mkf905IU5ahnrKWhs0Nz6Qk7IPMyoJmYDDeZRRR49BpcWkjTjtU hp0i0vqHDPVXh5qZXuaWLvzxJT67CJekmOfYlA0KLnueb0VqPOrdoaOta4NQbrPWUtEg CvA6PjFv19g6m+5aoJtm6YzNW0ppUC51J0rppSqwLsjSM5HWMI95VEvLHVMLU9oC941Y qUbA== 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=+q+seak13ylX0CXT7gqP2UMp4PkbkAJ3zkFCaFVZjBE=; b=JBHeuHxmz6J9hk8n3k/WYjSV18GUyLO3Z8YlExWSoPwONSV7jYX8EiAZ860rg1RyUL Qg0w9m43hl1aNE2Ga3a9j7rk6pSxVTN4goZl6WFR9TrYYAARwBwRv5LENicNlbGzR1XH ht49SXrtSifZmrWMlXU/aPthF+TZ+bY6RzbNYtwQlpK+Y7RypeaBFGNkjX2vhCO2GAiA DdoWMExXPfJC5+UTdIlNyKBiPgbt9N7D8zkfI51y37Hap/ZqrXdzINamYuxam2spy7Ew QSnhHZfadfKGriEMmmAt7+e21O+3JzaMnGMQloW0MLjjTbHFr4wdUU1HCw8Wues8/uPR jwQg== X-Gm-Message-State: AGi0PuZ7+VpLwzuMp/97lzkOOZ7wW0O5bKS6tmFNQN4e5/WxruzBo+Pk I8iARiEukconTnJgOp9xuMs= X-Google-Smtp-Source: APiQypKIE1sZZRV1rqNIby9y/yzrhmt1mkLuIH52s5xg5Nx4I7pZLMJGyT+nzMmzDsEQe3CDitIdqw== X-Received: by 2002:ac8:7292:: with SMTP id v18mr7095818qto.304.1586349110164; Wed, 08 Apr 2020 05:31:50 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:5bb::4]) by smtp.gmail.com with ESMTPSA id z40sm9120377qtj.45.2020.04.08.05.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 05:31:49 -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 2/4] media: imx.rst: Provide an example for unprocessed video capture Date: Wed, 8 Apr 2020 09:32:13 -0300 Message-Id: <20200408123215.2531-2-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200408123215.2531-1-festevam@gmail.com> References: <20200408123215.2531-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 --- 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 7c3afd32e456..3b4767f5f422 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -670,6 +670,26 @@ 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. +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 YUV or RGB pixelformat on the +capture device node. + Known Issues ------------ From patchwork Wed Apr 8 12:32:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 62936 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1jM9pK-00BKUO-LW; Wed, 08 Apr 2020 12:29:06 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728709AbgDHMby (ORCPT + 1 other); Wed, 8 Apr 2020 08:31:54 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:43823 "EHLO mail-qk1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbgDHMby (ORCPT ); Wed, 8 Apr 2020 08:31:54 -0400 Received: by mail-qk1-f181.google.com with SMTP id 13so2882504qko.10 for ; Wed, 08 Apr 2020 05:31:53 -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=hdc2dfV0wpiCD2hWUiBeZnd92/9DH6KajjiQ3UGaOyA=; b=HjZsCLTwv+cgdFqyFdWxt1zM+nVDXn0TY1KLQuv0shoqY51JvW3qZCE+CPUmx01Dq9 TJxcwLtZ9pbUgRNag+5A5BWPFuDnBtq3krqiaYoDkaPkqrbRs3SxUq+ZdQ61c5646Gm0 RDHx0g1iPYRwWNJgFGaRSxMxhjFer19ZxvD8r2colBPnhxdEV7eKuDPQ/v6Wv5si7K2H At54qLlyslWITa9HbGtP07n8t1q4QRAgBGlz0OxG1wXDckrdeVIIaOfF058/5SYwHSPF YDYe88tU6lclMCyCrmdLqQt86G4XQgisqDto0brGMT+9j4n/OAYl/TpelAYtTA0gfruI DcmA== 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=hdc2dfV0wpiCD2hWUiBeZnd92/9DH6KajjiQ3UGaOyA=; b=Q57dNpV31ga/b2igTuSvOhTZtOXoUbQ25M4mkkt0V2CKJYnKAfjELCWV83GJ4kq+aj CMjY3vop8sxSuKfLg/UCCBg8zuzhYN8BFdlyVTKTMEmrKhOrTxRxL5wWaeWPw9eclQVF S7++YZOJ7Tw6oeE5OCxRtcEPgslczfFAIxW10PqoqZ37Arl7je8UstdXXO7YZ1DHM0aN QWoXCf5kkxXOPfR9NPFmORyLydVyGeP4tJMFNiZYkHrfS7znAE935yWHvfudPiBpyzIP 0PHv7BGili6ab/zEw5jydKXVP144IofT4CygkjUJ8e+mAHUeNs6RZZEhDyRn6f9JNH2n 65qA== X-Gm-Message-State: AGi0PuY34FsSA59IRwRz2NiSAFthSGjDnL6Ha9qGI+ZPBc5O9DIie6u6 QX6ZgfhprItZFBovvhaptBY= X-Google-Smtp-Source: APiQypKumB8nNSx0QbjVJhURhelbtTCOslzPUyGRtPD5TXb9pdbPg9KFBqVQgUjbW+pNQrLxWL+/cw== X-Received: by 2002:a37:591:: with SMTP id 139mr7189048qkf.281.1586349112810; Wed, 08 Apr 2020 05:31:52 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:5bb::4]) by smtp.gmail.com with ESMTPSA id z40sm9120377qtj.45.2020.04.08.05.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 05:31:52 -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 3/4] media: imx.rst: Provide the OV560 module part number Date: Wed, 8 Apr 2020 09:32:14 -0300 Message-Id: <20200408123215.2531-3-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200408123215.2531-1-festevam@gmail.com> References: <20200408123215.2531-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 --- 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 3b4767f5f422..37b944f12d93 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 a direct conversion pipeline to capture from the OV5640, transmitting on MIPI CSI-2 virtual channel 0: From patchwork Wed Apr 8 12:32:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 62937 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1jM9pN-00BKUO-Am; Wed, 08 Apr 2020 12:29:09 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728733AbgDHMb5 (ORCPT + 1 other); Wed, 8 Apr 2020 08:31:57 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:39990 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbgDHMb4 (ORCPT ); Wed, 8 Apr 2020 08:31:56 -0400 Received: by mail-qk1-f195.google.com with SMTP id z15so2906304qki.7 for ; Wed, 08 Apr 2020 05:31:56 -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=9ltAP/cIyjU7SzMHZMqNA6IC/+PEcup1EeNOp7ZdocY=; b=JFWj55x/kWt2eAeYw2u523v410Z4bjCSJW68Lp9NF0xNDjECNV3bwrsDe00CZujkYB xGm5OjuXdxd5mpGbxa7iJTET9FdIpE8yga6Z5SDIfJYtVcO8/FCMdDngh1e37extj5ik Ma9ZldBp3wnHmc+TqS0mVG/a5n93FQ6hsKxQWzIvnrXHp2BF4vpxOun05zAnLW6IfJIv IfyQco66P4r6XYKLHReYsDi/8/VeZkQ5hr21jJHZEyF8WbC/Y4N8YvLyx5yYW9G1wwck 3hBNvixqmrcfh0QFQI8v4fU0HU3Rv3UwpGK7njRfq9GYM/mhXln/UQToKpNToWRklWkb RVtw== 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=9ltAP/cIyjU7SzMHZMqNA6IC/+PEcup1EeNOp7ZdocY=; b=URoULSpMUTDOUYMHQgtvg8rRe9ohbnaF6wShXZbt2IkjB7czvPJkeQ4JrPm/MlZm7R hNbCT0I15elPMSPx8OmBPUzjV5SpQs8a/p4RqbfsFrNIi0QAZrXVTnpqiRD09nk4CeMB q9KNWGxbUy+paum9Rk4Egdbzifi7CyCyD3B/sFa5gFtE2yPPBE+s6xK8Ibf/1qAX2UaH wXYwaH987OrxW1mzvysfbzQTzAtc2GUlBYi5elRYbGKNZEpYUwy0uOtz+POuvCztCRHj XaNcLH1CB7iPg+lEukpqhfhmIUVe2BJH596B/isaEGoKb7jmfbJK80yRxlEYu4v1bkvE sPhQ== X-Gm-Message-State: AGi0PuaIUBskkGYTi59DV1ZtK/A7c+mA81TuI+uZCxFUzNbxAIW+pgPE PbMI3zmN6HvpyqZRJo3g6TR8JwR0upo= X-Google-Smtp-Source: APiQypJTbWpmR28ak2B844lZZPDHfs9qQ81M582qqa6YGMil6QfBHYlQvq4h9ZkhJdmVOMTCYF8mzg== X-Received: by 2002:a37:34d:: with SMTP id 74mr7422893qkd.438.1586349115404; Wed, 08 Apr 2020 05:31:55 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:5bb::4]) by smtp.gmail.com with ESMTPSA id z40sm9120377qtj.45.2020.04.08.05.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 05:31:54 -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 4/4] media: imx.rst: Provide streaming examples for imx6q-sabresd Date: Wed, 8 Apr 2020 09:32:15 -0300 Message-Id: <20200408123215.2531-4-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200408123215.2531-1-festevam@gmail.com> References: <20200408123215.2531-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 --- Documentation/media/v4l-drivers/imx.rst | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 37b944f12d93..c872cc84d9fc 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -670,6 +670,28 @@ 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. +In order to determine what is the /dev/video node correspondent to +"ipu1_ic_prpenc": + +.. code-block:: none + + # dmesg | grep ipu1_ic_prpenc | grep Registered + ipu1_ic_prpenc: Registered ipu1_ic_prpenc capture as /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 + The following example configures unprocessed video capture pipeline to capture from the OV5640, transmitting on MIPI CSI-2 virtual channel 0: @@ -690,6 +712,26 @@ Streaming can then begin on "ipu1_csi0 capture" node. The v4l2-ctl tool can be used to select any supported YUV or RGB pixelformat on the capture device node. +In order to determine what is the /dev/video node correspondent to "ipu1_csi0": + +.. code-block:: none + + # dmesg | grep ipu1_csi0 | grep Registered + ipu1_csi0: Registered ipu1_csi0 capture as /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 Known Issues ------------