Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1557336ybl; Mon, 2 Dec 2019 05:14:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzk0WJ0cYk1CfvpG8BxROtUxgXNPqMcyFZCpugZAVJgE6c9byzyo2MPav9WBiwun2h6daLD X-Received: by 2002:ac2:5388:: with SMTP id g8mr31798594lfh.43.1575292463805; Mon, 02 Dec 2019 05:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575292463; cv=none; d=google.com; s=arc-20160816; b=FNzeQcktEQ4gvS6upsGejHk8AkgtZGVtuE34q6xjiHdfXC5Zdjtg6913oS/5YDfdIl Iz2UHoRFSdHBxXuhzOflM013wD6BTc+hlSGmQdzGZLq+B/JRJ0Z7sKt9akYJTJxLEMk+ D3CafeLxHyAiGZj4wBI0z2EQJTA82up0FyPS1lQMNgbSbt8Gav8fmoLe8mQZOET8p7HO DA2d5RESnSS73YYedbVIeyTgTk7bIxH1pYq77acY0ny8yrEKxg+S3fTXgtg2PI5h8tkD 1Gd8Lf/PGxnorHojaBoujhkWwAFHzWLa8hc1Qwt+xuJd2Ugz3mr5np9E3ONqTT1snydJ RRqw== 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:dkim-signature; bh=HcdPKwqbVGtlgcTIZgCIi0isK2Mpc49YUdk5xlaJzq0=; b=YdWAu6sgkx8PXtHYCODFGMECofijpLiiqczGO2mDMpxWRFPkkoL6Sl3/Xf2/6fnjmh bPNEa8cnNb5ffakcYBNb1hSpT4O5WWNpxAMuzpsYtflesKkefTumw6Q2iCgsR+0HhWLw AntfKdM8yCXB12gSp7i1WVU9goCC6kT5X4uznmpSI2khtDfEZa7zM5nnxfUAciLbdvTN dFCHGesjDj5daCTbTRxQbd21Ntb02Dgw//ktrMTPS3rqI6Rs58Na67i0qPPFaLFOvasH 9G2zRuwOvVsPiiXPREyctnqCSvqeYV830ghFlkNWTnJYYly6ksHaFCWgMy6uu4PHLa+j l51A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=eMgFjIw0; 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=fail (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 d12si11785641lfq.130.2019.12.02.05.13.49; Mon, 02 Dec 2019 05:14:23 -0800 (PST) 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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=eMgFjIw0; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbfLBNMJ (ORCPT + 99 others); Mon, 2 Dec 2019 08:12:09 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:51046 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbfLBNMJ (ORCPT ); Mon, 2 Dec 2019 08:12:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HcdPKwqbVGtlgcTIZgCIi0isK2Mpc49YUdk5xlaJzq0=; b=eMgFjIw0NhQQ+Z5g2pVLfx0Z/ HPRbQ8VD6LzILID+Y2PhharPGvlPAq79MtFYP84MsnbUkInBOAEYpol69Cx+VUXES8ea6kBYRFoXI 9LA46DCwTHRcSsg1xO5EVf3HG00L+yJhLHtjGWdwDSMtyJRAyB4gSNFoWDpW4xEoUk1gs=; Received: from 188.31.173.115.threembb.co.uk ([188.31.173.115] helo=fitzroy.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iblUM-0003mu-7T; Mon, 02 Dec 2019 13:11:42 +0000 Received: by fitzroy.sirena.org.uk (Postfix, from userid 1000) id E6920D020A4; Mon, 2 Dec 2019 13:11:40 +0000 (GMT) Date: Mon, 2 Dec 2019 13:11:40 +0000 From: Mark Brown To: "Vaittinen, Matti" Cc: "corbet@lwn.net" , "hkallweit1@gmail.com" , "phil.edworthy@renesas.com" , "dmurphy@ti.com" , "linux-leds@vger.kernel.org" , "jeffrey.t.kirsher@intel.com" , "linux-gpio@vger.kernel.org" , "mchehab+samsung@kernel.org" , "linux-kernel@vger.kernel.org" , "alexandre.belloni@bootlin.com" , "mturquette@baylibre.com" , "lgirdwood@gmail.com" , "jacek.anaszewski@gmail.com" , "mazziesaccount@gmail.com" , "a.zummo@towertech.it" , "linux-doc@vger.kernel.org" , "wsa+renesas@sang-engineering.com" , "linus.walleij@linaro.org" , "hofrat@osadl.org" , "linux-rtc@vger.kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "m.szyprowski@samsung.com" , "bgolaszewski@baylibre.com" , "linux-clk@vger.kernel.org" , "lee.jones@linaro.org" , "sboyd@kernel.org" , "devicetree@vger.kernel.org" , "pavel@ucw.cz" Subject: Re: [PATCH v5 01/16] dt-bindings: regulator: Document ROHM BD71282 regulator bindings Message-ID: <20191202131140.GD1998@sirena.org.uk> References: <20191118162502.GJ9761@sirena.org.uk> <20191119181325.GD3634@sirena.org.uk> <20191119193636.GH3634@sirena.org.uk> <20191129120925.GA5747@sirena.org.uk> <297fa021fb243072dbbb7bca455e57c13e8c6843.camel@fi.rohmeurope.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vni90+aGYgRvsTuO" Content-Disposition: inline In-Reply-To: <297fa021fb243072dbbb7bca455e57c13e8c6843.camel@fi.rohmeurope.com> X-Cookie: Cleanliness is next to impossible. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --vni90+aGYgRvsTuO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 02, 2019 at 07:57:13AM +0000, Vaittinen, Matti wrote: > On Fri, 2019-11-29 at 12:09 +0000, Mark Brown wrote: > > The regulator driver has a bunch fo set_suspend_ operations. > Hmm. I saw these. But unless I am mistaken linux only knows one > 'suspend' state whereas the PMIC has a few separate states I can see as > 'suspend' states. As far as I understood the set_suspend_voltage does > not allow setting separate suspend voltages depending on the "type of > suspend" (as there is only one 'suspend' state). No, look at the bindings - we support a bunch of different suspend states matching the different suspend states that the kernel as a whole supports. We don't assume that the device will know this but you can always use the current suspend we're going for to decide where to update. > > > (RUN0, ... RUN3) could be mapped to regulator modes > > > REGULATOR_MODE_FAST, REGULATOR_MODE_NORMAL, REGULATOR_MODE_IDLE > > > and=20 > > > REGULATOR_MODE_STANDBY. But regulators which are controlled by > > > these > > That doesn't make sense at all, the modes affect the quality of > > regulation not the voltage that is set. > Thanks. I misunderstood this. I thought these states could be used for > some adaptive voltages. My understanding is that the RUN0,...RUN3 are > designed for that - but I didn't know if regulator framework is > designed for this. The framework doesn't care how a device is controlled, that's up to the device. Like I said I recommend figuring out what voltages are useful to have quick access to at runtime, for example it's likely that it's good to have quick access to the highest voltage that's been set (and/or the top of the constraints). > > The cpufreq code is all there in kernel - drivers/cpufreq. I can't > > remember if Android still has a custom governor in their trees but it > > doesn't really make much difference in terms of how it interacts with > > the regulator drivers. > Right. I guess your answers mean that there is no "regulator group > control" for "adaptive voltage changes" supported by regulator I can't parse the above, sorry. What is "regulator group control"? --vni90+aGYgRvsTuO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl3lDYkACgkQJNaLcl1U h9Amugf/QH6FoZOtAUIIujQELU4pGFVm5XkIvgjpWUWDlNK6CW+CKrdAc/iRcuch fpYcI7ht3Nd94mcruUECYYI5fTxj0ECj3mflGdL6c2nl7Sw3D3haNabXsa4XN5CT OUIi4NWGhuKUpFSLxgwdApBxJ5Tlri+TWW6Prv9Bf9IM1TMAHvCnIQD8rgSFrYga gxL160QzYsJoGI2KqLHFgo8ltWKjQO/jLHNoAL0awmx+Iujh30I8dlU1Laq3atoA siWbaqGqJKZLbfFOfaLQrga5DOJSd20ZY0R09niVgOr2xap2wxXaqVCLg7pnSBwV LD5cn4UcLr5v0sUXKwN908qjIvMxrg== =Fs54 -----END PGP SIGNATURE----- --vni90+aGYgRvsTuO--