Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3767446imm; Sun, 13 May 2018 19:51:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqqNPlAWD09fedflK+X94XnMu3mvVdxz0vq+yxcc6WwufuNdLC/GCiTobRxEVQ/o5ctoNnk X-Received: by 2002:a63:a51b:: with SMTP id n27-v6mr5419550pgf.47.1526266262810; Sun, 13 May 2018 19:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526266262; cv=none; d=google.com; s=arc-20160816; b=h8MDAMVGn+uOj1NO4iiHPt7IGs9fpZG2vB1Qz9kRFfRtNwd1uoEKK4zmIvxh+Xq9Bw zubpSSTGxJRTsOnkS6rmwOYk5JUbTZcYBHz7w6yFhDLMXUpO7wErYGZ8DCO8DZ33NEI0 iDGCCe83B43gwGgrUTgYeUHJi4Ew6nvxFTqH+cPK7JsKLZvZYN9PzfGdRsxHE2c7fLso EqyZ6qWsKno6K4EEpNXsQps+RyI1WKdaTbheB919dv6P6+1ER5Tq6/BR5XbL4i4Mo0/F icw+sL69VjXjlGt73J5POmcWYccjfoeytojGj1NM4Td8yYn76xzCPOXUYnNLQyawtkFu W0Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=xY+AFD1icNimUgWaTtVxrjdMF3WohT0EaFbzkYJ5CJM=; b=Xe5uI2ENZ/7eDtCMwcoxI3g5UA0WHthaBVZ9A9/88BY5MaS0eswDQKbPJSd4BDJnLW 18qOJsDJAogubksFY+ZjiiqZbAFNL7mRYGAwvZYb1Ij1jCi1TvnVpgG74Iaary+BbOr0 dGZOrJjCJI4F2bh91/HMl2+Qejm2kXN7Q9cLvDLJhWj6+cyN/Clu8Ux349XA1Cl2P+Ax hdcilZZEdXbaP52DLnCDnp6Vb9Ut5ipLp6RVdM+jB1oF/QZs87oRiDeqT+xIKp/KswUp ladXtctIWAzp4a2LSfb0WrdNLJWUNZaFff78gjzMXTXHS+fiI792xNsZtcpb3Weapz21 w3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=h2EQnuOo; 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 o78-v6si8610512pfa.54.2018.05.13.19.50.48; Sun, 13 May 2018 19:51:02 -0700 (PDT) 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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=h2EQnuOo; 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 S1752047AbeENCt2 (ORCPT + 99 others); Sun, 13 May 2018 22:49:28 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:59654 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeENCt0 (ORCPT ); Sun, 13 May 2018 22:49:26 -0400 Received: from avalon.localnet (unknown [210.160.37.165]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6DE631524; Mon, 14 May 2018 04:49:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1526266164; bh=amCw1o7hifEoyYep/89WVwfYTul13lM2vyoQbvpbqHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h2EQnuOoNitFfIGtnKr+a2PV9dw1lpBTym+rnoslHvX+JHzQGH3/7/G3K5+T3uNg6 wIj0XNUbbVqLdlrNr1GsqqY8a8N1IdbK/0wtasf4lt4cPzl9Gi6sxqWC7RG98HwE2s Pg7GTBsLGzNN9qSi5gfKqRGqV9cgbWrByO/Bf/k8= From: Laurent Pinchart To: Niklas =?ISO-8859-1?Q?S=F6derlund?= Cc: Jacopo Mondi , horms@verge.net.au, geert@glider.be, magnus.damm@gmail.com, robh+dt@kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input Date: Mon, 14 May 2018 05:49:41 +0300 Message-ID: <26780153.JLo9OE30iv@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180513125755.GQ18974@bigcity.dyn.berto.se> References: <1526032802-14376-1-git-send-email-jacopo+renesas@jmondi.org> <1526032802-14376-4-git-send-email-jacopo+renesas@jmondi.org> <20180513125755.GQ18974@bigcity.dyn.berto.se> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Sunday, 13 May 2018 15:57:55 EEST Niklas S=F6derlund wrote: > On 2018-05-11 12:00:02 +0200, Jacopo Mondi wrote: > > Describe HDMI input connected to VIN4 interface for R-Car D3 Draak > > development board. > >=20 > > Signed-off-by: Jacopo Mondi > > --- > >=20 > > arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 68 ++++++++++++++++++= +++ > > 1 file changed, 68 insertions(+) > >=20 > > diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts > > b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts index d03f194..e0ce462 > > 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts > > +++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts > > @@ -59,6 +59,17 @@ > >=20 > > }; > > =09 > > }; > >=20 > > + hdmi-in { > > + compatible =3D "hdmi-connector"; > > + type =3D "a"; > > + > > + port { > > + hdmi_con_in: endpoint { > > + remote-endpoint =3D <&adv7612_in>; > > + }; > > + }; > > + }; > > + > >=20 > > memory@48000000 { > > =09 > > device_type =3D "memory"; > > /* first 128MB is reserved for secure area. */ > >=20 > > @@ -142,6 +153,11 @@ > >=20 > > groups =3D "usb0"; > > function =3D "usb0"; > > =09 > > }; > >=20 > > + > > + vin4_pins: vin4 { > > + groups =3D "vin4_data24", "vin4_sync", "vin4_clk", "vin4_clkenb"; > > + function =3D "vin4"; > > + }; > >=20 > > }; > > =20 > > &i2c0 { > >=20 > > @@ -154,6 +170,35 @@ > >=20 > > reg =3D <0x50>; > > pagesize =3D <8>; > > =09 > > }; > >=20 > > + > > + hdmi-decoder@4c { > > + compatible =3D "adi,adv7612"; > > + reg =3D <0x4c>; > > + default-input =3D <0>; > > + > > + ports { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + port@0 { > > + reg =3D <0>; > > + adv7612_in: endpoint { > > + remote-endpoint =3D <&hdmi_con_in>; > > + }; > > + }; > > + > > + port@2 { > > + reg =3D <2>; > > + adv7612_out: endpoint { > > + pclk-sample =3D <0>; > > + hsync-active =3D <0>; > > + vsync-active =3D <0>; >=20 > This differs from the Gen2 DT bindings which is a very similar hardware > setup using the same components. Defining these properties will make the > bus marked as V4L2_MBUS_PARALLEL instead of V4L2_MBUS_BT656. >=20 > This will change how the hardware is configured for capture if the media > bus is in a UYVY format, see VNMC_INF register in rvin_setup(). Maybe > this it not an issue here but still I'm curious to why this differ > between Gen2 and Gen3 :-) >=20 > > + > > + remote-endpoint =3D <&vin4_in>; > > + }; > > + }; > > + }; > > + }; > >=20 > > }; > > =20 > > &i2c1 { > >=20 > > @@ -246,3 +291,26 @@ > >=20 > > timeout-sec =3D <60>; > > status =3D "okay"; > > =20 > > }; > >=20 > > + > > +&vin4 { > > + pinctrl-0 =3D <&vin4_pins>; > > + pinctrl-names =3D "default"; > > + > > + status =3D "okay"; > > + > > + ports { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + port@0 { > > + reg =3D <0>; > > + > > + vin4_in: endpoint { > > + hsync-active =3D <0>; > > + vsync-active =3D <0>; >=20 > Comparing this to the Gen2 bindings some properties are missing, >=20 > bus-width =3D <24>; > pclk-sample =3D <1>; > data-active =3D <1>; >=20 > This is not a big deal as the VIN driver don't use these properties so > no functional change should come of this but still a difference. I think the VIN DT bindings should be updated to explicitly list the endpoi= nt=20 properties that are mandatory, optional, or not allowed. > Over all I'm happy with this change but before I add my tag I would like > to understand why it differs from the Gen2 configuration for the adv7612 > properties. >=20 > Also on a side not it is possible with hardware switches on the board > switch the VIN4 source to a completely different pipeline CVBS connector > -> adv7180 -> VIN4. But I think it's best we keep the HDMI as default as > this seems to be how the boards are shipped. But maybe mentioning this > in the commit message would not hurt if you end-up resending the patch. >=20 > > + > > + remote-endpoint =3D <&adv7612_out>; > > + }; > > + }; > > + }; > > +}; =2D-=20 Regards, Laurent Pinchart