forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'regulator-v4.12' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/broonie/regulator Pull regulator updates from Mark Brown: "Quite a lot going on with the regulator API for this release, much more in the core than in the drivers for a change: - Fixes for voltage change propagation through dumb power switches. - A notification when regulators are enabled. - A new settling time property for regulators where the time taken to move to a new voltage is not related to the size of the change. - Some reorganization of the Arizona drivers in preparation for sharing the code with the next generation devices they've been integrated with. - Support for newer Freescale chips in the Anatop regulator. - A new driver for voltage controlled regulators to cope with some exciting ChromeOS hardware designs. - Support for Rohm BD9571MWV-M and TI TPS65132" * tag 'regulator-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (51 commits) regulator: Add ROHM BD9571MWV-M PMIC regulator driver regulator: arizona-ldo1: Factor out generic initialization regulator: arizona-ldo1: Make arizona_ldo1 independent of struct arizona regulator: arizona-ldo1: Move pdata into a separate structure regulator: arizona-micsupp: Factor out generic initialization regulator: arizona-micsupp: Make arizona_micsupp independent of struct arizona regulator: arizona-micsupp: Move pdata into a separate structure regulator: arizona: Split KConfig options for LDO1 and MICSUPP regulators regulator: anatop: make regulator name property required regulator: tps65023: Fix inverted core enable logic. regulator: anatop: make sure regulator name is properly defined regulator: core: Allow dummy regulators for supplies regulator: core: Only propagate voltage changes to if it can change voltages regulator: vctrl: Fix out of bounds array access for vctrl->vtable regulator: tps65132: fix platform_no_drv_owner.cocci warnings regulator: tps65132: Fix off-by-one for .max_register setting regulator: anatop: set default voltage selector for pcie regulator: tps65132: add device-tree binding regulator: tps65132: add regulator driver for TI TPS65132 regulator: anatop: remove unneeded name field of struct anatop_regulator ...
- Loading branch information
Showing
42 changed files
with
1,626 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
TPS65132 regulators | ||
|
||
Required properties: | ||
- compatible: "ti,tps65132" | ||
- reg: I2C slave address | ||
|
||
Optional Subnode: | ||
Device supports two regulators OUTP and OUTN. A sub node within the | ||
device node describe the properties of these regulators. The sub-node | ||
names must be as follows: | ||
-For regulator outp, the sub node name should be "outp". | ||
-For regulator outn, the sub node name should be "outn". | ||
|
||
-enable-gpios:(active high, output) Regulators are controlled by the input pins. | ||
If it is connected to GPIO through host system then provide the | ||
gpio number as per gpio.txt. | ||
-active-discharge-gpios: (active high, output) Some configurations use delay mechanisms | ||
on the enable pin, to keep the regulator enabled for some time after | ||
the enable signal goes low. This GPIO is used to actively discharge | ||
the delay mechanism. Requires specification of ti,active-discharge-time-us | ||
-ti,active-discharge-time-us: how long the active discharge gpio should be | ||
asserted for during active discharge, in microseconds. | ||
|
||
Each regulator is defined using the standard binding for regulators. | ||
|
||
Example: | ||
|
||
tps65132@3e { | ||
compatible = "ti,tps65132"; | ||
reg = <0x3e>; | ||
|
||
outp { | ||
regulator-name = "outp"; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
enable-gpios = <&gpio 23 0>; | ||
}; | ||
|
||
outn { | ||
regulator-name = "outn"; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
regulator-active-discharge = <0>; | ||
enable-gpios = <&gpio 40 0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Bindings for Voltage controlled regulators | ||
========================================== | ||
|
||
Required properties: | ||
-------------------- | ||
- compatible : must be "vctrl-regulator". | ||
- regulator-min-microvolt : smallest voltage consumers may set | ||
- regulator-max-microvolt : largest voltage consumers may set | ||
- ctrl-supply : The regulator supplying the control voltage. | ||
- ctrl-voltage-range : an array of two integer values describing the range | ||
(min/max) of the control voltage. The values specify | ||
the control voltage needed to generate the corresponding | ||
regulator-min/max-microvolt output voltage. | ||
|
||
Optional properties: | ||
-------------------- | ||
- ovp-threshold-percent : overvoltage protection (OVP) threshold of the | ||
regulator in percent. Some regulators have an OVP | ||
circuitry which shuts down the regulator when the | ||
actual output voltage deviates beyond a certain | ||
margin from the expected value for a given control | ||
voltage. On larger voltage decreases this can occur | ||
undesiredly since the output voltage does not adjust | ||
inmediately to changes in the control voltage. To | ||
avoid this situation the vctrl driver breaks down | ||
larger voltage decreases into multiple steps, where | ||
each step is within the OVP threshold. | ||
- min-slew-down-rate : Describes how slowly the regulator voltage will decay | ||
down in the worst case (lightest expected load). | ||
Specified in uV / us (like main regulator ramp rate). | ||
This value is required when ovp-threshold-percent is | ||
specified. | ||
|
||
Example: | ||
|
||
vctrl-reg { | ||
compatible = "vctrl-regulator"; | ||
regulator-name = "vctrl_reg"; | ||
|
||
ctrl-supply = <&ctrl_reg>; | ||
|
||
regulator-min-microvolt = <800000>; | ||
regulator-max-microvolt = <1500000>; | ||
|
||
ctrl-voltage-range = <200000 500000>; | ||
|
||
min-slew-down-rate = <225>; | ||
ovp-threshold-percent = <16>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.