Received: by 10.213.65.68 with SMTP id h4csp364628imn; Tue, 20 Mar 2018 05:31:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELu5uWmhZ753Twr1lbhWeXphGXPO+0JP0OBwwDkkMeaZKdoOfC7UelIC4GK99PepRi/s7IQD X-Received: by 10.99.163.67 with SMTP id v3mr11688260pgn.298.1521549085060; Tue, 20 Mar 2018 05:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521549085; cv=none; d=google.com; s=arc-20160816; b=r1X150Smre3NMfBt+7hy9LrHQozYDWoLTYwH0uoloq04TlqQ0wClo+CCMVE/BGXdcJ M2zH8UPI/34Df/e194TQiEW8r9k2pOMwYxqgcT5KP1lsg8X/IAfzPTmlEPl6V3Ucev8s OM8W1Hg5wsMcn+Gddr9Gu33dF/9RnoTwUdIJIqliAIZArOgB1agKaqxdkAmUdyS234Mk uFWJl5RRrgs3F1ns6FTYLYguVmxcBzj0BTsQ1x/cOAr/SaIH8Rdi53nKdB7ZedDAGTMT slqLatuo7f7Dkv/LhV/FmjoKQdpGPVFXV5sNuCDNyX52gA44TNbKbYxstvvsNdJrLBJ9 uLsA== 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=zjB88wK2YMRsWebiRjBns3WA1u+hZQH2ecOHxoTe8zg=; b=SgXFFtWQ0Nax+1GiRUfWZVQYicIC6KOp7EybFJt7GYzkbX4BEE1Vy2h6/5qPDk6Aho wcLSqYBoHHJdxrFcKzIsE8Fx1wbkKtV5RYxZQCdK4D0YgZ6Mf+SX1NmoNEj7H2zsI6si Z/BNFHITdBDtAPjYE4HlFEpoe4SjdXEuUgJc6OkxSDGZjZ/LGtTxn4pbCz/eACyEyEH5 1H1RcvamHTGgY8FxW05Kps8jL30MGH5vPhluAO1MK9OjPCPUweReFp9nCJUUAidTC5fM 8eTAj17NJ4Wz6PecrFWEd2bKfXKq1wZwPnelnf4U9FQ+q6D1Vy1n71/d0DKSet5itRaK y5ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=fT1IS7EE; 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 c1-v6si1569998plk.262.2018.03.20.05.31.11; Tue, 20 Mar 2018 05:31:25 -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=fT1IS7EE; 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 S1753285AbeCTM3Q (ORCPT + 99 others); Tue, 20 Mar 2018 08:29:16 -0400 Received: from galahad.ideasonboard.com ([185.26.127.97]:33632 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753158AbeCTM3N (ORCPT ); Tue, 20 Mar 2018 08:29:13 -0400 Received: from avalon.localnet (unknown [IPv6:2a02:2788:664:35f:7f37:41ef:e87f:aea9]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 72C19202DC; Tue, 20 Mar 2018 13:26:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1521548811; bh=XOllrsM7JLazKZyYHJCxUfEJo38maEbv+pjRCit+LyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fT1IS7EE68dS/Y2tT32xzKZpPc08JQxZ/Ak0kURsuGtCe4Q3FXv1gM4fILH9ZhTL7 PJWyYTrCGz4jNdSoCt9YNvgdbyB64pbb4qxHTY2UQC5qgDkqgbrTE2ha9uYao6Uo9W O3c7RC3puAPujIbn8WIUStCZ7x4aXZcBSbwFfIdw= From: Laurent Pinchart To: jacopo mondi Cc: Andrzej Hajda , Jacopo Mondi , architt@codeaurora.org, airlied@linux.ie, horms@verge.net.au, magnus.damm@gmail.com, geert@linux-m68k.org, niklas.soderlund@ragnatech.se, sergei.shtylyov@cogentembedded.com, robh+dt@kernel.org, mark.rutland@arm.com, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder Date: Tue, 20 Mar 2018 14:30:18 +0200 Message-ID: <2298402.U9ahAbaIat@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180314090651.GA16424@w540> References: <1520951425-13843-1-git-send-email-jacopo+renesas@jmondi.org> <20180314090651.GA16424@w540> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, On Wednesday, 14 March 2018 11:06:51 EET jacopo mondi wrote: > Hi Andrzej, > sorry for the mess :( > > On Wed, Mar 14, 2018 at 09:15:42AM +0100, Andrzej Hajda wrote: > > On 13.03.2018 15:30, Jacopo Mondi wrote: > > > Document Thine THC63LVD1024 LVDS decoder device tree bindings. > > > > > > Signed-off-by: Jacopo Mondi > > > --- > > > > > > .../bindings/display/bridge/thine,thc63lvd1024.txt | 63 +++++++++++++++ > > > 1 file changed, 63 insertions(+) > > > create mode 100644 > > > Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.tx > > > t > > > diff --git > > > a/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.t > > > xt > > > b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.t > > > xt new file mode 100644 > > > index 0000000..5b5afcd > > > --- /dev/null > > > +++ > > > b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.t > > > xt @@ -0,0 +1,63 @@ > > > +Thine Electronics THC63LVD1024 LVDS decoder > > > +------------------------------------------- > > > + > > > +The THC63LVD1024 is a dual link LVDS receiver designed to convert LVDS > > > streams +to parallel data outputs. The chip supports single/dual > > > input/output modes, +handling up to two two input LVDS stream and up to > > > two digital CMOS/TTL outputs. + > > > +Required properties: > > > +- compatible: Shall be "thine,thc63lvd1024", > > > + > > > +Optional properties: > > > +- vcc-supply: Power supply for TTL output and digital circuitry > > > +- cvcc-supply: Power supply for TTL CLOCKOUT signal > > > +- lvcc-supply: Power supply for LVDS inputs > > > +- pvcc-supply: Power supply for PLL circuitry > > > > I wonder if it wouldn't be better to make them required (at least VCC) - > > it is closer to reality. > > In cases like our Eagle board, where VCC is directly connected to the > powering rail and not through a controllable regulator, I feel like > making this mandatory requires more effort (not much, I agree, just a > "fixed-regulator" more) with no additional benefits. > > But I understand your point, and I'm open to whatever fits better with > the already existing DRM bridges bindings I still haven't made up my mind on this topic. I like making the VCC power supply mandatory as it is mandatory, but you're right that it creates additional complexity in DT without much added benefit (although it might simplify the driver as bit). In that case I'd make the other supplies mandatory too. I'm tempted to specify a single power supply in DT though, as I'd be quite surprised to see a system with individually controllable supplies for the different power rails (they all use the same voltage), but surprises happen. We've had similar cases in other bindings before (I'm afraid I can't recall which) where Rob was fine having a single supply. Maybe we could apply the same logic with a single vcc supply, and add the other supplies later as optional properties if we ever need to specify them separately ? > > > +- pwnd-gpios: Power down GPIO signal. Active low. > > > > As I said before, specs[1] says about "/PDWN" pin. Is it your typo, or > > different docs? > > I didn't notice the typo in first review, and I thought you were referring > to the initial '/' which I found weird to be part of the gpio name... Then > I now realized I badly typed in "pwnd" in place of "pwdn", which is not > even correct because it has to be "pdwn"... Sorry about this mess, I will > fix in v4 > > > Moreover there are already bindings for THC63LVDM83D with the same > > dichotomy [2]. > > Seems like this is 'wrong' as well.. The chip manual says the pin is > named "pdwn" here too.. > > > Out of curiosity I have googled for "pwnd pin" and it looks like some > > vendors use this form. > > For me both forms are quite misleading: power down signal, active low, > > why they couldn't call it just 'enable, active high'. > > It's not much the actual physical active level that bugs me, but the fact > that the GPIO name defines if it has to be set to "active" or > "inactive" logical state in enable/disable routines that I don't > like.. > > > [1]: http://www.thine.co.jp/files/topics/179_ext_12_0.pdf > > [2]: https://elixir.bootlin.com/linux/v4.16-rc5/source/Documentation/ > > devicetree/bindings/display/bridge/thine,thc63lvdm83d.txt> > > > +- oe-gpios: Output enable GPIO signal. Active high. > > > + > > > +The THC63LVD1024 video port connections are modeled according > > > +to OF graph bindings specified by > > > Documentation/devicetree/bindings/graph.txt > > > + > > > +Required video port nodes: > > > +- Port@0: First LVDS input port > > > +- Port@2: First digital CMOS/TTL parallel output > > > + > > > +Optional video port nodes: > > > +- Port@1: Second LVDS input port > > > +- Port@3: Second digital CMOS/TTL parallel output > > > + > > > +Example: > > > +-------- > > > + > > > + thc63lvd1024: lvds-decoder { > > > + compatible = "thine,thc63lvd1024"; > > > + > > > + vcc-supply = <®_lvds_vcc>; > > > + lvcc-supply = <®_lvds_lvcc>; > > > + > > > + pwdn-gpio = <&gpio4 15 GPIO_ACTIVE_LOW>; > > > > And here another variation :), should be pdwn-gpios. > > Next time it will be "pndw".. Is there a prize if I do insert all > permutations of the same name in a single bindings document? :) > > Will fix this shortly. -- Regards, Laurent Pinchart