Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp401777imm; Mon, 21 May 2018 07:52:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp5JQ74spMHdgKwe+PCIXZWKcqyn8/GZG12DFzS0AT81Fmq7pZPeCrBiOu1LGcXHj6PPK+m X-Received: by 2002:a17:902:8218:: with SMTP id x24-v6mr20752953pln.57.1526914336134; Mon, 21 May 2018 07:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526914336; cv=none; d=google.com; s=arc-20160816; b=TwAB2/VaJ8lAVg9ab78shB6eTJrbRun25OPA9W90sgfWD7LGEO482+k+R/yma471Zi tXQJdxCkfQDBAugEEVWp2h9hRMKxF74xKrXcpGcbZ3p9U8WmaejKwkx352CkowehhI03 Rh+IXTrcxF/PDUt7mu+7ytwBMPD5Dh2AQBxdDedqK22MJF+We3dZSd6KXCatcxHYexlA Zam+KhOlyYlUpevfqFDkMxTRjPD2mC1KVktZmoPWBc4kLaNZy9flBsJUU3X6sAYnfGqE 3UrmuCSvn8vA2qrLOhrnY8iZ7/p11puKiyZjvO7F8srQz5dTpMZ2DHN27g0N5UgXTt7x qNaQ== 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=bZASBfrpn4AGbavSq4zMKrwf27uX1dTnjDDCSa3IPoQ=; b=z5/8pYM9JZsxzaJS+9O/QaTttYpyKS/jVMJZihyKCh+SfsYkBP9tHy3lCK82fMWgjB RKyCflmIPkCJRotFg259bprfAvFH2/ltMGmK0/EmIwb5UaJUAodeejOofNXgwyKcFJbw sy/PCNBj1iV6+qqah4qyWHsjrI/RuTi8N9bYlOIS1DP22fVHzS01Wm0iBjEgMt7fg/d+ hJP94d+lL9uRhca3njiSiLTHUbQxqE3WIuTx5K68hW7NdcopX3QYIu+S+PWmTTrXTOPE REJ4FgNz89rajPnBeumBBYTZNXbL86FfGdv7JnUwTe8ArQzi8Dc93clNdIb/frlb9kzG M1rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=KGANyKje; 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 b19-v6si14271604pfh.358.2018.05.21.07.52.01; Mon, 21 May 2018 07:52:16 -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=KGANyKje; 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 S1752882AbeEUOu3 (ORCPT + 99 others); Mon, 21 May 2018 10:50:29 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:48392 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbeEUOu2 (ORCPT ); Mon, 21 May 2018 10:50:28 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9CC1657; Mon, 21 May 2018 16:50:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1526914226; bh=KdXbjN6LqD3qe20YL3GmyO/CPc7AC8pbs2pcUjymKSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KGANyKjem0t0pfgv8hx6eWeeNvixEtmpGlKn7mi71N1YZgHqRRpVsrSpzQNfmE8bm BzkmXXox8st51u+GHSO0s1OeOrkPcr4YaGF13C7qeASkx1qyqgsHv4gDU2zbFf5XqK cv6E/mJFwjBcuP2eucL1CSQI89mt1/oP2ovqHY7U= From: Laurent Pinchart To: Jacopo Mondi Cc: niklas.soderlund@ragnatech.se, 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 v4 2/3] arm64: dts: renesas: draak: Describe CVBS input Date: Mon, 21 May 2018 17:50:50 +0300 Message-ID: <1958464.yiJe0NDHa3@avalon> Organization: Ideas on Board Oy In-Reply-To: <1526913942-15426-3-git-send-email-jacopo+renesas@jmondi.org> References: <1526913942-15426-1-git-send-email-jacopo+renesas@jmondi.org> <1526913942-15426-3-git-send-email-jacopo+renesas@jmondi.org> 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 Hi Jacopo, Thank you for the patch. On Monday, 21 May 2018 17:45:41 EEST Jacopo Mondi wrote: > Describe CVBS video input through analog video decoder ADV7180 > connected to video input interface VIN4. >=20 > The video input signal path is shared with HDMI video input, and > selected by on-board switches SW-53 and SW-54 with CVBS input selected > by the default switches configuration. >=20 > Signed-off-by: Jacopo Mondi > Reviewed-by: Niklas S=F6derlund Reviewed-by: Laurent Pinchart > --- > v3 -> v4: > - Use 'adi,adv7180cp' compatible string in place of just 'adi,adv7180' > as suggested by Laurent. > - Re-structure CVBS input ports definition according to adv7180cp > bindings: add port@0 for composite input, add port@3 for parallel > video output. > - Change node label to 'composite-in' as in Gose board bindings. >=20 > v2 -> v3: > - Add comment to describe the shared input video path. > - Add my SoB and Niklas' R-b tags. > --- > 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 9d73de8..ad59032 > 100644 > --- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts > +++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts > @@ -59,6 +59,16 @@ > }; > }; >=20 > + composite-in { > + compatible =3D "composite-video-connector"; > + > + port { > + composite_con_in: endpoint { > + remote-endpoint =3D <&adv7180_in>; > + }; > + }; > + }; > + > memory@48000000 { > device_type =3D "memory"; > /* first 128MB is reserved for secure area. */ > @@ -142,6 +152,11 @@ > groups =3D "usb0"; > function =3D "usb0"; > }; > + > + vin4_pins_cvbs: vin4 { > + groups =3D "vin4_data8", "vin4_sync", "vin4_clk"; > + function =3D "vin4"; > + }; > }; >=20 > &i2c0 { > @@ -154,6 +169,39 @@ > reg =3D <0x50>; > pagesize =3D <8>; > }; > + > + composite-in@20 { > + compatible =3D "adi,adv7180cp"; > + reg =3D <0x20>; > + > + port { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + reg =3D <0>; > + adv7180_in: endpoint { > + remote-endpoint =3D <&composite_con_in>; > + }; > + }; > + > + port@3 { > + reg =3D <3>; > + > + /* > + * The VIN4 video input path is shared between > + * CVBS and HDMI inputs through SW[49-53] > + * switches. > + * > + * CVBS is the default selection, link it to > + * VIN4 here. > + */ > + adv7180_out: endpoint { > + remote-endpoint =3D <&vin4_in>; > + }; > + }; > + }; > + }; > }; >=20 > &i2c1 { > @@ -246,3 +294,23 @@ > timeout-sec =3D <60>; > status =3D "okay"; > }; > + > +&vin4 { > + pinctrl-0 =3D <&vin4_pins_cvbs>; > + pinctrl-names =3D "default"; > + > + status =3D "okay"; > + > + ports { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + reg =3D <0>; > + > + vin4_in: endpoint { > + remote-endpoint =3D <&adv7180_out>; > + }; > + }; > + }; > +}; =2D-=20 Regards, Laurent Pinchart