[RFC PATCH 0/5] ARM: at91: sama5d2_xplained: Put the PMIC a proper suspend state
Boris Brezillon
boris.brezillon at free-electrons.com
Fri Dec 2 05:57:11 PST 2016
Mark, Raphael,
This is just an attempt at solving the suspend/resume issue I have on
an atmel platform: the PMIC is only supporting partial "suspend state"
definition (enable/disable output), and we need to setup the remaining
parts (voltage and mode) at runtime.
Mark, this patch is trying to implement what I understood of our
discussion on IRC a few days back. As you might have noticed, I'm not
yet understanding all the subtleties of the PM hooks, or how they are
implemented in the regulator framework.
This patch is clearly not meant to be applied as is, it's more something
to start a discussion, so feel free to point my misunderstanding or the
flaws in my approach.
Thanks,
Boris
Boris Brezillon (5):
regulator: Extend the power-management APIs
regulator: Document the regulator-allow-changes-at-runtime DT property
ARM: at91: Call regulator_suspend_{begin, end}() in the platform pm
ops
regulator: act8945: Implement PM functionalities
ARM: at91/dt: sama5d2_xplained: Add proper regulator states for
suspend-to-mem
.../devicetree/bindings/regulator/regulator.txt | 5 +
arch/arm/boot/dts/at91-sama5d2_xplained.dts | 32 +++
arch/arm/mach-at91/pm.c | 4 +-
drivers/regulator/act8945a-regulator.c | 255 +++++++++++++++++-
drivers/regulator/core.c | 291 +++++++++++++++++++++
drivers/regulator/of_regulator.c | 4 +
include/linux/regulator/driver.h | 29 ++
include/linux/regulator/machine.h | 13 +
8 files changed, 631 insertions(+), 2 deletions(-)
--
2.7.4
More information about the linux-arm-kernel
mailing list