Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp26359imm; Thu, 20 Sep 2018 13:29:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbJjRSBVCxIt/tbt5ZfQzic4PGa8qb4WGDQ2o05OfwPLwIZGy/cSRnl+Ge1MrczBrg2D/5K X-Received: by 2002:a17:902:8f8c:: with SMTP id z12-v6mr40805430plo.4.1537475347331; Thu, 20 Sep 2018 13:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537475347; cv=none; d=google.com; s=arc-20160816; b=fmh1hYM2mu93EoOSrGpefZrlfLiq+fxqB5JUFDrM4rWQcATTncsXq11t/RBhtOrMTx CShKJEpjTe1mnIuZadokIwtaPssMedQA8mbvTihxYCGvapDGCyAPXdHPfvAKwU2yFAcj g05zZYNXvHxmrIgMv+g6l2ugD0Rb/2c4z1Nx/ru3G7j/yNNRt1JHD9nkgKDG4kzY/s3a U/XsCIYWNMvaZC+CNKMCgehKPrvPyL5qa9O92uZmL0QZZbFulhvWXiONRcu8+4TjxHRW zQ5DsK+zNNgrK0nZqONZhVVvsrmavGDMwxZd+EfhIatq3pXfYwXYVA9xBT81pbhwIBy/ X+iw== 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; bh=IeNbF3zQttD++gbiAx81fOaJ4Sau8s3lgrSfdDBNnXc=; b=sr9YVqTLpNW8ZPMSIuOIQpHKfd+uSq/vFu9tWyU9AizVmvtuigqOuP/SjnahhPP393 Dyer/4ar28IojBViiPNN1yKVcHysxLVsvc+9F1NYirYf8ZNMS8p6g53TyBmg7dVd6Jsm 7eHiSDpHt6rRTn2S0y5ZYNshrZyEXnc6f885IFT71nEFI9TbAqPIvo8OMwWh9MwlIgyV jubBQyUM5VpBYg1V7HksG71Sg5R0jIaYyinQW+TJ4i3tvcYZQbCNFPIcwoBfYAdJZ6uv QEwdHqLNbdA3vjNkh9DUd2s35khV2ii4jiK0C8Cp/JwGjueIvHmozJCMVOKLyliszPCG 9V/Q== 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 v1-v6si26018041plb.387.2018.09.20.13.28.51; Thu, 20 Sep 2018 13:29:07 -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; 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 S2387865AbeIUCN5 (ORCPT + 99 others); Thu, 20 Sep 2018 22:13:57 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53712 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbeIUCN5 (ORCPT ); Thu, 20 Sep 2018 22:13:57 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 1BED180642; Thu, 20 Sep 2018 22:28:41 +0200 (CEST) Date: Thu, 20 Sep 2018 22:28:40 +0200 From: Pavel Machek To: Ricardo Ribalda Delgado Cc: Laurent Pinchart , Sakari Ailus , Mauro Carvalho Chehab , linux-media , LKML , Hans Verkuil , devicetree@vger.kernel.org Subject: Re: [PATCH 3/4] [media] ad5820: DT new optional field enable-gpios Message-ID: <20180920202840.GA31044@amd> References: <20180920161912.17063-1-ricardo.ribalda@gmail.com> <20180920161912.17063-3-ricardo.ribalda@gmail.com> <1939782.bRt5jKDIiS@avalon> <2983018.WjSXnZMEY4@avalon> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-09-20 22:25:54, Ricardo Ribalda Delgado wrote: > Hi > On Thu, Sep 20, 2018 at 10:23 PM Laurent Pinchart > wrote: > > > > On Thursday, 20 September 2018 23:21:28 EEST Laurent Pinchart wrote: > > > Hi Ricardo, > > > > > > Thank you for the patch. > > > > > > On Thursday, 20 September 2018 19:19:11 EEST Ricardo Ribalda Delgado = wrote: > > > > Document new enable-gpio field. It can be used to disable the part > > > > without turning down its regulator. > > > > > > > > Cc: devicetree@vger.kernel.org > > > > Signed-off-by: Ricardo Ribalda Delgado > > > > --- > > > > > > > > Documentation/devicetree/bindings/media/i2c/ad5820.txt | 6 ++++++ > > > > 1 file changed, 6 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/ad5820.txt > > > > b/Documentation/devicetree/bindings/media/i2c/ad5820.txt index > > > > 5940ca11c021..07d577bb37f7 100644 > > > > --- a/Documentation/devicetree/bindings/media/i2c/ad5820.txt > > > > +++ b/Documentation/devicetree/bindings/media/i2c/ad5820.txt > > > > > > > > @@ -8,6 +8,11 @@ Required Properties: > > > > - VANA-supply: supply of voltage for VANA pin > > > > > > > > +Optional properties: > > > > + > > > > + - enable-gpios : GPIO spec for the XSHUTDOWN pin. > > > > > > xshutdown is active-low, so enable is active-high. Should this be doc= umented > > > explicitly, to avoid polarity errors ? Maybe something along the line= s of > > > > > > - enable-gpios: GPIO spec for the XSHUTDOWN pin. Note that the polari= ty of > > > the enable GPIO is the opposite of the XSHUTDOWN pin (asserting the e= nable > > > GPIO deasserts the XSHUTDOWN signal and vice versa). >=20 > Agreed >=20 > > > > Or alternatively you could name the property xshutdown-gpios, as explai= ned in > > my (incorrect) review of 2/4. >=20 > I have double negatives :). If there is no other option I will rename > it xshutdown, but I want to give it a try to enable. I think enable is fine. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlukAvgACgkQMOfwapXb+vKwZgCeM/O6ef+EQUJCEEyJ6OnPsaC+ 3p4AniB7FLELDJ+pEh3iebiI5PzkLqwc =+ulO -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--