Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1356677

Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal steps

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal steps
Date 2016-03-13 14:20 +0100
Message-ID <rce66-6gp-5@gated-at.bofh.it> (permalink)
References <ranGx-8tF-1@gated-at.bofh.it> <ranGy-8tF-31@gated-at.bofh.it> <rc9J7-31b-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Saturday 12 March 2016 11:39 AM, Mark Brown wrote:
> * PGP Signed by an unknown key
>
> On Tue, Mar 08, 2016 at 04:23:24PM +0530, Laxman Dewangan wrote:
>
>> There is a use cases where entire voltage ranges from minimum
>> to maximum is divided into n equal steps and just providing the
>> steps count, the voltage table with duty cycles is linearly
>> calculated.
> I can't see any reason why this would ever be preferable to just using
> the flat linear range (you certainly haven't articulated one, you're
> just stating it).  This seems like you are bodging around a limited
> consumer driver, you should fix the consumer to cope with regulators
> with lots of voltages - PWM regulators aren't the only ones with high
> resolution steps.

The requirement is to have perfect linear steps interms of the 
period/pulse time of PWM without loosing any voltage.
Continuous mode is pretty much near to what you said but here we are 
loosing the perfect step as this divides the periods to 100 parts and 
then set voltage.

If new mode is not accpetable then need to enhance the existing 
continuous mode like before scaling for 100% of period, first look if we 
get the perfect pulse time of of PWM period and if it is there then use 
this direct instead of converting required voltage to 100% scale and 
then back calculating duty time.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] regulator: pwm: Add supports for multiple instance and voltage linear steps Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-08 12:10 +0100
  [PATCH 2/5] regulator: pwm: Add support to have multiple instance of pwm regulator Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-08 12:10 +0100
  [PATCH 3/5] regulator: pwm: Prints error number when it fails Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-08 12:10 +0100
    Re: [PATCH 3/5] regulator: pwm: Prints error number when it fails Mark Brown <broonie@kernel.org> - 2016-03-13 09:40 +0100
      Re: [PATCH 3/5] regulator: pwm: Prints error number when it fails Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-13 14:30 +0100
  [PATCH 1/5] regulator: pwm: Fix calculation of voltage-to-duty cycle Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-08 12:10 +0100
  [PATCH 5/5] regulator: pwm: Add DT binding details for Linear Equal Step Mode Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-08 12:10 +0100
    Re: [PATCH 5/5] regulator: pwm: Add DT binding details for Linear  Equal Step Mode Rob Herring <robh@kernel.org> - 2016-03-17 16:30 +0100
  [PATCH 4/5] regulator: pwm: Add support for voltage linear equal steps Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-08 12:10 +0100
    Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal  steps Mark Brown <broonie@kernel.org> - 2016-03-13 09:40 +0100
      Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal  steps Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-13 14:20 +0100
        Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal  steps Mark Brown <broonie@kernel.org> - 2016-03-14 17:30 +0100
          Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal  steps Laxman Dewangan <ldewangan@nvidia.com> - 2016-03-15 08:00 +0100

csiph-web