Skip to content

Commit a4e0323

Browse files
finley1226rkhuangtao
authored andcommitted
regulator: of: Use regulator-init-microvolt as early minimum
Change-Id: If491089520b3228484357e08482ae0e955b1226a Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
1 parent 1c571cf commit a4e0323

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Documentation/devicetree/bindings/regulator/regulator.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ Optional properties:
55
- regulator-min-microvolt: smallest voltage consumers may set
66
- regulator-max-microvolt: largest voltage consumers may set
77
- regulator-microvolt-offset: Offset applied to voltages to compensate for voltage drops
8-
- regulator-early-min-microvolt: minimum voltage during system startup, make sure we
9-
select a voltage that suits the needs of all regulator consumers
8+
- regulator-init-microvolt: Set by bootloader or when initialising, in order to
9+
make sure the voltage can suit the needs of all regulator consumers during
10+
system startup.
1011
- regulator-min-microamp: smallest current consumers may set
1112
- regulator-max-microamp: largest current consumers may set
1213
- regulator-input-current-limit-microamp: maximum input current regulator allows

drivers/regulator/of_regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void of_get_regulation_constraints(struct device_node *np,
4242
if (!of_property_read_u32(np, "regulator-max-microvolt", &pval))
4343
constraints->max_uV = pval;
4444

45-
if (!of_property_read_u32(np, "regulator-early-min-microvolt", &pval))
45+
if (!of_property_read_u32(np, "regulator-init-microvolt", &pval))
4646
constraints->early_min_uV = pval;
4747

4848
/* Voltage change possible? */

0 commit comments

Comments
 (0)