From patchwork Mon Oct 14 13:54:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11188755 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 16E3814DB for ; Mon, 14 Oct 2019 13:54:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB61621882 for ; Mon, 14 Oct 2019 13:54:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VeDBW7H3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732072AbfJNNye (ORCPT ); Mon, 14 Oct 2019 09:54:34 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:44017 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730477AbfJNNye (ORCPT ); Mon, 14 Oct 2019 09:54:34 -0400 Received: by mail-qt1-f195.google.com with SMTP id t20so20186636qtr.10 for ; Mon, 14 Oct 2019 06:54:33 -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=LzVXaohTRKLDsK6yEtEyY1yfr/FV+08hT78+N320IhY=; b=VeDBW7H3rA+QUQNsLpin5MN/bZ5NHkNp1SFcSTg13Mldl1emArJpYztJLe6hiUMoyN frhMDBjPe939IETYV9tuFddXidx6Oo1m0Duujrzcj8X1H0M9xqNoZ8C7BRw+u9riteAr e04ZwJSjT0jL+2GwO2S0LOZWiXHbgdvas4y1c9FGzdDx/myZ8alQCjL0h+XQLD/dydQc yEMYxA6v2vAzGxHyJeE7WyNIjoj3ZLTfNQyzAeIuKJjhGorHcgGkzPxJnzrzD9UluzIj bVSRptOyoxmBBofurVq53geLMHw7n6v75tzlwF+TSeexUgT0JN1Hz9HvQD3Kwvpp/sFy Da9g== 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=LzVXaohTRKLDsK6yEtEyY1yfr/FV+08hT78+N320IhY=; b=tNgw6pKiBKzzDX6RBRUCyllMU8jZdiQk+RTX3LpZIFC9KJkRg1mZjcbbR0d54901et BYTaM5CrSmvrdY77mpLPLdwxFksMqPGisq3p/dbyxVGUVHOVBuMlERwAnjRfXd0sCk2L e3a8dVUpJoKvgcVoPmG6EFfDAy4TarxLfbchjAKR7xAFPtDN/qlSYxAVeVwD1vLb7KYl N6CmKZ36H9Hh5OV8Ssso89ieY5ZrtnQ2tuLHq8c0vLTG1kNaAlQd3JB9qoeZVVkBkXJO nV+5on5rnILMQqYQolmijjdHWwxIXCRykcMKG6RE5c+vAUUTWpHom0sdbg88WmKn7+f+ +UuQ== X-Gm-Message-State: APjAAAX1ZW9QgHHrzTLwgX9q75KDMWOr4hpWDxeyXPH3aY1xYykpxc+N 7xeQofsOjO1LLo2IBMfd5HFdyvQ2GQk= X-Google-Smtp-Source: APXvYqwKTSE/Y0Dp+86TNF/CAeK1vRCR2mmKcBvAs22WOQcQy1rmD2Cs7py1mgYzpJl7LE+Apgb4AQ== X-Received: by 2002:ac8:1e89:: with SMTP id c9mr33224504qtm.226.1571061273081; Mon, 14 Oct 2019 06:54:33 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:99::1]) by smtp.gmail.com with ESMTPSA id n21sm8501666qka.83.2019.10.14.06.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 06:54:32 -0700 (PDT) From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: mchehab@kernel.org, p.zabel@pengutronix.de, slongerbeam@gmail.com, tharvey@gateworks.com, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v2 1/3] media: imx.rst: Specify the sabreauto variant Date: Mon, 14 Oct 2019 10:54:22 -0300 Message-Id: <20191014135424.7000-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 Improve the documentation by specifying that the instructions are related to the i.MX6Q sabreauto variant. This avoids confusion if someone follows these steps on a i.MX6DL sabreauto, which has different numbering on the I2C bus and I2C muxes. Signed-off-by: Fabio Estevam Acked-by: Steve Longerbeam --- Changes since v1: - New patch Documentation/media/v4l-drivers/imx.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 1d7eb8c7bd5c..3d72e411b93d 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -515,10 +515,10 @@ Streaming can then begin independently on the capture device nodes be used to select any supported YUV pixelformat on the capture device nodes, including planar. -SabreAuto with ADV7180 decoder ------------------------------- +i.MX6Q SabreAuto with ADV7180 decoder +------------------------------------- -On the SabreAuto, an on-board ADV7180 SD decoder is connected to the +On the i.MX6Q SabreAuto, an on-board ADV7180 SD decoder is connected to the parallel bus input on the internal video mux to IPU1 CSI0. The following example configures a pipeline to capture from the ADV7180 From patchwork Mon Oct 14 13:54:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11188757 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 A1C5814DB for ; Mon, 14 Oct 2019 13:54:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8255921882 for ; Mon, 14 Oct 2019 13:54:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pk/b2fow" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732166AbfJNNyi (ORCPT ); Mon, 14 Oct 2019 09:54:38 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:46490 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730477AbfJNNyh (ORCPT ); Mon, 14 Oct 2019 09:54:37 -0400 Received: by mail-qk1-f195.google.com with SMTP id 201so15912769qkd.13 for ; Mon, 14 Oct 2019 06:54:37 -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=JeTCgLHc+ukJBcflVyUC0D1v6F9HtoL+KQcpGeRi07U=; b=pk/b2fowOWTb+Kc3fYaYAmKISr7NXetcPyz8+BJUvLltmVbCnZ2hf0I+FaAktabmPz RI1FYr6U7YtE5SytE6aUChbO1+wWMmDe2vXDfc3JKFCiadeHThhno1nsnf/986KqYans BRGzC3X8VFkErLr2DyPemLYFdgnJKCqbB5vilsoDb/9BKPIQ9n/vqjEZ9NXjFw1f0FPi 0ERZ5Z6uMpuRsB1Qfh1b+4JQPUQ7VPQFhL8j65iYts4j9QHb/dWqjmV5vnQFqkmsn3/e oU0aoRdcvNYlQlw+qTbAFPTF66SURosYE2q0SR1l9NecSZtNTcAlb/FX9BJjLd/5Q9KZ NtPQ== 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=JeTCgLHc+ukJBcflVyUC0D1v6F9HtoL+KQcpGeRi07U=; b=CKXBs8Q55MrFIrWsHvTQZIgcZSwqB2k/bPqY5a6/3GMHtuxRwZhxcf5kHjQam6P0A7 gb7A59H+Xf0tkfPgO5h/IMjGT5KmyO8DWdGJoCGgTDhP/Z/TtocSOcxCR/b4ZHQI2jhG W4FHHIYaSUKWTUU8R8KkkpoF5SN5GyGUxLv3rqYLtw8Mx1BVuDgh2+zq5I2oGMieJBPx xxGK4xyEJo9C5gAaeHWNmUmisJ8dl3Nf6OarSHrKyUUVYoznTxLwgetf2KhfBTFKcDgT oGesyLcfQSx+B7zf7wTgflTGUQUuVzRdfxbJt+l1YBVcWVf7hiXi0znOXayOn0nxHbZk Rfvw== X-Gm-Message-State: APjAAAX82FfviwEuGSlaWVlJKr4TLqEwBbdIBvfr1L5nGKdWFNrR2RG8 CMmSuhYOny54KzTVAs/GuKU= X-Google-Smtp-Source: APXvYqwiqZXncyCgyW0kQXb4214/b7KfzRiiD1Y0jq6oHw68x067slnYXo7WUOapzudMY5jjQRsM/w== X-Received: by 2002:a05:620a:2158:: with SMTP id m24mr30262112qkm.250.1571061276654; Mon, 14 Oct 2019 06:54:36 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:99::1]) by smtp.gmail.com with ESMTPSA id n21sm8501666qka.83.2019.10.14.06.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 06:54:35 -0700 (PDT) From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: mchehab@kernel.org, p.zabel@pengutronix.de, slongerbeam@gmail.com, tharvey@gateworks.com, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v2 2/3] media: imx.rst: Provide a real example for the output format Date: Mon, 14 Oct 2019 10:54:23 -0300 Message-Id: <20191014135424.7000-2-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191014135424.7000-1-festevam@gmail.com> References: <20191014135424.7000-1-festevam@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org In the i.MX6Q sabreauto pipeline example, it is better to provide a real example for the output format, so do it just like in the previous lines for consistency. Signed-off-by: Fabio Estevam --- Changes since v1: - Make this change as part of a single patch Documentation/media/v4l-drivers/imx.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 3d72e411b93d..36e8d1226ac6 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -547,8 +547,6 @@ This example configures a pipeline to capture from the ADV7180 video decoder, assuming PAL 720x576 input signals, with Motion Compensated de-interlacing. The adv7180 must output sequential or alternating fields (field type 'seq-tb' for PAL, or 'alternate'). -$outputfmt can be any format supported by the ipu1_ic_prpvf entity -at its output pad: .. code-block:: none @@ -565,7 +563,7 @@ at its output pad: media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/720x576]" media-ctl -V "'ipu1_vdic':2 [fmt:AYUV32/720x576 field:none]" media-ctl -V "'ipu1_ic_prp':2 [fmt:AYUV32/720x576 field:none]" - media-ctl -V "'ipu1_ic_prpvf':1 [fmt:$outputfmt field:none]" + media-ctl -V "'ipu1_ic_prpvf':1 [fmt:AYUV32/720x576 field:none]" Streaming can then begin on the capture device node at "ipu1_ic_prpvf capture". The v4l2-ctl tool can be used to select any From patchwork Mon Oct 14 13:54:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 11188759 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 CE98C1575 for ; Mon, 14 Oct 2019 13:54:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFE1921848 for ; Mon, 14 Oct 2019 13:54:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k0wnBOlj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732256AbfJNNyl (ORCPT ); Mon, 14 Oct 2019 09:54:41 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40277 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730477AbfJNNyl (ORCPT ); Mon, 14 Oct 2019 09:54:41 -0400 Received: by mail-qk1-f193.google.com with SMTP id y144so15924376qkb.7 for ; Mon, 14 Oct 2019 06:54:40 -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=U0Y58GrMRaAQDRiooAdhhEXG+M9ftr3ukVNIPw83erI=; b=k0wnBOljNKAf693rVFR4hRwRgjltbyMJ2YQrF0no6zmN/ct/Pfcyg5jMu+ByvD0bOv 9X3uOjIp8CSPDSPAQVeHOAMVTiusrk4CKmQi2Wc3uD2bSU/aCNscTAkDfakgyw2h4c80 OvZjYhYEXRte01vItrZl70mniqQsAqS929dPKEzVtX6fyJAqyoHRXmbULoguXx3JSn2P pmHFTOP8twkcSAczw6/k/nHeO6x3BK77Ic7OlEHe9KTToWcGVaAGbyYFWl10U8U3NSRb 8TPE4vFDjfWW3LdN/KGnFqYsw8PjcfR6Ih9gGoenCSIRAxIxk3J7FKb6R6tzEoyCzbSY 9XfA== 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=U0Y58GrMRaAQDRiooAdhhEXG+M9ftr3ukVNIPw83erI=; b=A2mvdlaCqJF1eyRGgDdKiefID20hkLY7QwLnZXBRCngAr9o9rx/F55w/tJ1yWnWGGd JEbACwKw9DDGIUxyd1qt2qnvkIoY9D4PGWIAXk9tsu9+poU8sdWTV7KuH4M64blNG5f7 gdh/YmReQBg5vOz4u35lTtJxbn7AKOTjQUtPH1JaBmiUvNOQBjE3jiypsr4Lp5D2GKpZ tixx/7yhpF/S8+tyOlbkF4tVdpsQtq1HK1ntloAkZk7Ews8SwM4C7JRwSTBCVcYSN68F cBjF6u2c0vCbvM7mJxKaHq1910dlW59aCDoh0Pe/UoKNCs71U08PRLHds2DNdQmRTSHX PobQ== X-Gm-Message-State: APjAAAU4halFEG1zERwxjInEDN4ZSyxaLWowO6TAPHxwMUS2lqCBVGjK QNKR1X/YdyrX9xGyduDbfF8cNAcCNyU= X-Google-Smtp-Source: APXvYqzMbgIc2EHk+mqfAcyGP5/aPZ0e6fwfm9r5LOKiZ0cs5kSJR0SgLOJeqjzJ4u2lVm6vqAfCoQ== X-Received: by 2002:a05:620a:101b:: with SMTP id z27mr27036981qkj.365.1571061279928; Mon, 14 Oct 2019 06:54:39 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:99::1]) by smtp.gmail.com with ESMTPSA id n21sm8501666qka.83.2019.10.14.06.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2019 06:54:39 -0700 (PDT) From: Fabio Estevam To: hverkuil-cisco@xs4all.nl Cc: mchehab@kernel.org, p.zabel@pengutronix.de, slongerbeam@gmail.com, tharvey@gateworks.com, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH v2 3/3] media: imx.rst: Provide instructions for the i.MX6DL sabreauto Date: Mon, 14 Oct 2019 10:54:24 -0300 Message-Id: <20191014135424.7000-3-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191014135424.7000-1-festevam@gmail.com> References: <20191014135424.7000-1-festevam@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The i.MX6DL sabreauto has different numbering on the I2C bus and I2C muxes compared to the i.MX6Q as shown in the kernel log below: [ 5.159423] imx-media: ipu1_csi0_mux:5 -> ipu1_csi0:0 [ 5.164618] imx-media: ipu1_csi1_mux:5 -> ipu1_csi1:0 [ 5.169953] imx-media: adv7180 4-0021:0 -> ipu1_csi0_mux:4 To avoid confusion, add an entry that shows how to setup the links and configure the pads that are specific to the i.MX6DL sabreauto. Signed-off-by: Fabio Estevam --- Changes since v1: - Add a new entry for the mx6dl sabreauto Documentation/media/v4l-drivers/imx.rst | 57 +++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/Documentation/media/v4l-drivers/imx.rst b/Documentation/media/v4l-drivers/imx.rst index 36e8d1226ac6..6a9dad8b050b 100644 --- a/Documentation/media/v4l-drivers/imx.rst +++ b/Documentation/media/v4l-drivers/imx.rst @@ -572,6 +572,63 @@ supported YUV or RGB pixelformat on the capture device node. This platform accepts Composite Video analog inputs to the ADV7180 on Ain1 (connector J42). +i.MX6DL SabreAuto with ADV7180 decoder +-------------------------------------- + +On the i.MX6DL SabreAuto, an on-board ADV7180 SD decoder is connected to the +parallel bus input on the internal video mux to IPU1 CSI0. + +The following example configures a pipeline to capture from the ADV7180 +video decoder, assuming NTSC 720x480 input signals, using simple +interweave (unconverted and without motion compensation). The adv7180 +must output sequential or alternating fields (field type 'seq-bt' for +NTSC, or 'alternate'): + +.. code-block:: none + + # Setup links + media-ctl -l "'adv7180 4-0021':0 -> 'ipu1_csi0_mux':4[1]" + media-ctl -l "'ipu1_csi0_mux':5 -> 'ipu1_csi0':0[1]" + media-ctl -l "'ipu1_csi0':2 -> 'ipu1_csi0 capture':0[1]" + # Configure pads + media-ctl -V "'adv7180 4-0021':0 [fmt:UYVY2X8/720x480 field:seq-bt]" + media-ctl -V "'ipu1_csi0_mux':5 [fmt:UYVY2X8/720x480]" + media-ctl -V "'ipu1_csi0':2 [fmt:AYUV32/720x480]" + # Configure "ipu1_csi0 capture" interface (assumed at /dev/video4) + v4l2-ctl -d4 --set-fmt-video=field=interlaced_bt + +Streaming can then begin on /dev/video4. The v4l2-ctl tool can also be +used to select any supported YUV pixelformat on /dev/video4. + +This example configures a pipeline to capture from the ADV7180 +video decoder, assuming PAL 720x576 input signals, with Motion +Compensated de-interlacing. The adv7180 must output sequential or +alternating fields (field type 'seq-tb' for PAL, or 'alternate'). + +.. code-block:: none + + # Setup links + media-ctl -l "'adv7180 4-0021':0 -> 'ipu1_csi0_mux':4[1]" + media-ctl -l "'ipu1_csi0_mux':5 -> 'ipu1_csi0':0[1]" + media-ctl -l "'ipu1_csi0':1 -> 'ipu1_vdic':0[1]" + media-ctl -l "'ipu1_vdic':2 -> 'ipu1_ic_prp':0[1]" + media-ctl -l "'ipu1_ic_prp':2 -> 'ipu1_ic_prpvf':0[1]" + media-ctl -l "'ipu1_ic_prpvf':1 -> 'ipu1_ic_prpvf capture':0[1]" + # Configure pads + media-ctl -V "'adv7180 3-0021':0 [fmt:UYVY2X8/720x576 field:seq-tb]" + media-ctl -V "'ipu1_csi0_mux':2 [fmt:UYVY2X8/720x576]" + media-ctl -V "'ipu1_csi0':1 [fmt:AYUV32/720x576]" + media-ctl -V "'ipu1_vdic':2 [fmt:AYUV32/720x576 field:none]" + media-ctl -V "'ipu1_ic_prp':2 [fmt:AYUV32/720x576 field:none]" + media-ctl -V "'ipu1_ic_prpvf':1 [fmt:AYUV32/720x576 field:none]" + +Streaming can then begin on the capture device node at +"ipu1_ic_prpvf capture". The v4l2-ctl tool can be used to select any +supported YUV or RGB pixelformat on the capture device node. + +This platform accepts Composite Video analog inputs to the ADV7180 on +Ain1 (connector J42). + SabreSD with MIPI CSI-2 OV5640 ------------------------------