Received: by 10.223.185.111 with SMTP id b44csp84732wrg; Fri, 9 Mar 2018 01:23:55 -0800 (PST) X-Google-Smtp-Source: AG47ELsVC7WijNWEQ5LlgpfBuG16g65OhlRV3UVoPr+8/VViRpvK/Wc/6eGmXvnHPJTQZA8GCELT X-Received: by 10.98.75.129 with SMTP id d1mr29506598pfj.19.1520587435778; Fri, 09 Mar 2018 01:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520587435; cv=none; d=google.com; s=arc-20160816; b=UPX3kKHbQGjizTgt0caVIHSWx9FysYDd6BUt6+o68oERh/CD4Cz4ezMpBR/dhyGbFS 91mcosAIUqsmBBqVEIFZ9vliSEVKqv/AeJDKLd4wxrjd7+9Jtu34vGWcbAqESkXefLMn 2rrszcJrW2ofzFQFyiZBu/ezHhCOxkecjVjDiTtd6eT/0raLMRvrX1/rH9E+uS/urHPK Eqa3hKSFdJa+DL9cOPwJWjKNgFDoyHue3l5X83xTCkAIJyiPXuw50x71R/WlmloG3oQx d/iaO1z2Cxd2S+ONSZIxRyfD9jsKCucUVhmlXhA1QO0ioR4iwqbPQiN1lmwNYohKQx75 dr9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=tdPl8OjuMpjyWSBvF+IcxrVlJi2BjWFUCvMuJV2WuLM=; b=tugihHdGT9G8RXLYVzXXZ0OcKonv07cQ4KuczLBGOPp1bHC57JcF8GgDD+jspWpvcl qiJ3HzIGx2oP4Pq2ixzjh2tGYnQz806ExQjnd3nbPHq8JsPu6Sjn0Dvs2+NRPKRAsEJ1 N++rvZtj1cutikLjAtqDMB9TOId7i25I70gcmlB2FXm/JvyZ2QceFRWGTJDKhAOYXX3N VxPTTGDDIsOqacvydKV0GGbN58jqh46HB2+0aBKvmm7CbbfGq+vhN47PsYfAsG7csKvD +qeYFYO1Rv/qjcimOjC+QsBnh+akUG3tFYHRrMF2gXiDZXs/PeR8krbRxg9cDbrvB6Wo qyJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sxbC0MFi; 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 u13-v6si520141plq.823.2018.03.09.01.23.41; Fri, 09 Mar 2018 01:23:55 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sxbC0MFi; 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 S1751178AbeCIJWo (ORCPT + 99 others); Fri, 9 Mar 2018 04:22:44 -0500 Received: from mail-qt0-f171.google.com ([209.85.216.171]:37835 "EHLO mail-qt0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbeCIJWl (ORCPT ); Fri, 9 Mar 2018 04:22:41 -0500 Received: by mail-qt0-f171.google.com with SMTP id r16so9986524qtm.4; Fri, 09 Mar 2018 01:22:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=tdPl8OjuMpjyWSBvF+IcxrVlJi2BjWFUCvMuJV2WuLM=; b=sxbC0MFi+oDajHfJiRbR5nefTVCGWiDyaEuDC8UdENdAjBYyegV5a+uRJa2H18Egor H1biInWAujsiGkweCtNS0zv2/zsgu/rAoHhXgoh7CxWPkZh0ZyLSAHvoYguYvJrLba/f IAk3y43gVW70eJfCWV/xs8sqs5nD2v7gF04WYZPXWSZE6GRG2mN0k59/ceK76qcd+AyA 22gNFTJqFqyfrHGSrUePVkwv2JjPuhF76t9WuBbpJVk9eWTOnkjdYBt4MI/f+p4GdcGa 0XOrMopKjYvQR9NECgGmqbWcnT/qmeNBoB8hHvm1mbcYEFKUtzHNpnVSp5i38otDIaKm iIfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=tdPl8OjuMpjyWSBvF+IcxrVlJi2BjWFUCvMuJV2WuLM=; b=aiPIuDYM4oTu7wae1vbBhSUyHGGSUsPJ8rjABnHpEdODma4UPVTDF2825MLjTQPVKc DPgFVkljpDg2kjapzWjBb18wpuVHWFjhhF3KFa1QUCkrv+9ZlV51gfsmhMVyavQyNd85 R2Ni9ropcwGumVWK0gwK7om2W+qDdzDea/BGOv52ep5nFoHtqqcHEQW8BsBzaZK7h52i S9SV44ufd+JXoT+IY30lYMOzBfu+0RwwI+BpRzHlzuCBrr6yTt3Pp+tyMwNZ2P3Y/LuT GNQzoIGTr16prvB7msvYo7+kldnV7lqmbLBUYP/gQaKrUoNU2I5mDpIm+TpyLNazp412 zlHQ== X-Gm-Message-State: AElRT7HehJ4WrPyRGeCo9TVD9LsKERg8c/DZFcpdqJwI5zEOx5/Fb4zZ Q07otFbRqwm4R0XvO6DP/eKMbSsCen8HMDqHrzqqWjDo X-Received: by 10.200.68.15 with SMTP id j15mr43035138qtn.60.1520587360462; Fri, 09 Mar 2018 01:22:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.47.219 with HTTP; Fri, 9 Mar 2018 01:22:39 -0800 (PST) In-Reply-To: <20180309090422.GD14819@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> From: Geert Uytterhoeven Date: Fri, 9 Mar 2018 10:22:39 +0100 X-Google-Sender-Auth: eYqsPq-jqUXPXS62qGJ6xzLGzn8 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder To: jacopo mondi Cc: Jacopo Mondi , Archit Taneja , Andrzej Hajda , Laurent Pinchart , David Airlie , Simon Horman , Magnus Damm , =?UTF-8?Q?Niklas_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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"? > - 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. 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