linux/drivers/regulator
Axel Lin ba51c6c022 regulator: Fix n_voltage settings for pcf50633 regulator
Current code has off-by-one n_voltage settings for AUTO/DOWN*/LDO* regulators.

Take ldo1 as example:
n_voltage should be (3.6 - 0.9) / 0.1 + 1 = 28

Table 76. LDO1OUT - LDO1 output voltage select register (address 2Dh) bit description[1]
Bit Symbol Access Description
4:0 ldo1_out R/W VO(prog) = 0.9 + ldo1_out × 0.1 V (max 3.6V); e.g.
00000 : 0.9 V
00001 : 1.0 V
11000 : 3.3 V
11011 : 3.6 V
11111 : 3.6 V

The n_voltage settings for HCLDO and MEMLDO are also wrong.
n_voltage for HCLDO and MEMLDO should be (3.6 - 0.9) / 0.1 + 1 = 28

Table 88. HCLDOOUT - HCLDO output voltage select register (addr. 39h) bit description[1]
Bit Symbol Access Description
4:0 hcldo_out R/W VO(prog) = 0.9 + hcldo_out × 0.1 V (max 3.6 V); e.g.
00000 : 0.9 V
00001 : 1.0 V
11011 : 3.6 V
11111 : 3.6 V

Table 62. MEMLDOOUT - MEMLDO o/p voltage select reg. (address 26h) bit description[1]
Bit Symbol Access Description
4:0 memldo_out R/W VO(prog) = 0.9 + memldo_out × 0.1 V; e.g.
00000: 0.9 V
00001: 1.0 V
11000 : 3.3 V
11011 : 3.6 V
11111 : 3.6 V

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-03-11 20:48:45 +00:00
..
88pm8607.c
aat2870-regulator.c
ab3100.c
ab8500.c regulator: Convert ab8499 to use get_voltage_sel() 2012-03-11 20:48:43 +00:00
ad5398.c
bq24022.c
core.c
da903x.c
da9052-regulator.c
db8500-prcmu.c regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dbx500-prcmu.c regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dbx500-prcmu.h regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dummy.c
dummy.h
fixed.c
gpio-regulator.c
isl6271a-regulator.c
Kconfig regulator: Sort Kconfig and Makefile entries 2012-03-11 20:48:42 +00:00
lp3971.c
lp3972.c
Makefile regulator: Sort Kconfig and Makefile entries 2012-03-11 20:48:42 +00:00
max1586.c
max8649.c regulator: Show correct chip id for max8649 2012-02-06 16:38:18 +00:00
max8660.c
max8925-regulator.c
max8952.c
max8997.c regulator: max8997: Avoid spaces in regulator names 2012-01-24 20:00:33 +00:00
max8998.c
mc13xxx-regulator-core.c regulator: mc13xxx-regulator-core: Fix the build when driver is selected as module 2012-01-24 20:47:25 +00:00
mc13xxx.h
mc13783-regulator.c regulator: mc13783: bail out without platform data 2012-03-11 20:48:44 +00:00
mc13892-regulator.c
of_regulator.c
pcap-regulator.c
pcf50633-regulator.c regulator: Fix n_voltage settings for pcf50633 regulator 2012-03-11 20:48:45 +00:00
s5m8767.c regulator: Fix the logic of s5m8767_set_voltage_time_sel 2012-03-11 20:48:45 +00:00
tps6105x-regulator.c
tps6507x-regulator.c
tps6524x-regulator.c
tps6586x-regulator.c
tps62360-regulator.c regulator: tps62360: Remove pointless test for unsigned less than zero 2012-03-11 20:48:40 +00:00
tps65023-regulator.c regulator: Remove redundant regmap_update_bits call for TPS65023_REG_CON_CTRL2 2012-02-06 16:38:18 +00:00
tps65217-regulator.c regulator: Update tps65217-regulator for DT changes 2012-01-20 12:01:33 +00:00
tps65910-regulator.c regulator: Fix module desciption for tps65910 regulator 2012-03-11 20:48:42 +00:00
tps65912-regulator.c
twl-regulator.c
userspace-consumer.c
virtual.c
wm831x-dcdc.c
wm831x-isink.c
wm831x-ldo.c
wm8350-regulator.c regulator: wm8350: Don't specify consumer supplies with struct device 2012-02-02 13:46:33 +00:00
wm8400-regulator.c
wm8994-regulator.c regulator: wm8994: Convert to devm_kzalloc() 2012-03-11 20:48:41 +00:00