Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp15041imm; Thu, 20 Sep 2018 13:16:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZY7JcZ871DR3diUv6vHfH5T6QkFRmPeg+LirErjVZRf4RPJvxC8tzPJKbHVvrwgk6jhgNf X-Received: by 2002:a62:8704:: with SMTP id i4-v6mr42594174pfe.62.1537474579090; Thu, 20 Sep 2018 13:16:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537474579; cv=none; d=google.com; s=arc-20160816; b=JoTkOM03NAfySR8tZJBRAYaM6Dx+Dedr5nq0DPN5CPITi5z8BlfUhBe7/hAqtJf5u4 NqfmqkNWmC8K3BKQbekKgH6+cSTb2QrUBzOajHF2oLrZUbfsVET7rpbQtlO9612UrBu0 xYoQ7SDN4uTf2SNdaM8Jw0dXZBUXXEKWDKfbHB+EYEB79iX0TVfvz7Mw2k5QOnWwWFSD NO+ZvzAPNuu4nMNnYfrSfXXF/zBeDafCyFuQ/UPaJoauXxTFiOMGkGskYMudrvWqNrAu kJjgfYpr9c/3MGf2DCvnTe7E/FgjVaXjjTBsxyRbVANyB1Hg5EMvZaxoa85aCYrY5byv o/Og== 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=hlttNOphVHU94QHYzfq7wg+ltvnuMFoiuTMDf0DagLI=; b=Kk6Xb3yn0SzHOlqTgdmlRnHzOc/9fHEsgVD/J0D1CW7KFD9NK5u6Z3O5kIv9p4Hnh6 QmulB7+RpWA22xzLQ4V1O2vwehMxZQu5vgvpESHF50RuOzbzTcHUhPg5uYQLv/6Fwcck Yq1sEtqv24MZCD+G8oTMgTTjfWbxd7fgY6NFNMsGgmExsEOv13L4xQNYYU6LeRlWq555 WgnRkmA/19vhpcbW36g/OXxwMYEuIv6rlEoHcJUSQeJ6ybiQkAh7IIIyUtzpgeN62zNT HF82FsrasP8jU1JHY5EIi/Jw68NELVuAT3bPYE0CCym+KV4gnx/s5j53q4lKE959iQzM tc0A== 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 e186-v6si25486793pfc.176.2018.09.20.13.16.01; Thu, 20 Sep 2018 13:16:19 -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 S2388191AbeIUB7f (ORCPT + 99 others); Thu, 20 Sep 2018 21:59:35 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53407 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727556AbeIUB7f (ORCPT ); Thu, 20 Sep 2018 21:59:35 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id AFAE38071C; Thu, 20 Sep 2018 22:14:21 +0200 (CEST) Date: Thu, 20 Sep 2018 22:14:20 +0200 From: Pavel Machek To: Ricardo Ribalda Delgado Cc: Sakari Ailus , Mauro Carvalho Chehab , linux-media , LKML , Hans Verkuil , Laurent Pinchart Subject: Re: [PATCH v2 2/4] [media] ad5820: Add support for enable pin Message-ID: <20180920201420.GA28766@amd> References: <20180920161912.17063-2-ricardo.ribalda@gmail.com> <20180920184552.4919-1-ricardo.ribalda@gmail.com> <20180920185405.GA26589@amd> <20180920190855.GC26589@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" 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 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-09-20 21:12:44, Ricardo Ribalda Delgado wrote: > On Thu, Sep 20, 2018 at 9:08 PM Pavel Machek wrote: > > > > On Thu 2018-09-20 21:06:16, Ricardo Ribalda Delgado wrote: > > > Hi Pavel > > > > > > On Thu, Sep 20, 2018 at 8:54 PM Pavel Machek wrote: > > > > > > > > On Thu 2018-09-20 20:45:52, Ricardo Ribalda Delgado wrote: > > > > > This patch adds support for a programmable enable pin. It can be = used in > > > > > situations where the ANA-vcc is not configurable (dummy-regulator= ), or > > > > > just to have a more fine control of the power saving. > > > > > > > > > > The use of the enable pin is optional. > > > > > > > > > > Signed-off-by: Ricardo Ribalda Delgado > > > > > > > > Do we really want to do that? > > > > > > > > Would it make more sense to add gpio-regulator and connect ad5820 to > > > > it in such case? > > > > > > > > > > My board (based on db820c) has both: > > > > > > ad5820: dac@0c { > > > compatible =3D "adi,ad5820"; > > > reg =3D <0x0c>; > > > > > > VANA-supply =3D <&pm8994_l23>; > > > enable-gpios =3D <&msmgpio 26 GPIO_ACTIVE_HIGH>; > > > }; > > > > Well, I'm sure you could have gpio-based regulator powered from > > pm8994_l23, and outputting to ad5820. > > > > Does ad5820 chip have a gpio input for enable? >=20 > xshutdown pin: > http://www.analog.com/media/en/technical-documentation/data-sheets/AD5821= =2Epdf >=20 > (AD5820,AD5821, and AD5823 are compatibles, or at least that is waht > the module manufacturer says :) Aha, sorry for the noise. 2,3: Acked-by: Pavel Machek Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAluj/5wACgkQMOfwapXb+vLWCQCePWD+ay3G+of16Itk/4RyVzzv auMAn3Lj14BEIoJDo8pHFjDoPnZnx4GI =VFDe -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--