Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965259AbcKDRyb (ORCPT ); Fri, 4 Nov 2016 13:54:31 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:9218 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934922AbcKDRy3 (ORCPT ); Fri, 4 Nov 2016 13:54:29 -0400 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 04 Nov 2016 10:54:27 -0700 From: Laxman Dewangan To: , , CC: , , Laxman Dewangan , Douglas Anderson , Aleksandr Frid Subject: [PATCH 1/2] regulator: pwm: DT: Add ramp delay for exponential voltage transition Date: Fri, 4 Nov 2016 23:07:54 +0530 Message-ID: <1478281075-3498-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 Content-Length: 1898 Lines: 46 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 for providing the delay from DT node. Add DT binding details of the new property "pwm-regulator-voltage-ramp-time-us" added for providing voltage transition delay. 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. --- Documentation/devicetree/bindings/regulator/pwm-regulator.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt index 3aeba9f..a163f42 100644 --- a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt @@ -54,6 +54,16 @@ Optional properties: -------------------- - enable-gpios: GPIO to use to enable/disable the regulator +- pwm-regulator-voltage-ramp-time-us: Integer, voltage ramp time in + microseconds. Some PWM regulator has the exponential + transition in voltage change as opposite to fixed + slew-rate linear transition on other regulators. + For such regulator, this property is used to provide + the settling time for voltage change which is same + for any voltage change. + If PWM regulator supports the fixed slew rate then + property "regulator-ramp-delay" should be used. + Any property defined as part of the core regulator binding can also be used. (See: ../regulator/regulator.txt) -- 2.1.4