]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: bd71847: add property for omitting ON/OFF control
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Thu, 3 Sep 2020 18:38:48 +0000 (21:38 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 4 Sep 2020 10:02:41 +0000 (11:02 +0100)
commita8ce1bce9ed283fc188f43a7a4405921f8769f2e
treef7c21d8b1ff9f1f645641df4cad134c12aab83d2
parent21a7079a747f544d22eabb57a819544321497f06
regulator: bd71847: add property for omitting ON/OFF control

The BD718(37/47/50) regulator enable states can be controlled either by SW
or by PMIC internal state machine.

On some systems mixture of SW and HW state machine controlled regulators is
needed.

Specifically, some SoCs signal SUSPEND state change to PMIC via
STBY_REQ line. Now there are setups that expect certain regulators then to
be disabled (by PMIC state machine) while other regulators should stay
enabled (regardless of HW state => SW control required).

Add a new device-tree property "rohm,no-regulator-enable-control" which can
be used to leave regulator(s) under HW state machine control.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/51022c60412297ad9b22501452d60ba2dce38d2e.1599029334.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/rohm,bd71847-regulator.yaml