summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2014-01-25 18:10:24 -0800
committerGerrit Code Review <gerrit2@nvidia.com>2014-01-28 11:06:11 -0800
commit85e3f38e02af75258c8e6c660b6d0bb67f693bac (patch)
tree339eed33980704e3a039ff3d6405e73a4507295c /Documentation/devicetree/bindings
parentc55b81088a2a3add04f2efc3383700a2ebcbb8e5 (diff)
regulator: Define DT binding for PWM regulators
Added DT binding definition for regulators controlled by PWM interface. Bug 1442709 Change-Id: I753726236f4b1b33b54df258895b871cdc761f20 Signed-off-by: Alex Frid <afrid@nvidia.com>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r--Documentation/devicetree/bindings/regulator/pwm-regulator.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
new file mode 100644
index 000000000000..ef560e1e2261
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
@@ -0,0 +1,47 @@
+PWM controlled regulators
+
+Required properties:
+- compatible : Must be "regulator-pwm".
+- pwms : Must be pwm-list specified by pwm binding pwm.txt
+- regulator-min-microvolt : Must be smallest voltage at pwm duty cycle 0%
+- regulator-max-microvolt : Must be largest voltage at pwm duty cycle 100%
+ (must be above min; if equal, then use a fixed
+ regulator)
+
+Optional properties:
+- regulator-n-voltages : number of voltages, if specified implies evenly
+ distributed duty cycle levels; must be at least 2
+- voltage-time-sel : time in microseconds of voltage transition between
+ voltage levels (specified if regulator settling time
+ is independent of voltage change; for regulators with
+ fixed slew-rate use regulator-ramp-delay property)
+
+Control GPIOs specified according to gpio binding in gpio.txt
+- enable-gpio : GPIO to use to enable/disable the regulator
+- idle-gpio : GPIO to use to enter/exit regulator idle mode
+- standby-gpio : GPIO to use to enter/exit regulator standby mode
+
+Any property defined as part of the pwm user binding in pwm.txt.
+Any property defined as part of the core regulator binding in regulator.txt.
+
+Example:
+
+ pwm: pwm-controller {
+ #pwm-cells = <2>;
+ };
+
+ abc_pwm_reg: pwm-regulator {
+ compatible = "regulator-pwm";
+ pwms = <&pwm 0 3000>;
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <2500000>;
+
+ regulator-name = "vdd-abc-pwm-reg";
+ regulator-enable-ramp-delay = <700>;
+ regulator-boot-on;
+
+ regulator-n-voltages = <64>;
+ voltage-time-sel = <50>;
+ enable-gpio = <&gpio0 21 0x0>;
+ standby-gpio = <&gpio0 22 0x0>;
+ };