Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp23422imm; Thu, 20 Sep 2018 13:25:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbbyOBx9WSDUA4uaQFQ09eY/Pj8QYBZHcUkHuDc6rGg1EsXTMKVJYv6YY1qM34APwDooZ/ X-Received: by 2002:a62:959a:: with SMTP id c26-v6mr43248424pfk.234.1537475138517; Thu, 20 Sep 2018 13:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537475138; cv=none; d=google.com; s=arc-20160816; b=Xz64HLAatiGcZ1YnAVOPr77BGMAOqURLECiaQnW7xaqZMscFJqUInmW7j++5Z5pf/A suY/dUcD+yZ4Z+WoeZaNX/udBvure1hjiL6BH/I+F8SXq4WbnuxbGRGEEMX6g2dwa4Sf 4vAJmGH0meZGOsHq6reJfTeB8cYeQVp5HgSBLrYgN4I1gmnPtxGSOqvkxDe3glKPu0p9 fbDfJk6yqVzBSYMsbhDiaLbhRvs8xgZZqLKXEVkH6xqxiYSTWGQhngUKw/UvHwB87/QM lOr4eUIkEvP/0fiz6u6YPH/RfcuYys3ISuSjhNbrtDXoFdhxnQVcIcxJuvS6GNBmmmIF BliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=MK1J+Hh77M5UJYjv78WGANb24U+kftmQdwHNSCiW3MM=; b=ySeTh5i+0qFrhrUITPyrEN+rWYhJXpbsJFBZ8jTJ9LTn8l0jzbMdFt8LDypg30vTVp 9iL9kdXwZsWSGezy7C2GFzKhaL0e/xSpn8sfRfe/0+alSpdQBshsWZmMHDqXOwpV98AT CN86Y0Qp0ZWNicr4gtSOiTq6E8lbugmK1wcTfYN1BTBPoj6C3R+IRAwmJr9lMSkKIYrO 0rAXYKgvxAyvnXcXsnHXLGcdGLEtRVThLrAJDWFql5v9pveRGFX3bdyy5+n9Vu8RlPWU JH44ZIZHB3nvEbR6ssgKGNnlRVxg7D1yB/rgcVeuHzIBFpISuDVpjpsxGEIk0CXnE3Q+ ReOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=usbS7rAY; 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 g35-v6si26496560plb.108.2018.09.20.13.25.21; Thu, 20 Sep 2018 13:25:38 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=usbS7rAY; 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 S2388176AbeIUCIp (ORCPT + 99 others); Thu, 20 Sep 2018 22:08:45 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:36308 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727252AbeIUCIo (ORCPT ); Thu, 20 Sep 2018 22:08:44 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 052AF1C86; Thu, 20 Sep 2018 22:23:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1537475010; bh=0xwDsFarEVhG7mFsvaNxI1p1QTZHrZ1+SYSh8xu5CjU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=usbS7rAYKTRmcbi4EdIq0dZlipH7ZA0c97e0sUYqnxiaJQLnJ6kRpmbQGl9RRU8sB S90ZoxTYuxAxZqsMo49XA3TfcCmPW3BqDegjmV1qo/KTeSl662qHUrL88t1+ZzDaXi YJ7apVgxNz0nC7+oGjUMJQ9pHAkgYSTHq2SnYbWw= From: Laurent Pinchart To: Ricardo Ribalda Delgado Cc: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , devicetree@vger.kernel.org Subject: Re: [PATCH 3/4] [media] ad5820: DT new optional field enable-gpios Date: Thu, 20 Sep 2018 23:23:43 +0300 Message-ID: <2983018.WjSXnZMEY4@avalon> Organization: Ideas on Board Oy In-Reply-To: <1939782.bRt5jKDIiS@avalon> References: <20180920161912.17063-1-ricardo.ribalda@gmail.com> <20180920161912.17063-3-ricardo.ribalda@gmail.com> <1939782.bRt5jKDIiS@avalon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Or alternatively you could name the property xshutdown-gpios, as explained in my (incorrect) review of 2/4. > > 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