Skip to contentSkip to conversation

regulator: tps65910: Configure correct value for VDDCTRL vout reg

PATCH Applied Laxman Dewangan 2 participants 2 messages Mar 7, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: tps65910: Configure correct value for VDDCTRL vout reg

As per datasheet, the voltage output is defined as from SEL[6:0] = 3 to 64 (dec)
Vout= (SEL[6:0] × 12.5 mV + 562.5 mV)

The list_voltage returns the vout as

    600mV +  selector * 12.5mV

and so equivalent VSEL is selector + 3.
Adding 3 on selector when configuring VSEL register for VDDCTRL output.

---
 drivers/regulator/tps65910-regulator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/regulator/tps65910-regulator.c +1 -1
index 15b5f1e..8de2835 100644
@@ -715,7 +715,7 @@ static int tps65910_set_voltage_dcdc(struct regulator_dev *dev,
 		tps65910_reg_write(pmic, TPS65910_VDD2_OP, vsel);
 		break;
 	case TPS65911_REG_VDDCTRL:
-		vsel = selector;
+		vsel = selector + 3;
 		tps65910_reg_write(pmic, TPS65911_VDDCTRL_OP, vsel);
 	}
 
Signature · 1 line
1.7.1.1
Applied
#1 lore raw
Quoted 3 lines · Laxman Dewangan

As per datasheet, the voltage output is defined as from SEL[6:0] = 3 to 64 (dec)
Vout= (SEL[6:0] × 12.5 mV + 562.5 mV)

Applied, thanks.