Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp25626imm; Thu, 20 Sep 2018 13:28:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYr3J19I9ZL4ATI3Pma+Bby+2VVptdApBNQ0MZaClMH6GipNNI7XSSsjZJ/MYRLWwaFWTKf X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr40272623pla.325.1537475294355; Thu, 20 Sep 2018 13:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537475294; cv=none; d=google.com; s=arc-20160816; b=kN/U++wbsqAU/XeOJkpiHiwukjC9IKdIxgNOuNGTyjBmQOdYviYoF+lrtpLqEJgnY5 9UfbFu0Yg19hTyNyPgJcCySr6w2ZX7JnsEk8hlD9Bo72jLhNjs6OzD2K+cYJBKvVurdM S5grAsE7qHb5ka5JoBwDoc8gl71roXlKp9insKgjgd2IoYjruwfP1PD3m8O+MmeYf8+M VlfMBewwOGjgNTZt5whPa8Vl0sPXLrMaV9WUufUTJXKK4x4//wmOSREJYf/neus4WZBA VJsAHNeXxL2SEBjmcg7A4GDX07xZeuO+GpHaB2fd2G8sU0P0637bRVYPix56jOW8r6lo /TPA== 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=7m4fgNUFUZcU6rD+5/h3g+cP9IV1XVtOYpRE7l2Y/kM=; b=eOyiYGsgJNt08XZIHHYDFk4rNB2kCkcmJ3m24yL6ZsezqyKFUrEFE8wvsAWnY7gUIG 5jqE9/AdFr+aQedCtfHXCsEIkk07DKGiBdacZjctcxPpqSdEKheWO2SSM3uTlsDnBSk3 rwkXL6s772rXpaYxEHW9D4T87wahJTmAxS3LdcAJnhh6fSTAoETUzXzQ5+OaPuoyxWdx eEC6xSZq5ldWpui/GOPAnClmn8Zn5Q2CitZqVMrBYbC0UFtrzEFG3WCp4FfMmu0giCyd G2hVhKi8+zS+AjAhNfKnoZ2dZIPWkcUC5UV8IT1Xoy50Zm3Z+aReXUYU7ga47+yq7I3Y qMPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NHgvngSa; 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 e3-v6si26548090plk.114.2018.09.20.13.27.57; Thu, 20 Sep 2018 13:28:14 -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=NHgvngSa; 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 S2387647AbeIUCL1 (ORCPT + 99 others); Thu, 20 Sep 2018 22:11:27 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40147 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeIUCL1 (ORCPT ); Thu, 20 Sep 2018 22:11:27 -0400 Received: by mail-lf1-f65.google.com with SMTP id x26-v6so9545008lfi.7; Thu, 20 Sep 2018 13:26:12 -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=7m4fgNUFUZcU6rD+5/h3g+cP9IV1XVtOYpRE7l2Y/kM=; b=NHgvngSaJpDYpNamXlWovVh5aA16iDGw2kJ97HVf7gFzquIQEdz0s877qJM1kl9m3C EMfcQi+7N8iWNQBI59w4cVU5E3Qo7JkKY8YCh1737SwN7uMbx5ZYCI71A6IuFJF7tjyH +9hBofpWhDQJilMvgIjyD84Wze1PHLOzus6+IF2E+4BHH5MmjkLCHsTv5UgOo7cb/wAW mA/XwEkEfAnaz6a5vsIUPtN/Z8TGAOpo5S2VhtzO45nx2y0znpH2nmfODi8h/ku9jqIB J3wYfxXQIF7VOAiOqviN9tEjjdJLwfGdqQt9ixpYEGCPgtgiBtpn9H33130G+/38ApmG /jdw== 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=7m4fgNUFUZcU6rD+5/h3g+cP9IV1XVtOYpRE7l2Y/kM=; b=kyIuPfn4d4RJm95AwWvhyQlgO1TXVXRl0s0SpHIoiCrqUSuv1o+chDAdbkEsi00ttD +8vQNHsjIZ0y02Be3IcK/uRyIpSW4pKlGEc0WoCI3JHlhLyfqQY1ZzAD6qjWd84OtTu9 xnsiMfqGpvEazCvkfg91fr2PS8hSuerYf908mEzaVAUpSXY03zCIL8hidA057orPqZDg EbkSncgFcHH9pAICys/VRyEKTcu657exOymu3meaEQbyjA7Bor/d7GUmpSX/GNPZbM7l wNGass008JXL+T3yhAYcP5tvkB8tnTuakm2NOLqe51or7xm7tHXwY6bxYVVX0t14uHAY iF4g== X-Gm-Message-State: APzg51BgfbruTdXshZXsaGcTWflZzHXyZj+Mj9cHPgPxyPBe2Uw1Aidi mjzrawKJlzxGd8JBscqm5Wp4S+vFF0R+mHhv7cs= X-Received: by 2002:a19:4e51:: with SMTP id c78-v6mr13539648lfb.79.1537475171206; Thu, 20 Sep 2018 13:26:11 -0700 (PDT) MIME-Version: 1.0 References: <20180920161912.17063-1-ricardo.ribalda@gmail.com> <20180920161912.17063-3-ricardo.ribalda@gmail.com> <1939782.bRt5jKDIiS@avalon> <2983018.WjSXnZMEY4@avalon> In-Reply-To: <2983018.WjSXnZMEY4@avalon> From: Ricardo Ribalda Delgado Date: Thu, 20 Sep 2018 22:25:54 +0200 Message-ID: Subject: Re: [PATCH 3/4] [media] ad5820: DT new optional field enable-gpios To: Laurent Pinchart Cc: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , linux-media , LKML , Hans Verkuil , 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 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 documented > > explicitly, to avoid polarity errors ? Maybe something along the lines of > > > > - 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). Agreed > > Or alternatively you could name the property xshutdown-gpios, as explained in > my (incorrect) review of 2/4. 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. > > > > If specified, it will be > > > + asserted when VANA-supply is enabled. > > > > That documents a driver behaviour, is it needed in DT ? > > > > > Example: > > > ad5820: coil@c { > > > > > > @@ -15,5 +20,6 @@ Example: > > > reg = <0x0c>; > > > VANA-supply = <&vaux4>; > > > > > > + enable-gpios = <&msmgpio 26 GPIO_ACTIVE_HIGH>; > > > }; > > > -- > Regards, > > Laurent Pinchart > > > -- Ricardo Ribalda