Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3848857imm; Mon, 1 Oct 2018 05:37:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV61/kJkB8Fs7Fwnui90G5Bqz6cJkCY1YsPmDkmhnGCSRKir2TF9/utQSlmLsDIjCg2mxl+dT X-Received: by 2002:a63:9809:: with SMTP id q9-v6mr9974385pgd.58.1538397425872; Mon, 01 Oct 2018 05:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538397425; cv=none; d=google.com; s=arc-20160816; b=whSBB/GIF1HPdaU9wPRj1GqyxIv85U7hbo+zI/CT5UWVuw9nD9UpXbkyFa5n3xcgPJ 3sRlIK8pJ+myzfY/OxYtFpOiWhz+QepDkFmLsWT+5VoQLWWZ6/WfwtPKVaQe2XCTUDWY tGwsj7JCwV0RzxHC8d0S5PpdWktx1rB6N+bvYnUWfX9lW6G3uIBdseJTKGfLF+MzPpNH mC5bXFwb1gaGML16B3sXGb7rUJFOuybFwM+22TvxNf3EWmXi4X4yFZwJnQ0MJMPX/NTn WCCcf8J4jh/cXzCe4lAaX/oqYTaWwELyq6ThHMYjv2ZzPUI6BYO19rKBoypfHfEBpjJ5 xM3g== 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=v0/Q8xhmQscKtEJotoApdVJGrSGrlyxNB6hxhLtybP8=; b=r8ZjFnPw6rXbYQUovDVrbWzIq7mPOWbDzRY27oHk6bRMvmsK9wRwVrHNwaw112FAn7 +TjEBRy3V1FLZAPq5bXUSJWsqBC/cw5qo6J16CHQ8XR4kr2DrpcklyN8VX7yAGskU8yj gGrZuspKQLTZIlUvWxLcbTd3IaxXI4ta9X5mKaJ3zDMjVSkWzFVcOA2jf4aHKwMi8JtZ oFW2pc/sAErs0sh9Z1UghuvOYibFVblPV9WVhHyNkGcaeRPH0XKo7DM6qf/DHmeVkiun UHVQbdt/5hHX5MZse8ToP4u/46kgVYQmqxGHfRGQzm4AGkZ7EawzFKMHde1W4IWZTK/b 2+AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XZxErydO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j134-v6si12520707pgc.134.2018.10.01.05.36.50; Mon, 01 Oct 2018 05:37:05 -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=@kernel.org header.s=default header.b=XZxErydO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729278AbeJATOM (ORCPT + 99 others); Mon, 1 Oct 2018 15:14:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:33614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729134AbeJATOL (ORCPT ); Mon, 1 Oct 2018 15:14:11 -0400 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CBFFE20C0A; Mon, 1 Oct 2018 12:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538397395; bh=HCnBavlSe47ZyqtIPKCMc6g8D+Y87ZmL7Hr2WAnld60=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XZxErydOY/d2UD1xi8MmpPOEgn2FeIl7Xqc/Hxm/7iZ/cSfx5RNWbo6JCCRrOZIoc yYvf/ig6Kag42Ua128f+jetOEd0y0D6gnHX73O9dNfuqgXq/IFs6j/1EzrCPbMKSeg PRIYKg0dUOhY/9UgK97FIJ+eDhcKvkV+sR4SF9Gs= Received: by mail-qt1-f175.google.com with SMTP id u34-v6so3090670qth.3; Mon, 01 Oct 2018 05:36:34 -0700 (PDT) X-Gm-Message-State: ABuFfohbyiaZy5Lgmmi6dSx1osbPPEQ+fqq2zgrnFSp7JUcdOVkVViaT VLYSbes1lT11T4dm9nBkpjMkF8V0bOb2g3aJPA== X-Received: by 2002:a0c:d4c3:: with SMTP id y3-v6mr8472819qvh.106.1538397393974; Mon, 01 Oct 2018 05:36:33 -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: Rob Herring Date: Mon, 1 Oct 2018 07:36:22 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 3/7] [media] ad5820: DT new optional field enable-gpios To: Ricardo Ribalda Delgado Cc: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , Linux Media Mailing List , "linux-kernel@vger.kernel.org" , 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 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)." 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