Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3852661imm; Mon, 1 Oct 2018 05:40:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV628t9EaVAM1Pu2P/o6cNF0xle2KJ1c6tluFbhQ85ueooiFyrMuTTZNHSrCR24R3IeHKjLDe X-Received: by 2002:a63:1947:: with SMTP id 7-v6mr10207286pgz.192.1538397646854; Mon, 01 Oct 2018 05:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538397646; cv=none; d=google.com; s=arc-20160816; b=bREIvdo8wXck+vN2zjWwNG0aHd1iUurXyJxmt2uOsj4pJgSaIZHXAYqQg8W6KsAYxK aIf8MaPubb7+ni4RDB+hiJLTTwlGItkqRwBOn+Aj7FwCvFNfzIA6zDgyLGQGn9MLiYsV VO0SKdBZ2mljP2vDswJHKz5Uf3HpfRHlMty8ZnL762yZw+07nYdN3zGz/lfNiR1ok2dp kfmRKvEPuhJIPn15st0TFDVAV3Pz7jL2o8ez44HQXCUcR9E3ObmixwePB0pIbeN7j4Zy EquCXx1f8tBn+Zx+7yMQ1hitz3hZWXx+1rkqMXjtSGiJZbUsZ22VMgRQrsiFXfZzB06j iWrw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=kY1SJCMCORML/zGf/7bi646MfXTL+FMmcDcULCtL8eY=; b=0qIQmiVEdyonws4UpDSncY5nDWLmp+8q3t+SyiLTfAOWIzG1hGcp1JCdAqy5/c0Ksx Gv/7xY+mFIlBOIsvVwHR8aDKa0Vy2WCt8ftu3rfLT8Ug1Uu3tBtmx4B/GEOA2lTEST9Y 8Kclp6l4pLfahxZDWRpQscYuiB4KD1rsZ3RSFVD7PWPcx6VnWmLLPDIkRcSbp7SIXPq8 Y6DI9G1Lrdok0cZ4s/IkRSj6CbzGtdbI6k3w67jX+OQ3TBgMdXYpXW0d/wbRcdSZgTOl fkMsv/ezQu0b+MDQJnOWK0aJazvb/APO+4q0Y4iXzr98CXM6Q95EOqOEajWx/nOKlzNR jg2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RfBxwEnJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d81-v6si13237359pfm.40.2018.10.01.05.40.30; Mon, 01 Oct 2018 05:40:46 -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=@gmail.com header.s=20161025 header.b=RfBxwEnJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729336AbeJATR7 (ORCPT + 99 others); Mon, 1 Oct 2018 15:17:59 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40556 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729017AbeJATR6 (ORCPT ); Mon, 1 Oct 2018 15:17:58 -0400 Received: by mail-lj1-f193.google.com with SMTP id r83-v6so11972718ljr.7; Mon, 01 Oct 2018 05:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kY1SJCMCORML/zGf/7bi646MfXTL+FMmcDcULCtL8eY=; b=RfBxwEnJaV1lRI44ECdSFtNJjQF+sbuD9dVM2M6QGJPS0+apJyHfMP43cdy3x9oPSE e4ycGpT4jx/omMDzzDCvd/J213X1BDRteVmcwWPgyBWs1/XiPWZhbdJA9zNzAixyjpa3 7Te4gdhJ7/zwgQU2ZO7PSBJGOOqr0/SDTZHjrDkQYMfHGfHbh+JygVfIDs76CVxGU9Hj vc30cvfeTQv3n4IPa/jirjOCRzVHvPljOk0oWMnQU3IuvHdfxcFxVUdwOHz1NK56l7b7 diHq4a3LYb5AmpSH851WabXdxCiO3drpgc2fhOFFHjF70OOemLiRH30hI/DbSsZvR4bj TKng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kY1SJCMCORML/zGf/7bi646MfXTL+FMmcDcULCtL8eY=; b=WTXmGH1stTyBuyBfwE+RMj1v2j3j7/h5kvlupfsHKwiDolV1UUIE3Q69kmIXumDE9v CXwAvTtob+Ggy7rcS1uA7dGaHWUGoXAEd9hy0gqV3EftC6OaGgE7OiD3uhaNM0jMTbyM koOHWCAtCDo6xe2d25AzTJ5frd4dHf95xzTHYikd2oeUMT9P1pnnZ7frdRk8VoAlLUP4 x61lgGK18KdsAdDDFbd3wHyET975/zMFAqppdYhk8hJ7cOvW4ycNH4dXNjYUG1aUlSzK NrV0o2e+jgYQBI5awXyhlt32YUJo16GUUZHZMi6yPqbH6mqJxfPXDHP443zSz/xAeL8s RAwg== X-Gm-Message-State: ABuFfoiHtNhi4rTWczbRkFRX9+6vcpZDulC/W2PS8gd33tun08bXVEQQ K8Tq9I7p7DG7s+BTLt762bJNwLUwXnjTqjPUZ9Q= X-Received: by 2002:a2e:811:: with SMTP id 17-v6mr6203076lji.140.1538397619109; Mon, 01 Oct 2018 05:40:19 -0700 (PDT) MIME-Version: 1.0 References: <20180920204751.29117-1-ricardo.ribalda@gmail.com> <20180920204751.29117-3-ricardo.ribalda@gmail.com> <20180927182311.GA27227@bogus> In-Reply-To: From: Ricardo Ribalda Delgado Date: Mon, 1 Oct 2018 14:40:02 +0200 Message-ID: Subject: Re: [PATCH v4 3/7] [media] ad5820: DT new optional field enable-gpios To: Rob Herring Cc: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , linux-media , LKML , Hans Verkuil , Laurent Pinchart , devicetree@vger.kernel.org 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 On Mon, Oct 1, 2018 at 2:36 PM Rob Herring wrote: > > On Mon, Oct 1, 2018 at 3:20 AM Ricardo Ribalda Delgado > wrote: > > > > Hi Rob > > On Thu, Sep 27, 2018 at 8:23 PM Rob Herring wrote: > > > > > > On Thu, Sep 20, 2018 at 10:47:47PM +0200, Ricardo Ribalda Delgado wrote: > > > > Document new enable-gpio field. It can be used to disable the part > > > > > > enable-gpios > > > > > > > without turning down its regulator. > > > > > > > > Cc: devicetree@vger.kernel.org > > > > Signed-off-by: Ricardo Ribalda Delgado > > > > Acked-by: Pavel Machek > > > > --- > > > > Documentation/devicetree/bindings/media/i2c/ad5820.txt | 7 +++++++ > > > > 1 file changed, 7 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/ad5820.txt b/Documentation/devicetree/bindings/media/i2c/ad5820.txt > > > > index 5940ca11c021..9ccd96d3d5f0 100644 > > > > --- a/Documentation/devicetree/bindings/media/i2c/ad5820.txt > > > > +++ b/Documentation/devicetree/bindings/media/i2c/ad5820.txt > > > > @@ -8,6 +8,12 @@ Required Properties: > > > > > > > > - VANA-supply: supply of voltage for VANA pin > > > > > > > > +Optional properties: > > > > + > > > > + - enable-gpios : GPIO spec for the XSHUTDOWN pin. Note that the polarity of > > > > +the enable GPIO is the opposite of the XSHUTDOWN pin (asserting the enable > > > > +GPIO deasserts the XSHUTDOWN signal and vice versa). > > > > > > shutdown-gpios is also standard and seems like it would make more sense > > > here. Yes, it is a bit redundant to have both, but things just evolved > > > that way and we don't want to totally abandon the hardware names (just > > > all the variants). > > > > > > > Sorry to insist > > > > The pin is called xshutdown, not shutdown and is inverse logic, > > Wouldnt it make more sense to use the name > > enable-gpios? > > Inverse of what? shutdown-gpios is the inverse of enable-gpios. By > using shutdown-gpios you can just get rid of "Note that the polarity > of the enable GPIO is the opposite of the XSHUTDOWN pin (asserting the > enable GPIO deasserts the XSHUTDOWN signal and vice versa)." The pin is called XSHUTDOWN 0V means shutdown 3.3V means enable This is why I think is more clear to use enable as name in the device tree. > > This looks to me like a case of just standardizing the name so for > example we just have "reset" instead of many flavors like rst, RSTb, > RESETb, RESETn, nRESET, etc. > > Rob -- Ricardo Ribalda