linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Mark Brown <broonie@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Douglas Anderson <dianders@chromium.org>,
	Aleksandr Frid <afrid@nvidia.com>
Subject: Re: [PATCH V2 1/2] regulator: pwm: DT: Add ramp delay for exponential voltage transition
Date: Tue, 22 Nov 2016 15:13:49 -0600	[thread overview]
Message-ID: <CAL_JsqLwjA4D1_KgZNxVT9AgiXHMv2kpyA_3zyrtASQSnjY=jQ@mail.gmail.com> (raw)
In-Reply-To: <583406CC.9080306@nvidia.com>

On Tue, Nov 22, 2016 at 2:50 AM, Laxman Dewangan <ldewangan@nvidia.com> wrote:
>
> On Monday 21 November 2016 09:47 PM, Rob Herring wrote:
>>
>> On Fri, Nov 18, 2016 at 08:05:55PM +0530, Laxman Dewangan wrote:
>>>
>>> Some PWM regulator has the exponential transition in voltage change as
>>> opposite to fixed slew-rate linear transition on other regulators.
>>> For such PWM regulators, add the property to tell that voltage change
>>> is exponential and having fixed delay for any level of change.
>>>
>>> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
>>> CC: Douglas Anderson <dianders@chromium.org>
>>> CC: Aleksandr Frid <afrid@nvidia.com>
>>>
>>> ---
>>> This patch is continuation of discussion on patch
>>>         regulator: pwm: Fix regulator ramp delay for continuous mode
>>> https://patchwork.kernel.org/patch/9216857/
>>> where is it discussed to have separate property for PWM which has
>>> exponential voltage transition.
>>>
>>> Changes from V1:
>>> - Pass the flag to tell that voltage ramp is exponential instead of
>>>    providing delay.
>>> ---
>>>   .../devicetree/bindings/regulator/pwm-regulator.txt          | 12
>>> ++++++++++++
>>>   1 file changed, 12 insertions(+)
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
>>> b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
>>> index 3aeba9f..2d9ef3a 100644
>>> --- a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
>>> +++ b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
>>> @@ -54,6 +54,18 @@ Optional properties:
>>>   --------------------
>>>   - enable-gpios:               GPIO to use to enable/disable the
>>> regulator
>>>   +- voltage-ramp-exponential: Boolean, Some of PWM regulator has the
>>> exponential
>>> +                       transition in voltage ramp as opposite to fixed
>>> +                       slew-rate linear transition on other regulators.
>>> +                       For such PWM regulator, presence of this property
>>> will
>>> +                       tell that value of the regulator ramp delay
>>> provided by
>>> +                       DT property "regulator-ramp-delay" is exponential
>>> and
>>> +                       fixed delay for any voltage level change.
>>> +                       If PWM regulator supports the fixed linear slew
>>> rate
>>> +                       then this property should be absent from DT node
>>> and
>>> +                       property "regulator-ramp-delay" is used as linear
>>> slew
>>> +                       rate.
>>
>> Sorry, but on further thought, I don't think we should mix different
>> units for the same property. Also, the fact that the ramp is exponential
>> is irrelevant. You just want an absolute delay time rather than a rate,
>> right? So instead, how about just "regulator-ramp-time-us". Roughly what
>> you had in v1, but not PWM specific.
>
>
> Can we say "regulator-settling-time-us" and make it generic i.e. part of the
> regulator core instead of PWM regulator specific?

Sure.

Rob

      reply	other threads:[~2016-11-22 21:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18 14:35 [PATCH V2 1/2] regulator: pwm: DT: Add ramp delay for exponential voltage transition Laxman Dewangan
2016-11-18 14:35 ` [PATCH V2 2/2] regulator: pwm: " Laxman Dewangan
2016-11-21 16:17 ` [PATCH V2 1/2] regulator: pwm: DT: " Rob Herring
2016-11-22  8:50   ` Laxman Dewangan
2016-11-22 21:13     ` Rob Herring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAL_JsqLwjA4D1_KgZNxVT9AgiXHMv2kpyA_3zyrtASQSnjY=jQ@mail.gmail.com' \
    --to=robh@kernel.org \
    --cc=afrid@nvidia.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dianders@chromium.org \
    --cc=ldewangan@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).