From patchwork Fri Aug 24 10:24:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10575111 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4CFA6921 for ; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D5E02C313 for ; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 312F02C477; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6A672C313 for ; Fri, 24 Aug 2018 10:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726462AbeHXN6d (ORCPT ); Fri, 24 Aug 2018 09:58:33 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:43585 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbeHXN6d (ORCPT ); Fri, 24 Aug 2018 09:58:33 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 63D1FFF803; Fri, 24 Aug 2018 10:24:32 +0000 (UTC) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 1/4] vin-tests: Add support for D3 Draak Date: Fri, 24 Aug 2018 12:24:19 +0200 Message-Id: <1535106262-13004-2-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> References: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for D3 Draak board. Draak has its HDMI input connected to an ADV7612 which connects to VIN4 parallel data inputs. Signed-off-by: Jacopo Mondi --- scripts/boards.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/boards.sh b/scripts/boards.sh index 26fdab9..7eb3a27 100644 --- a/scripts/boards.sh +++ b/scripts/boards.sh @@ -29,6 +29,13 @@ case $info in # for V3M, but results in an image. parallelformat="YUYV8_1X16" ;; + "Renesas Draak board based on r8a77995") + gen="gen3" + vins="4" + parallelname="adv7612 0-004c" + # FIXME: This is a hackfor D3, but results in an image. + parallelformat="YUYV8_1X16" + ;; "Koelsch") gen="gen2" @@ -70,6 +77,8 @@ if [[ "$gen" == "gen3" ]]; then txaname="adv748x 0-0070 txa" txbname="adv748x 0-0070 txb" + elif [[ "$info" == "Renesas Draak board based on r8a77995" ]]; then + hdminame="adv7612 0-004c" else cvbsname="adv748x 4-0070 afe" hdminame="adv748x 4-0070 hdmi" From patchwork Fri Aug 24 10:24:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10575113 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7B9E14BD for ; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C87432C313 for ; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCCB72C477; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74F192C313 for ; Fri, 24 Aug 2018 10:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbeHXN6d (ORCPT ); Fri, 24 Aug 2018 09:58:33 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:49215 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbeHXN6d (ORCPT ); Fri, 24 Aug 2018 09:58:33 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id B3575FF80A; Fri, 24 Aug 2018 10:24:33 +0000 (UTC) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 2/4] vin-tests: Fix vdev name in propagate_parallel Date: Fri, 24 Aug 2018 12:24:20 +0200 Message-Id: <1535106262-13004-3-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> References: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The $vdev variable was not defined in propagate_parallel() function. Signed-off-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- scripts/vin-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/vin-tests.sh b/scripts/vin-tests.sh index ebb1477..0c5b29a 100644 --- a/scripts/vin-tests.sh +++ b/scripts/vin-tests.sh @@ -83,6 +83,7 @@ mc_propagate_cvbs() { } mc_propagate_parallel() { + vin="$1" mdev=$(mc_get_mdev) cam="'$parallelname':1" From patchwork Fri Aug 24 10:24:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10575115 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 109C8112E for ; Fri, 24 Aug 2018 10:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00FE12C313 for ; Fri, 24 Aug 2018 10:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E96AF2C477; Fri, 24 Aug 2018 10:24:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 92E6B2C313 for ; Fri, 24 Aug 2018 10:24:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbeHXN6f (ORCPT ); Fri, 24 Aug 2018 09:58:35 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:53871 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726529AbeHXN6e (ORCPT ); Fri, 24 Aug 2018 09:58:34 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 6BAACFF809; Fri, 24 Aug 2018 10:24:34 +0000 (UTC) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 3/4] vin-tests: Add capture format for parallel input Date: Fri, 24 Aug 2018 12:24:21 +0200 Message-Id: <1535106262-13004-4-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> References: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add configurable capture format to propagate_parallel() function. The capture format is the image format set on the VIN nodes. Signed-off-by: Jacopo Mondi --- scripts/boards.sh | 2 ++ scripts/vin-tests.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/boards.sh b/scripts/boards.sh index 7eb3a27..b379af6 100644 --- a/scripts/boards.sh +++ b/scripts/boards.sh @@ -28,6 +28,7 @@ case $info in # FIXME: This is a hack and not the correct mbus format # for V3M, but results in an image. parallelformat="YUYV8_1X16" + parallel_captureformat="RGB565" ;; "Renesas Draak board based on r8a77995") gen="gen3" @@ -35,6 +36,7 @@ case $info in parallelname="adv7612 0-004c" # FIXME: This is a hackfor D3, but results in an image. parallelformat="YUYV8_1X16" + parallel_captureformat="RGB565" ;; "Koelsch") gen="gen2" diff --git a/scripts/vin-tests.sh b/scripts/vin-tests.sh index 0c5b29a..e7b7a48 100644 --- a/scripts/vin-tests.sh +++ b/scripts/vin-tests.sh @@ -111,5 +111,5 @@ mc_propagate_parallel() { echo "format: $format size: $size/$vinsize field: $field/$vinfield vdev: $vdev" $mediactl -d $mdev -V "$cam [fmt:$format/$size field:$field]" - yavta -f RGB565 -s $vinsize --field $vinfield $vdev + yavta -f $parallel_captureformat -s $vinsize --field $vinfield $vdev } From patchwork Fri Aug 24 10:24:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10575117 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F98D14BD for ; Fri, 24 Aug 2018 10:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9164E2C313 for ; Fri, 24 Aug 2018 10:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 85D822C34C; Fri, 24 Aug 2018 10:24:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03F942C4A7 for ; Fri, 24 Aug 2018 10:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726529AbeHXN6f (ORCPT ); Fri, 24 Aug 2018 09:58:35 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:49215 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbeHXN6f (ORCPT ); Fri, 24 Aug 2018 09:58:35 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 221D6FF80F; Fri, 24 Aug 2018 10:24:34 +0000 (UTC) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 4/4] vin-tests: yavta-hdmi: Add VIN4 and parallel link Date: Fri, 24 Aug 2018 12:24:22 +0200 Message-Id: <1535106262-13004-5-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> References: <1535106262-13004-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for VIN4 to yavta-hdmi and check if format propagation should go through 'mc_propagate_parallel()' if the HDMI receiver chip is an ADV7612 one. Signed-off-by: Jacopo Mondi --- yavta-hdmi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/yavta-hdmi b/yavta-hdmi index fdec546..2e3b625 100755 --- a/yavta-hdmi +++ b/yavta-hdmi @@ -33,14 +33,23 @@ case $vc in dev=/dev/$vin3 csipad=4 ;; + 4) + vinname=$vinname4 + dev=/dev/$vin4 + ;; *) echo "Unkown VC '$vc'" exit 1 esac mc_reset -mc_set_link "$csi40name" $csipad "$vinname" 1 -mc_propagate_format "$hdminame" 1 "$txaname" 0 "$csi40name" $csipad "$vinname" +if [[ "$hdminame" == "adv7612 0-004c" ]]; then + mc_set_link "$hdminame" 1 "$vinname" 1 + mc_propagate_parallel "$vinname" +else + mc_set_link "$csi40name" $csipad "$vinname" 1 + mc_propagate_format "$hdminame" 1 "$txaname" 0 "$csi40name" $csipad "$vinname" +fi out=/tmp/vin-tests rm -fr $out