-
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-3.5' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/broonie/regulator Pull regulator updates from Mark Brown: "The major thing here is the addition of some helpers to factor code out of drivers, making a fair proportion of regulators much more just data rather than code which is nice. - Helpers in the core for regulators using regmap, providing generic implementations of the enable and voltage selection operations which just need data to describe them in the drivers. - Split out voltage mapping and voltage setting, allowing many more drivers to take advantage of the infrastructure for selectors. - Loads and loads of cleanups from Axel Lin once again, including many changes to take advantage of the above new framework features - New drivers for Ricoh RC5T583, TI TPS62362, TI TPS62363, TI TPS65913, TI TWL6035 and TI TWL6037. Some of the registration changes to support the core refactoring caused so many conflicts that eventually topic branches were abandoned for this release." * tag 'regulator-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (227 commits) regulator: tps65910: use of_node of matched regulator being register regulator: tps65910: dt: support when "regulators" node found regulator: tps65910: add error message in case of failure regulator: tps62360: dt: initialize of_node param for regulator register. regulator: tps65910: use devm_* for memory allocation regulator: tps65910: use small letter for regulator names mfd: tpx6586x: Depend on regulator regulator: regulator for Palmas Kconfig regulator: regulator driver for Palmas series chips regulator: Enable Device Tree for the db8500-prcmu regulator driver regulator: db8500-prcmu: Separate regulator registration from probe regulator: ab3100: Use regulator_map_voltage_iterate() regulator: tps65217: Convert to set_voltage_sel and map_voltage regulator: Enable the ab8500 for Device Tree regulator: ab8500: Split up probe() into manageable pieces regulator: max8925: Remove check_range function and max_uV from struct rc5t583_regulator_info regulator: max8649: Remove unused check_range() function regulator: rc5t583: Remove max_uV from struct rc5t583_regulator_info regulator: da9052: Convert to set_voltage_sel and map_voltage regulator: max8952: Use devm_kzalloc ...
- Loading branch information
Showing
74 changed files
with
4,348 additions
and
3,274 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
44 changes: 44 additions & 0 deletions
44
Documentation/devicetree/bindings/regulator/tps62360-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,44 @@ | ||
TPS62360 Voltage regulators | ||
|
||
Required properties: | ||
- compatible: Must be one of the following. | ||
"ti,tps62360" | ||
"ti,tps62361", | ||
"ti,tps62362", | ||
"ti,tps62363", | ||
- reg: I2C slave address | ||
|
||
Optional properties: | ||
- ti,enable-vout-discharge: Enable output discharge. This is boolean value. | ||
- ti,enable-pull-down: Enable pull down. This is boolean value. | ||
- ti,vsel0-gpio: GPIO for controlling VSEL0 line. | ||
If this property is missing, then assume that there is no GPIO | ||
for vsel0 control. | ||
- ti,vsel1-gpio: Gpio for controlling VSEL1 line. | ||
If this property is missing, then assume that there is no GPIO | ||
for vsel1 control. | ||
- ti,vsel0-state-high: Inital state of vsel0 input is high. | ||
If this property is missing, then assume the state as low (0). | ||
- ti,vsel1-state-high: Inital state of vsel1 input is high. | ||
If this property is missing, then assume the state as low (0). | ||
|
||
Any property defined as part of the core regulator binding, defined in | ||
regulator.txt, can also be used. | ||
|
||
Example: | ||
|
||
abc: tps62360 { | ||
compatible = "ti,tps62361"; | ||
reg = <0x60>; | ||
regulator-name = "tps62361-vout"; | ||
regulator-min-microvolt = <500000>; | ||
regulator-max-microvolt = <1500000>; | ||
regulator-boot-on | ||
ti,vsel0-gpio = <&gpio1 16 0>; | ||
ti,vsel1-gpio = <&gpio1 17 0>; | ||
ti,vsel0-state-high; | ||
ti,vsel1-state-high; | ||
ti,enable-pull-down; | ||
ti,enable-force-pwm; | ||
ti,enable-vout-discharge; | ||
}; |
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,97 @@ | ||
TPS6586x family of regulators | ||
|
||
Required properties: | ||
- compatible: "ti,tps6586x" | ||
- reg: I2C slave address | ||
- interrupts: the interrupt outputs of the controller | ||
- #gpio-cells: number of cells to describe a GPIO | ||
- gpio-controller: mark the device as a GPIO controller | ||
- regulators: list of regulators provided by this controller, must be named | ||
after their hardware counterparts: sm[0-2], ldo[0-9] and ldo_rtc | ||
|
||
Each regulator is defined using the standard binding for regulators. | ||
|
||
Example: | ||
|
||
pmu: tps6586x@34 { | ||
compatible = "ti,tps6586x"; | ||
reg = <0x34>; | ||
interrupts = <0 88 0x4>; | ||
|
||
#gpio-cells = <2>; | ||
gpio-controller; | ||
|
||
regulators { | ||
sm0_reg: sm0 { | ||
regulator-min-microvolt = < 725000>; | ||
regulator-max-microvolt = <1500000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
|
||
sm1_reg: sm1 { | ||
regulator-min-microvolt = < 725000>; | ||
regulator-max-microvolt = <1500000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
|
||
sm2_reg: sm2 { | ||
regulator-min-microvolt = <3000000>; | ||
regulator-max-microvolt = <4550000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
|
||
ldo0_reg: ldo0 { | ||
regulator-name = "PCIE CLK"; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
ldo1_reg: ldo1 { | ||
regulator-min-microvolt = < 725000>; | ||
regulator-max-microvolt = <1500000>; | ||
}; | ||
|
||
ldo2_reg: ldo2 { | ||
regulator-min-microvolt = < 725000>; | ||
regulator-max-microvolt = <1500000>; | ||
}; | ||
|
||
ldo3_reg: ldo3 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
ldo4_reg: ldo4 { | ||
regulator-min-microvolt = <1700000>; | ||
regulator-max-microvolt = <2475000>; | ||
}; | ||
|
||
ldo5_reg: ldo5 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
ldo6_reg: ldo6 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
ldo7_reg: ldo7 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
ldo8_reg: ldo8 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
|
||
ldo9_reg: ldo9 { | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <3300000>; | ||
}; | ||
}; | ||
}; |
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
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.