]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
regulator: qcom_spmi: add PMS405 SPMI regulator
authorJorge Ramirez <jorge.ramirez-ortiz@linaro.org>
Mon, 17 Jun 2019 18:38:27 +0000 (11:38 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jun 2019 18:28:23 +0000 (19:28 +0100)
commit0211f68e626fb02d33c1e4302d907a45366a2d93
tree013eae110ccaebb876e9e112d29193aa329b22ee
parentbbd7992e6a32a3a52f3c26c86eba81037651c5c6
regulator: qcom_spmi: add PMS405 SPMI regulator

The PMS405 has 5 HFSMPS and 13 LDO regulators,

This commit adds support for one of the 5 HFSMPS regulators (s3) to
the spmi regulator driver.

The PMIC HFSMPS 430 regulators have 8 mV step size and a voltage
control scheme consisting of two  8-bit registers defining a 16-bit
voltage set point in units of millivolts

S3 controls the cpu voltages (s3 is a buck regulator of type HFS430);
it is therefore required so we can enable voltage scaling for safely
running cpufreq.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_spmi-regulator.c