Received: by 10.223.185.111 with SMTP id b44csp90639wrg; Fri, 9 Mar 2018 01:31:32 -0800 (PST) X-Google-Smtp-Source: AG47ELtqnNPO7NQBS/OmHKbiHeEZcSkL9xJswI0Yxerq7LAgB458vxBJ7VxbxhqGbbXje7gKFki7 X-Received: by 10.101.85.2 with SMTP id f2mr24422826pgr.210.1520587892293; Fri, 09 Mar 2018 01:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520587892; cv=none; d=google.com; s=arc-20160816; b=HDnhZktbvXFijXV59rV7sTphxct4E16O5hwuMlIr0dlbH7goWVxZxGFf4NOE+B6GQE SY7Lhy8YfT1hUBF3dyqLiUOq4oMeqT5jBGvJs8t+JDYuK9iEvvEmuaiAjWEw08odBTy1 7L/Iy/eGlXWq4XBiNfsMzsT3O6gyB7wQ/l6+s2otyu8bxqgyKqOOwKaAQhR/3CenKQz9 Yd948cvMlx5yQh2IU4Vf0PetFtBHr1OQt6OxTiS92Om+i1yv/S8KM3PiDjMRTkuzalUH BGEj37z0trtiwqDEdiAy4y1XV41lAY3rfWMuHQrj5r9EO/XQK+Yc98bGutmzcM2K5kvV T9pA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=yE/4AgaQubYGF9VFLjuiqG2kXFEvnWsItf1a5r5TM+I=; b=YFj1lwj4yTfFVrLiOYcMcTcWe7xIQ9gTbj6m+bK72ziBCmyPTsJpGNHBWnuchgHmpA lGHo+6HI1v69jRAzrdXldPhU1NYgFOJ0MaIBeXbP0ry6WObqw3bB9aNne76wdXOcGosI 6r2a98sluOzEc1FoBaR84mo19EbKrE1q1xNPMMLoSCdwnVQ6w+uhDUNuK4sB1ZEGa3bt h6lLocQNA5vkTNZ8BMU3d2RX9QYZe+Tvx65Nua/E9bYbWSR0YLaKsl/RvkLUhsA6puPW LEMhiYJ6/W1Om4glF3m1tNU+wOwNG+H6OiAsafM+zo4+lCIm7g3k81DNp+MyghnX81oM UmpA== ARC-Authentication-Results: i=1; mx.google.com; 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 c4si468637pgt.733.2018.03.09.01.31.17; Fri, 09 Mar 2018 01:31:32 -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; 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 S1751088AbeCIJ3z (ORCPT + 99 others); Fri, 9 Mar 2018 04:29:55 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:60071 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750878AbeCIJ3x (ORCPT ); Fri, 9 Mar 2018 04:29:53 -0500 Received: from w540 (unknown [IPv6:2001:b07:2e0:f265:118d:392:8db8:76a]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id BDD67C5A74; Fri, 9 Mar 2018 10:29:46 +0100 (CET) Date: Fri, 9 Mar 2018 10:29:45 +0100 From: jacopo mondi To: Geert Uytterhoeven Cc: Jacopo Mondi , Archit Taneja , Andrzej Hajda , Laurent Pinchart , David Airlie , Simon Horman , Magnus Damm , Niklas =?utf-8?Q?S=C3=B6derlund?= , Sergei Shtylyov , Rob Herring , Mark Rutland , DRI Development , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Subject: Re: [PATCH 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder Message-ID: <20180309092945.GE14819@w540> References: <1520522643-11756-1-git-send-email-jacopo+renesas@jmondi.org> <1520522643-11756-2-git-send-email-jacopo+renesas@jmondi.org> <20180309090422.GD14819@w540> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Fri, Mar 09, 2018 at 10:22:39AM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Fri, Mar 9, 2018 at 10:04 AM, jacopo mondi wrote: > > On Fri, Mar 09, 2018 at 09:10:55AM +0100, Geert Uytterhoeven wrote: > >> On Thu, Mar 8, 2018 at 4:24 PM, Jacopo Mondi wrote: > >> > Document Thine THC63LVD1024 LVDS decoder. > >> > > >> > Signed-off-by: Jacopo Mondi > >> > >> Thanks for your patch! > >> > >> > --- /dev/null > >> > +++ b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt > >> > @@ -0,0 +1,59 @@ > >> > +THine Electronics THC63LVD1024 LVDS receiver > >> > >> Thine > >> > >> > +-------------------------------------------- > >> > + > >> > +The THC63LVD1024 is an LVDS receiver designed to convert multiple LVDS streams > >> > +to digital CMOS/TTL parallel data. > >> > + > >> > +Required properties: > >> > +- compatible: Shall be one of the following: > >> > + "thine,thc63lvd1024", > >> > + "lvds-decoder" > >> > >> What's the purpose of the second compatible value? > >> When should it be used? > > > > It is probably my bad having started with a generic LVDS decoder in > > mind and having then added properties specific to THC63LVD1024 to the > > driver and its bindings. > > > > "lvds,decoder" can be used when the chip is completely transparent to > > the SoC and none of the optional properties I have described in the > > bindings are specified (a generic "power-gpios" apart, see Andrzej > > comments on "pwdn-gpios" property). > > > > Also, I should make the driver behavior depend on the matched compatible > > string. When "lvds-decoder" is matched, it will just look for an > > optional power down gpio, when "thc63lvd1024" is matched, all of its > > Vcc supplies, pwdn gpio and oe gpios will be queried and, if present, > > eventually used in enable/disable routines. > > > > I'm just not sure how to describe that in bindings. Would something > > like the following work? > > > > Optional properties for "lvds,decoder" > > "lvds-decoder"? > Yes, sorry > > - power-gpios: Power control GPIOs > > > > Optional properties for "thine,thc63lvd1024" > > - pwdn-gpios: ... > > - oe-gpios: ... > > - supply-vcc: ... > > - supply-cvcc: ... > > - supply-pvcc: ... > > - supply-lvcc: ... > > Sounds like you need a (separate) generic lvds-decoder DT bindings document, > which you can extend/refer to from the THC63LVD1024-specific bindings. Ok, I'll go with two bindings document then and see how it looks. Thanks j > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds