linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/2] regulator: pwm: DT: Add ramp delay for exponential voltage transition
@ 2016-11-18 14:35 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
  0 siblings, 2 replies; 5+ messages in thread
From: Laxman Dewangan @ 2016-11-18 14:35 UTC (permalink / raw)
  To: broonie, robh+dt
  Cc: mark.rutland, linux-kernel, devicetree, Laxman Dewangan,
	Douglas Anderson, Aleksandr Frid

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.
+
 Any property defined as part of the core regulator binding can also be used.
 (See: ../regulator/regulator.txt)
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-22 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).