diff options
| author | Axel Lin <[email protected]> | 2019-06-26 21:26:32 +0800 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-07-22 13:18:13 +0100 |
| commit | 962f170d9344e5d9edb3903971c591f42d55e226 (patch) | |
| tree | 39bc81e727832d91c1416ef9562ed8cb089887f7 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 1e2cc8c5e0745b545d4974788dc606d678b6e564 (diff) | |
regulator: lm363x: Fix n_voltages setting for lm36274
According to the datasheet http://www.ti.com/lit/ds/symlink/lm36274.pdf:
Table 23. VPOS Bias Register Field Descriptions VPOS[5:0]:
VPOS voltage (50-mV steps): VPOS = 4 V + (Code × 50 mV), 6.5 V max
000000 = 4 V
000001 = 4.05 V
:
011110 = 5.5 V (Default)
:
110010 = 6.5 V
110011 to 111111 map to 6.5 V
So the LM36274_LDO_VSEL_MAX should be 0b110010 (0x32).
The valid selectors are 0 ... LM36274_LDO_VSEL_MAX, n_voltages should be
LM36274_LDO_VSEL_MAX + 1. Similarly, the n_voltages should be
LM36274_BOOST_VSEL_MAX + 1 for LM36274_BOOST.
Fixes: bff5e8071533 ("regulator: lm363x: Add support for LM36274")
Signed-off-by: Axel Lin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions