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: 210254 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 0DBD8C2BA1A for ; Wed, 8 Apr 2020 12:31:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C3ED020747 for ; Wed, 8 Apr 2020 12:31:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cIqjvGm2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbgDHMbv (ORCPT ); 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 --- 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: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: 210253 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 AD0E6C2D0EA for ; Wed, 8 Apr 2020 12:31:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76D9720747 for ; Wed, 8 Apr 2020 12:31:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JFWj55x/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728733AbgDHMb5 (ORCPT ); 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 ------------