Hi all, I found these changes to pcap-regulator.c on my local kernel tree.
I don't remember exactly where these voltages came from, but this version is definitely safer: Better to undervoltage it than overvoltage. Not a big deal for V1, V3 and VVIB, but current SW1 table looks dangerous (off by 0.05-1.85v. 0.1v on the setting being used by ezx/current kernel). -- Fix pcap-regulator.c voltage tables. Signed-off-by: Daniel Ribeiro <drw...@gmail.com> diff --git a/drivers/regulator/pcap-regulator.c b/drivers/regulator/pcap-regulator.c index 137b455..02862be 100644 --- a/drivers/regulator/pcap-regulator.c +++ b/drivers/regulator/pcap-regulator.c @@ -19,7 +19,7 @@ #include <linux/mfd/ezx-pcap.h> static const u16 V1_table[] = { - 2775, 1275, 1600, 1725, 1825, 1925, 2075, 2275, + 2775, 1275, 1600, 1725, 1875, 1950, 2075, 2275, }; static const u16 V2_table[] = { @@ -27,7 +27,7 @@ static const u16 V2_table[] = { }; static const u16 V3_table[] = { - 1075, 1275, 1550, 1725, 1876, 1950, 2075, 2275, + 1075, 1275, 1550, 1725, 1875, 1950, 2075, 2275, }; static const u16 V4_table[] = { @@ -80,12 +80,12 @@ static const u16 VSIM2_table[] = { }; static const u16 VVIB_table[] = { - 1300, 1800, 2000, 3000, + 1300, 1500, 1800, 2000, }; static const u16 SW1_table[] = { - 900, 950, 1000, 1050, 1100, 1150, 1200, 1250, - 1300, 1350, 1400, 1450, 1500, 1600, 1875, 2250, + 900, 950, 1000, 1100, 1150, 1200, 1250, 1300, + 1350, 1400, 1450, 1500, 1600, 1875, 2250, 4100, }; #define SW2_table SW1_table -- Daniel Ribeiro