regulator: bd718x7: Support SNVS low power state
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Thu, 14 Feb 2019 09:39:36 +0000 (11:39 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 15:12:44 +0000 (15:12 +0000)
commit049369d464289bb57bcfb6faa20990a06fe1e7ae
treef120ca4d1e82071afb872af3669ae845b5acbd82
parent6a47b4da551a762217215aeeda22e46469c5868a
regulator: bd718x7: Support SNVS low power state

read ROHM BD71837 / BD71847 specific device tree bindings for
controlling the PMIC shutdown/reset states and voltages for
different HW states. The PMIC was designed to be used with NXP
i.MX8 SoC and it supports SNVS low power state which seems to
be typical for NXP i.MX SoCs. However, when SNVS is used we must
not allow SW to control enabling/disabling those regulators which
are crucial for system to boot as there is a HW limitation which
causes SW controlled regulators to be kept shut down after SNVS
reset.

Allow setting the SNVS to be used as reset target state and allow
marking those regulators which are critical for boot.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Tested-by: Angus Ainslie <angus@akkea.ca>
Reviewed-by: Angus Ainslie <angus@akkea.ca>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c