Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2376434imm; Thu, 20 Sep 2018 12:09:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY3qy9IRoqg4xQKvNf8y8ihR+YIjaQ5wJvHCvC2qonDN+YaJnsXIIKwgjcoSjfICZtX7iA4 X-Received: by 2002:a17:902:24d:: with SMTP id 71-v6mr40369263plc.91.1537470566196; Thu, 20 Sep 2018 12:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537470566; cv=none; d=google.com; s=arc-20160816; b=NyLKA6XKbKzD2zgzElJ/UVgqVGk8ZnAyyCV4wvhz6JTRIZKmf5DAqtMe4QeSbYKUXQ NASlHLr+DqGb5ClioyAkgmg9plZYns1G6CvuZ9nJ7DT+RH5a4SuiZVc56kKcJAxXqcbp Fc9dnp5piavzMCev7VLW+4Jpn9yuUCuW5kqjwTLGdQMFPll8WUoVwzr1yahA28KAfKgu GcBS4KzcP9EqJ3qrPP/DIcwJc1MJtD6c//w/XYG/wE9bGui3mq2W77/DORVl1QXFeuVW A3kqmTgrzfuKDx500dL2SxtuCB/yHJj9pZLOIkC38pd4rYGqwXJIv7uPAgl08HkeDZ8h HTzw== 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=o6nIfnLzXimd37SUN75iDSQxCqR6jLPr0doFBMTJMEg=; b=Qf2GEVdCZh0IgBmeKFj/63SqcWSrsjAThNL6z9CF5+NysAobTBSgDiBDpu6xRXUW/f 0+OkD+3MGKdWQYcWnMjc6wZ5RQSGwi8Cu9Qcin+VHjXjTdZJI3H4MWI/ytWanBNxjJTt bFhhYRaAYoLX13w6Wo1IgBaoZxbLzfjS0p04g/WhHXxHZFhurJoLlFfYI4O3G2G9m2dN VYSlpHIF44keb1eBXEoTdzGjLYIaum7MXK/+SFm4J56wja9oPHVHM55LG6x3QGG00s4P yXGrrvFMLv2tJsDE9JZunbCHAxjKTqjLu1VQaRLXrX6oJ+qR4bPDGPZFq5nKK3ePm2dl HtqQ== 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 p25-v6si1871636pgm.241.2018.09.20.12.09.09; Thu, 20 Sep 2018 12:09:26 -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 S2388350AbeIUAxy (ORCPT + 99 others); Thu, 20 Sep 2018 20:53:54 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:51896 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbeIUAxy (ORCPT ); Thu, 20 Sep 2018 20:53:54 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A4C26805F4; Thu, 20 Sep 2018 21:08:55 +0200 (CEST) Date: Thu, 20 Sep 2018 21:08:55 +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: <20180920190855.GC26589@amd> References: <20180920161912.17063-2-ricardo.ribalda@gmail.com> <20180920184552.4919-1-ricardo.ribalda@gmail.com> <20180920185405.GA26589@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KN5l+BnMqAQyZLvT" 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 --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-09-20 21:06:16, Ricardo Ribalda Delgado wrote: > Hi Pavel >=20 > 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? > > >=20 > My board (based on db820c) has both: >=20 > ad5820: dac@0c { > compatible =3D "adi,ad5820"; > reg =3D <0x0c>; >=20 > 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? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --KN5l+BnMqAQyZLvT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAluj8EYACgkQMOfwapXb+vIppQCfZMS0Dn9kQEGRE+8Is0TzxyAW yeoAn1lB3o8EY1sfO3UhWQQ7vbNMdGvc =An5N -----END PGP SIGNATURE----- --KN5l+BnMqAQyZLvT--