linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Support regulator ON/OFF by PMIC state machine.
@ 2020-09-03 18:37 Matti Vaittinen
  2020-09-03 18:38 ` [PATCH 1/4] regulator: bd718x7 initialize regulator config only once Matti Vaittinen
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Matti Vaittinen @ 2020-09-03 18:37 UTC (permalink / raw)
  To: mazziesaccount
  Cc: Liam Girdwood, Mark Brown, Rob Herring, Matti Vaittinen,
	linux-kernel, devicetree, linux-power

Support regulator enable/disable via BD718(37/47/50) PMIC state machine.

The ROHM BD718(37/47/50) PMICs are mainly used for powering i.MX8 based
systems. On some setups the i.MX8 SoC uses a IO line to suspend the
system. These PMICs support this via PMIC internal HW state machine
which can be toggled for example by the PMIC_STBY_REQ IO-pin.

Regulators can be controlled either by this state machine or by SW via
I2C. This patch series allows mixed control model by adding a
device-tree property which is intended to be used to leave some of the
regulators under HW state machine control while allowing other to be
still controlled using the driver. The driver can also be used to set
voltages levels for all regulators no matter if enable/disable state is
controlled by SW or HW.

---

Matti Vaittinen (4):
  regulator: bd718x7 initialize regulator config only once
  dt-bindings: regulator: bd71837: add property for omitting ON/OFF
    control
  dt-bindings: regulator: bd71847: add property for omitting ON/OFF
    control
  regulator: bd718x7 fix regulator states at SUSPEND

 .../regulator/rohm,bd71837-regulator.yaml     |  11 +
 .../regulator/rohm,bd71847-regulator.yaml     |  11 +
 drivers/regulator/bd718x7-regulator.c         | 422 +++++++++++-------
 3 files changed, 293 insertions(+), 151 deletions(-)

-- 
2.21.0


-- 
Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~
Simon says - in Latin please.
~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~
Thanks to Simon Glass for the translation =] 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-04 10:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03 18:37 [PATCH 0/4] Support regulator ON/OFF by PMIC state machine Matti Vaittinen
2020-09-03 18:38 ` [PATCH 1/4] regulator: bd718x7 initialize regulator config only once Matti Vaittinen
2020-09-03 18:38 ` [PATCH 2/4] dt-bindings: regulator: bd71837: add property for omitting ON/OFF control Matti Vaittinen
2020-09-03 18:38 ` [PATCH 3/4] dt-bindings: regulator: bd71847: " Matti Vaittinen
2020-09-03 18:39 ` [PATCH 4/4] regulator: bd718x7 fix regulator states at SUSPEND Matti Vaittinen
2020-09-04 10:03 ` [PATCH 0/4] Support regulator ON/OFF by PMIC state machine Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).