Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3173380imm; Sun, 13 May 2018 05:59:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoKp7w67YCrBfZI7RcINvLSCurwhsCUMD1Ncb/L05TEoD3uZXOu4l4oMhgjgNibJj6rv68B X-Received: by 2002:a17:902:6a89:: with SMTP id n9-v6mr5907044plk.41.1526216340095; Sun, 13 May 2018 05:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526216340; cv=none; d=google.com; s=arc-20160816; b=RImp/6KaF06jTo5Pk+g11Tdx8EYmzfWnZXdRMo2iC6pWbInjp8UP+m8zvIBdiFRvFa Bj4j/WKUk1dQhOw0NPa5F4++avS5ioLDPL8H4Ayu0UP1KgHY5uSUpJivi960lBVvD/Dq DHIU9bQDYPbHvrOS7Tj59osS0NGSyXiVw5v+s3YutdOiCyUtLuLY93hla2hLa3jueYqf XvVn+uq93mNxBIfsWFA0/gaxz8NF/6TPWj21GIo8SnE9DimJd0SESvy8foQ9dBGK5tH/ XzmujelHlCQUzdS3fC9Fs1sr/VeGrq8iikE4fxnWbOhU+bmSG36ukOyrG+kaj6T/UJ6s li5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=vUBTnod/wm9dn91OuQsxGj2+JEQ8bllRc4qeMtzdh6M=; b=a1VJ9L6dtoqYdhMVOtYkJ/e+ggDeDx+6eAuvjmWr5KerQsdsIgShXSHJrb77PaP23m Mkgatp2B+ZfRboxt3FLtBwDv/TsJxhmOZea/g6MW667uhnXHuYYPYWOlf6OSWFST39xp Z/pf02PoxJnPVdJFbvPNWBhv9sheyjtrdRi+IDNeKB6PYVwqyi6Ra0bJ5k5nEhZWKsdm ZJs++UhdDi4RQl8B+jtTJkf8RrdX8bwNG5LQQG3FfUTtTIk8rAPn9NPxp95LNxMWeDDI B2cVAlewBALDKDZJEnGL7SuaXsyJtiSkiJ5VTpoPG8vOmgAgchCq/RmmreCQUXuiMLur 9Tcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=jc8DNjLe; 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 bh5-v6si6858237plb.320.2018.05.13.05.58.15; Sun, 13 May 2018 05:59:00 -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 header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=jc8DNjLe; 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 S1751357AbeEMM6E (ORCPT + 99 others); Sun, 13 May 2018 08:58:04 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:38557 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbeEMM56 (ORCPT ); Sun, 13 May 2018 08:57:58 -0400 Received: by mail-lf0-f66.google.com with SMTP id z142-v6so14094472lff.5 for ; Sun, 13 May 2018 05:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vUBTnod/wm9dn91OuQsxGj2+JEQ8bllRc4qeMtzdh6M=; b=jc8DNjLejuC4zE+kVHpNcPJjnM5DWpGVqgynAxjB7NmZKurUwy0hIpHnLLSjE6puUU GSJDpdtJh96XJ8p+GSPEVtDcrQEOTBCokOvNH6ITQRdN+4Ygc++3+GytPUTO0fRiTJma XET0sqF84keqQm90kXTN97MxLvx1IXLDs/BZ8uYJV3hNvPNf8ej6/n6CdpGWpgdJQnmo Dt7NtQT87CRAYY+S0fhgJ1FfpyGIlnwtP0CfZjg6mLCAtZ22Zu35BvIp6RBVha8SPj72 TWvpfhJ9AZfYm4kQOabwbKu7AgGM7tqwb76zwcLH3y6yXExbsEYdkAukMmNTB0x3AlCx tNlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=vUBTnod/wm9dn91OuQsxGj2+JEQ8bllRc4qeMtzdh6M=; b=lN8vBAO5hMpWN9J3TBOTNDARJ9BuN7GESlpYZ2HzhjlYipBkncP0M+Iw/1AM5g5i/T rmBPbEbNt9QIalEHv7dV29I+rZPGdBb55tmXL387Ox/F6k1oEe0zbxlp8mlfKkf7sO7T 1VBHeNNQDEowYFXBqSc+ehsiohXAxLSxY7KPKaCN/W5IWBLGLK3t56UW7S3wbCYi7l2y Z/SkraTzbt7AWyh7eS3zU86xa6wdvVX4siGQH1cGRjvfDqspWNZznpcCSO+QQemiY/HG Gwjb0cWvXlTWlIccWmNpMkJufe7O4YkXTZzAQPMqC2k6lQ6Uk0x5egPnFSEmpkor7tq2 qDiA== X-Gm-Message-State: ALKqPwc+7led+WqNu4mv8xjIqo/xPo5nQpzJT12K42RxBHZRK/MEvqH4 7OG/GXOPYvu/vClTtPlmhMqsNA== X-Received: by 2002:a2e:918d:: with SMTP id f13-v6mr2542910ljg.24.1526216276998; Sun, 13 May 2018 05:57:56 -0700 (PDT) Received: from localhost (89-233-230-99.cust.bredband2.com. [89.233.230.99]) by smtp.gmail.com with ESMTPSA id 17-v6sm1401484ljr.17.2018.05.13.05.57.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 May 2018 05:57:55 -0700 (PDT) Date: Sun, 13 May 2018 14:57:55 +0200 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Jacopo Mondi Cc: laurent.pinchart@ideasonboard.com, 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1526032802-14376-4-git-send-email-jacopo+renesas@jmondi.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thanks for your patch. 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. > > Signed-off-by: Jacopo Mondi > --- > arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 68 ++++++++++++++++++++++++++ > 1 file changed, 68 insertions(+) > > 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 @@ > }; > }; > > + hdmi-in { > + compatible = "hdmi-connector"; > + type = "a"; > + > + port { > + hdmi_con_in: endpoint { > + remote-endpoint = <&adv7612_in>; > + }; > + }; > + }; > + > memory@48000000 { > device_type = "memory"; > /* first 128MB is reserved for secure area. */ > @@ -142,6 +153,11 @@ > groups = "usb0"; > function = "usb0"; > }; > + > + vin4_pins: vin4 { > + groups = "vin4_data24", "vin4_sync", "vin4_clk", "vin4_clkenb"; > + function = "vin4"; > + }; > }; > > &i2c0 { > @@ -154,6 +170,35 @@ > reg = <0x50>; > pagesize = <8>; > }; > + > + hdmi-decoder@4c { > + compatible = "adi,adv7612"; > + reg = <0x4c>; > + default-input = <0>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + adv7612_in: endpoint { > + remote-endpoint = <&hdmi_con_in>; > + }; > + }; > + > + port@2 { > + reg = <2>; > + adv7612_out: endpoint { > + pclk-sample = <0>; > + hsync-active = <0>; > + vsync-active = <0>; 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. 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 :-) > + > + remote-endpoint = <&vin4_in>; > + }; > + }; > + }; > + }; > }; > > &i2c1 { > @@ -246,3 +291,26 @@ > timeout-sec = <60>; > status = "okay"; > }; > + > +&vin4 { > + pinctrl-0 = <&vin4_pins>; > + pinctrl-names = "default"; > + > + status = "okay"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + vin4_in: endpoint { > + hsync-active = <0>; > + vsync-active = <0>; Comparing this to the Gen2 bindings some properties are missing, bus-width = <24>; pclk-sample = <1>; data-active = <1>; 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. 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. 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. > + > + remote-endpoint = <&adv7612_out>; > + }; > + }; > + }; > +}; > -- > 2.7.4 > -- Regards, Niklas S?derlund