Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1881768imu; Sat, 8 Dec 2018 09:09:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/UheqJ9lTGEMhrLBmIKikNFti8M0ZlZtjaulgGyzktQa4XZU17gWMXCtu3ss32b9z0FEwQd X-Received: by 2002:a17:902:e20b:: with SMTP id ce11mr6044917plb.251.1544288959237; Sat, 08 Dec 2018 09:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544288959; cv=none; d=google.com; s=arc-20160816; b=ubbUrAJqsajM002Ejpy0bYkpPUT7U6Pb3c5DuhZ2ShnUs8KuZ7CFlzkjyLa6Klu/pY gyWwTL8yeDWoAo7eoCc5vA2OOKs1lupIqmBdc72adVKyqBITAY6VkcDpM7KIF1AtjzlW lKg4R5VYQKk8zKyZtXU0unK3VYmAfDr0eUa0SLUNZqUvZcH3vglFziltwEDkllFR3n0b fpTSh4qjLXXMW5VSy9+7t9S+WaOAqbpyXx9SMWGGe3OngZeWxB+j2M7FkkIqMG8l+zD7 KbsxpTXxmvrp4cMWxN/XpY2XO0p+tDZG8W/vrBr+NnIbapwVtLlosS/Uklx7vFKEmQXS FUHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yxYRRpCF74Ms1Snmk+74VUqKHf7uHCQGnyg34xMkG5U=; b=fd5y/RdGetJc2Zxrj8vvg88R+UGgLBO7UFuMkK4amj26X7C6YgdwzUIp2mswfoFhC+ 2qkbaxLV+Ysa7WAQpsD4OjhXgGGXKiiAqjNVNZkCK4vMFDaqhgjIdIKSTeYzc83PdosI KYYnX3rlxPRww6eK8TBBYT6Ejn+M8jp0OnSzSYlHaTEBi7sZwVt77Gmfsz2wAZSjNSnl 6xp75pdNPISo3l5PZHtebxqtCRotxFr8YosWBd0uRF+cYeuNWB6fwjsgpEqL5uahIMQx atAruKTUeU79oD1TFidZsp8DKo5ziFuwSpg/ToSNA79LA2CGnpE5GRm4I98kPuk8FvI3 aZZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3dOzOhJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si5353234pgr.396.2018.12.08.09.09.03; Sat, 08 Dec 2018 09:09:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=K3dOzOhJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726193AbeLHRHT (ORCPT + 99 others); Sat, 8 Dec 2018 12:07:19 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:51873 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726159AbeLHRHT (ORCPT ); Sat, 8 Dec 2018 12:07:19 -0500 Received: by mail-wm1-f52.google.com with SMTP id s14so7137284wmh.1 for ; Sat, 08 Dec 2018 09:07:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yxYRRpCF74Ms1Snmk+74VUqKHf7uHCQGnyg34xMkG5U=; b=K3dOzOhJxrtM+T6vVpvmsfwcfK+TAMDLrsnGNOTR1uFBBwJbjGJiN5gYI9nKfqh6d1 VcWbweIuggIFql9Jr228Ut5mHB0EdgSXvspuL15M2/GCuMxPGLl7ON6n7aA0bdIXYCeU qq/6FFl5beAWBrOlxw3AXOjfDZN1zj0+zm38Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yxYRRpCF74Ms1Snmk+74VUqKHf7uHCQGnyg34xMkG5U=; b=lLQsYnG3FB2DAUWoPtq2altwyLf5zEWRgY7A3Llg22+bTLU7GdTDBFyPKAFfuy0QSd gptD0VY+NnGrVJDUCKTQprHJ9MY4waqDQ3ymuiJ0o3z3tYzNKon3sQ1qXaJvBENdl+IC VruLlDP/C2YOfDUA134f+KLBfEQlelEwBJ4Zb3q6ZrqOHiVNhXmlx/CFMobZVKOW1I4Z rqmIQGut5cTS+uxEAngj1YFtax2oPFo8b3npsMWEpNGi4Ri35w8wnF+HP8MFeJZIKZyq NubbHcPYyQV3SwjadwzaxVHHocq1iwM0XryeDJnbqgRbDop+3/M2orMxf6mivAn9xLR3 Od3Q== X-Gm-Message-State: AA+aEWZzYTKT942hj7PG3xU5ua7U3iLcxZUJU32PIo1D4gzOo9EGPzag oEa5YphlHKVqhBXTBiNp4UhfwqeCFtVR0pR13a2enA== X-Received: by 2002:a1c:b456:: with SMTP id d83mr5906249wmf.115.1544288836919; Sat, 08 Dec 2018 09:07:16 -0800 (PST) MIME-Version: 1.0 References: <850c2502-217c-a9f0-b433-0cd26d0419fd@xs4all.nl> In-Reply-To: From: Michael Nazzareno Trimarchi Date: Sat, 8 Dec 2018 18:07:04 +0100 Message-ID: Subject: Re: Configure video PAL decoder into media pipeline To: hverkuil@xs4all.nl Cc: Jagan Teki , mchehab@kernel.org, linux-media@vger.kernel.org, LKML , Lars-Peter Clausen , Philipp Zabel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Down you have my tentative of connection I need to hack a bit to have tuner registered. I'm using imx-media On Sat, Dec 8, 2018 at 12:48 PM Michael Nazzareno Trimarchi wrote: > > Hi > > On Fri, Dec 7, 2018 at 1:11 PM Hans Verkuil wrote: > > > > On 12/07/2018 12:51 PM, Jagan Teki wrote: > > > Hi, > > > > > > We have some unconventional setup for parallel CSI design where analog > > > input data is converted into to digital composite using PAL decoder > > > and it feed to adv7180, camera sensor. > > > > > > Analog input => Video PAL Decoder => ADV7180 => IPU-CSI0 > > > > Just PAL? No NTSC support? > > > For now does not matter. I have registere the TUNER that support it > but seems that media-ctl is not suppose to work with the MEDIA_ENT_F_TUNER > > Is this correct? > > > > > > > The PAL decoder is I2C based, tda9885 chip. We setup it up via dt > > > bindings and the chip is > > > detected fine. > > > > > > But we need to know, is this to be part of media control subdev > > > pipeline? so-that we can configure pads, links like what we do on > > > conventional pipeline or it should not to be part of media pipeline? > > > > Yes, I would say it should be part of the pipeline. > > > > Ok I have created a draft patch to add the adv some new endpoint but > is sufficient to declare tuner type in media control? > > Michael > > > > > > > Please advise for best possible way to fit this into the design. > > > > > > Another observation is since the IPU has more than one sink, source > > > pads, we source or sink the other components on the pipeline but look > > > like the same thing seems not possible with adv7180 since if has only > > > one pad. If it has only one pad sourcing to adv7180 from tda9885 seems > > > not possible, If I'm not mistaken. > > > > Correct, in all cases where the adv7180 is used it is directly connected > > to the video input connector on a board. > > > > So to support this the adv7180 driver should be modified to add an input pad > > so you can connect the decoder. It will be needed at some point anyway once > > we add support for connector entities. > > > > Regards, > > > > Hans > > > > > > > > I tried to look for similar design in mainline, but I couldn't find > > > it. is there any design similar to this in mainline? > > > > > > Please let us know if anyone has any suggestions on this. > > > [ 3.379129] imx-media: ipu1_vdic:2 -> ipu1_ic_prp:0 [ 3.384262] imx-media: ipu2_vdic:2 -> ipu2_ic_prp:0 [ 3.389217] imx-media: ipu1_ic_prp:1 -> ipu1_ic_prpenc:0 [ 3.394616] imx-media: ipu1_ic_prp:2 -> ipu1_ic_prpvf:0 [ 3.399867] imx-media: ipu2_ic_prp:1 -> ipu2_ic_prpenc:0 [ 3.405289] imx-media: ipu2_ic_prp:2 -> ipu2_ic_prpvf:0 [ 3.410552] imx-media: ipu1_csi0:1 -> ipu1_ic_prp:0 [ 3.415502] imx-media: ipu1_csi0:1 -> ipu1_vdic:0 [ 3.420305] imx-media: ipu1_csi0_mux:5 -> ipu1_csi0:0 [ 3.425427] imx-media: ipu1_csi1:1 -> ipu1_ic_prp:0 [ 3.430328] imx-media: ipu1_csi1:1 -> ipu1_vdic:0 [ 3.435142] imx-media: ipu1_csi1_mux:5 -> ipu1_csi1:0 [ 3.440321] imx-media: adv7180 2-0020:1 -> ipu1_csi0_mux:4 with tuner: tuner@43 { compatible = "tuner"; reg = <0x43>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_tuner>; ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <1>; tuner_in: endpoint { remote-endpoint = <&tuner_out>; }; }; }; }; adv7180: camera@20 { compatible = "adi,adv7180"; reg = <0x20>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_adv7180>; powerdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; /* PDEC_PWRDN */ ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <1>; adv7180_to_ipu1_csi0_mux: endpoint { remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>; bus-width = <8>; }; }; port@0 { reg = <0>; tuner_out: endpoint { remote-endpoint = <&tuner_in>; }; }; }; }; Any help is appreciate Michael > > > Jagan. > > > > > > > > --