regulator: rk808: Fix min_uV for DCDC1 & DCDC2
PATCH 1/1 regulator: rk808: Fix min_uV for DCDC1 & DCDC2
The min_uv in DCDC1 & DCDC2 should be 712.5mv
---
drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/rk808-regulator.c +1 -1
@@ -44,7 +44,7 @@ static const int rk808_buck_config_regs[] = { };static const struct regulator_linear_range rk808_buck_voltage_ranges[] = { -REGULATOR_LINEAR_RANGE (700000 ,0 ,63 ,12500 ), +REGULATOR_LINEAR_RANGE (712500 ,0 ,63 ,12500 ), };static const struct regulator_linear_range rk808_buck4_voltage_ranges[] = {
Signature · 1 line
1.7.9.5
Chris,
Quoted 14 lines · Chris Zhong
The
min_uvin DCDC1 & DCDC2 should be 712.5mvSigned-off-by Chris Zhong <[email protected]>---
drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/regulator/rk808-regulator.c +0
-0
drivers/regulator/rk808-regulator.c static const int rk808_buck_config_regs[] = { · line 48
Quoted 6 lines
drivers/regulator/rk808-regulator.c +1
-1@@ -44,7 +44,7 @@ static const int rk808_buck_config_regs[] = { };static const struct regulator_linear_range rk808_buck_voltage_ranges[] = { -REGULATOR_LINEAR_RANGE (700000 ,0 ,63 ,12500 ), +REGULATOR_LINEAR_RANGE (712500 ,0 ,63 ,12500 ), };
I have no problem with this (and the current "dts" file I see don't go this low anyway), but it doesn't match the datasheet I have right now which says "0.700 V" is the min.
-Doug
Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson:
Quoted 23 lines
Chris,
Quoted 20 lines · Chris Zhong
The
min_uvin DCDC1 & DCDC2 should be 712.5mvSigned-off-by Chris Zhong <[email protected]>---
drivers/regulator/rk808-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/regulator/rk808-regulator.cindex e305416..196a5c8 100644drivers/regulator/rk808-regulator.c +0
-0@@ -44,7 +44,7 @@ static const int rk808_buck_config_regs[] = { };static const struct regulator_linear_range rk808_buck_voltage_ranges[] = {
Quoted 8 lines
Quoted 4 lines
drivers/regulator/rk808-regulator.c +1
-1- REGULATOR_LINEAR_RANGE(700000, 0, 63, 12500), + REGULATOR_LINEAR_RANGE(712500, 0, 63, 12500),};
I have no problem with this (and the current "dts" file I see don't go this low anyway), but it doesn't match the datasheet I have right now which says "0.700 V" is the min.
Then it would be problem.
The original statement above says, that a register value of "0" equals 700mV, so changing this in this way would mean everything runs 12.5mV above the target voltage.
And I can confirm, that the current datasheet lists 700mV as equallying register value 0.
Mark Brown
maintainerQuoted 10 lines · Heiko Stübner
Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson:
Quoted 8 lines · Chris Zhong
drivers/regulator/rk808-regulator.c static const int rk808_buck_config_regs[] = { · line 47
Quoted 3 lines
drivers/regulator/rk808-regulator.c +1
-1- REGULATOR_LINEAR_RANGE(700000, 0, 63, 12500), + REGULATOR_LINEAR_RANGE(712500, 0, 63, 12500),I have no problem with this (and the current "dts" file I see don't go this low anyway), but it doesn't match the datasheet I have right now which says "0.700 V" is the min.
Quoted 8 lines
Then it would be problem.
The original statement above says, that a register value of "0" equals 700mV, so changing this in this way would mean everything runs 12.5mV above the target voltage.
And I can confirm, that the current datasheet lists 700mV as equallying register value 0.
Has anyone got a voltmeter?
Quoted 8 lines · Mark Brown
Quoted 7 lines · Heiko Stübner
Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson:
Quoted 6 lines · Chris Zhong
drivers/regulator/rk808-regulator.c static const int rk808_buck_config_regs[] = { · line 47
Quoted 2 lines
drivers/regulator/rk808-regulator.c +1
-1- REGULATOR_LINEAR_RANGE(700000, 0, 63, 12500), + REGULATOR_LINEAR_RANGE(712500, 0, 63, 12500),I have no problem with this (and the current "dts" file I see don't go this low anyway), but it doesn't match the datasheet I have right now which says "0.700 V" is the min.
Quoted 7 lines
Quoted 6 lines
Then it would be problem.
The original statement above says, that a register value of "0" equals 700mV, so changing this in this way would mean everything runs 12.5mV above the target voltage.
And I can confirm, that the current datasheet lists 700mV as equallying register value 0.Has anyone got a voltmeter?
The latest datasheet has fixed this error.
The register value of "0" equals 712.5mV, so the max value can reach 1.5v but not 1.4875v.
Chris and Mark,
Quoted 24 lines · Chris Zhong
Quoted 22 lines · Mark Brown
Quoted 19 lines · Heiko Stübner
Am Dienstag, 30. September 2014, 09:43:47 schrieb Doug Anderson:
Quoted 9 lines · Chris Zhong
drivers/regulator/rk808-regulator.c static const int rk808_buck_config_regs[] = { · line 47
Quoted 3 lines
drivers/regulator/rk808-regulator.c +1
-1- REGULATOR_LINEAR_RANGE(700000, 0, 63, 12500), + REGULATOR_LINEAR_RANGE(712500, 0, 63, 12500),I have no problem with this (and the current "dts" file I see don't go this low anyway), but it doesn't match the datasheet I have right now which says "0.700 V" is the min.
Then it would be problem.
The original statement above says, that a register value of "0" equals 700mV,
so changing this in this way would mean everything runs 12.5mV above the target voltage.
And I can confirm, that the current datasheet lists 700mV as equallying register value 0.
Quoted 5 lines
Quoted 1 line
Has anyone got a voltmeter?
The latest datasheet has fixed this error.
The register value of "0" equals 712.5mV, so the max value can reach 1.5v but not 1.4875v.
OK, that sounds like this is the right change, then.
To Mark's point, I measured voltage using the builtin voltage measurement feature this board (not 100% sure the accuracy / precision guarantees on them, but...):
Asked for 1.300 volts on vdd_arm (dcdc1).
* Before: got 1.326
* After: got 1.310
Asked for 1.3 on vdd_gpu (dcdc2):
* Before: 1.326
* After: got 1.314
Asked for 1.0 on vdd_gpu:
* Before: 1.038
* After: got 1.026
Asked for .8 on vdd_gpu
* Before:.836
* After: got .822
It almost sounds like we're still running a little too high for voltages, but this gets us in the right direction I guess.
-Doug
Quoted 1 line · Chris Zhong
The
min_uvin DCDC1 & DCDC2 should be 712.5mv
Applied, thanks.