From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932422AbcKROwj (ORCPT ); Fri, 18 Nov 2016 09:52:39 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:17634 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932399AbcKROwc (ORCPT ); Fri, 18 Nov 2016 09:52:32 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Thu, 17 Nov 2016 18:51:23 -0800 From: Laxman Dewangan To: , CC: , , , Laxman Dewangan , Douglas Anderson , Aleksandr Frid Subject: [PATCH V2 1/2] regulator: pwm: DT: Add ramp delay for exponential voltage transition Date: Fri, 18 Nov 2016 20:05:55 +0530 Message-ID: <1479479756-10755-1-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 CC: Douglas Anderson CC: Aleksandr Frid --- 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