Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge remote-tracking branches 'regulator/fix/doc' and 'regulator/fix/tps65090' into regulator-linus

+21 -17
+2 -2
Documentation/devicetree/bindings/regulator/tps65090.txt
··· 45 45 infet5-supply = <&some_reg>; 46 46 infet6-supply = <&some_reg>; 47 47 infet7-supply = <&some_reg>; 48 - vsys_l1-supply = <&some_reg>; 49 - vsys_l2-supply = <&some_reg>; 48 + vsys-l1-supply = <&some_reg>; 49 + vsys-l2-supply = <&some_reg>; 50 50 51 51 regulators { 52 52 dcdc1 {
+4 -3
Documentation/power/regulator/consumer.txt
··· 143 143 on all its consumers) and change operating mode (if necessary and permitted) 144 144 to best match the current operating load. 145 145 146 - The load_uA value can be determined from the consumers datasheet. e.g.most 147 - datasheets have tables showing the max current consumed in certain situations. 146 + The load_uA value can be determined from the consumer's datasheet. e.g. most 147 + datasheets have tables showing the maximum current consumed in certain 148 + situations. 148 149 149 150 Most consumers will use indirect operating mode control since they have no 150 151 knowledge of the regulator or whether the regulator is shared with other ··· 174 173 int regulator_register_notifier(struct regulator *regulator, 175 174 struct notifier_block *nb); 176 175 177 - Consumers can uregister interest by calling :- 176 + Consumers can unregister interest by calling :- 178 177 179 178 int regulator_unregister_notifier(struct regulator *regulator, 180 179 struct notifier_block *nb);
+4 -4
Documentation/power/regulator/design.txt
··· 9 9 10 10 - Errors in regulator configuration can have very serious consequences 11 11 for the system, potentially including lasting hardware damage. 12 - - It is not possible to automatically determine the power confugration 12 + - It is not possible to automatically determine the power configuration 13 13 of the system - software-equivalent variants of the same chip may 14 - have different power requirments, and not all components with power 14 + have different power requirements, and not all components with power 15 15 requirements are visible to software. 16 16 17 17 => The API should make no changes to the hardware state unless it has 18 - specific knowledge that these changes are safe to do perform on 19 - this particular system. 18 + specific knowledge that these changes are safe to perform on this 19 + particular system. 20 20 21 21 Consumer use cases 22 22 ------------------
+2 -2
Documentation/power/regulator/machine.txt
··· 11 11 +-> [Consumer B @ 3.3V] 12 12 13 13 The drivers for consumers A & B must be mapped to the correct regulator in 14 - order to control their power supply. This mapping can be achieved in machine 14 + order to control their power supplies. This mapping can be achieved in machine 15 15 initialisation code by creating a struct regulator_consumer_supply for 16 16 each regulator. 17 17 ··· 39 39 40 40 Constraints can now be registered by defining a struct regulator_init_data 41 41 for each regulator power domain. This structure also maps the consumers 42 - to their supply regulator :- 42 + to their supply regulators :- 43 43 44 44 static struct regulator_init_data regulator1_data = { 45 45 .constraints = {
+3 -3
Documentation/power/regulator/overview.txt
··· 36 36 Consumers can be classified into two types:- 37 37 38 38 Static: consumer does not change its supply voltage or 39 - current limit. It only needs to enable or disable it's 39 + current limit. It only needs to enable or disable its 40 40 power supply. Its supply voltage is set by the hardware, 41 41 bootloader, firmware or kernel board initialisation code. 42 42 43 - Dynamic: consumer needs to change it's supply voltage or 43 + Dynamic: consumer needs to change its supply voltage or 44 44 current limit to meet operation demands. 45 45 46 46 ··· 156 156 This interface is for machine specific code and allows the creation of 157 157 voltage/current domains (with constraints) for each regulator. It can 158 158 provide regulator constraints that will prevent device damage through 159 - overvoltage or over current caused by buggy client drivers. It also 159 + overvoltage or overcurrent caused by buggy client drivers. It also 160 160 allows the creation of a regulator tree whereby some regulators are 161 161 supplied by others (similar to a clock tree). 162 162
+3 -3
Documentation/power/regulator/regulator.txt
··· 13 13 struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc, 14 14 const struct regulator_config *config); 15 15 16 - This will register the regulators capabilities and operations to the regulator 16 + This will register the regulator's capabilities and operations to the regulator 17 17 core. 18 18 19 19 Regulators can be unregistered by calling :- ··· 23 23 24 24 Regulator Events 25 25 ================ 26 - Regulators can send events (e.g. over temp, under voltage, etc) to consumer 27 - drivers by calling :- 26 + Regulators can send events (e.g. overtemperature, undervoltage, etc) to 27 + consumer drivers by calling :- 28 28 29 29 int regulator_notifier_call_chain(struct regulator_dev *rdev, 30 30 unsigned long event, void *data);
+2
include/linux/regulator/driver.h
··· 218 218 * @linear_min_sel: Minimal selector for starting linear mapping 219 219 * @fixed_uV: Fixed voltage of rails. 220 220 * @ramp_delay: Time to settle down after voltage change (unit: uV/us) 221 + * @linear_ranges: A constant table of possible voltage ranges. 222 + * @n_linear_ranges: Number of entries in the @linear_ranges table. 221 223 * @volt_table: Voltage mapping table (if table based mapping) 222 224 * 223 225 * @vsel_reg: Register for selector when using regulator_regmap_X_voltage_
+1
include/linux/regulator/machine.h
··· 85 85 * bootloader then it will be enabled when the constraints are 86 86 * applied. 87 87 * @apply_uV: Apply the voltage constraint when initialising. 88 + * @ramp_disable: Disable ramp delay when initialising or when setting voltage. 88 89 * 89 90 * @input_uV: Input voltage for regulator when supplied by another regulator. 90 91 *