[PATCH v6 0/5] regulator: of: Add initial and suspend modes support

From: Javier Martinez Canillas
Date: Mon Nov 10 2014 - 08:44:14 EST


Hello Mark,

This is the sixth version of the series that adds regulator initial
and suspend operating modes support. It relies on the existing work
that added suspend states bindings. The opmodes are parsed by the
regulator core and drivers should only define a translation function
to map between hardware specific to standard modes.

The series adds a "regulator-initial-mode" property to configure at
startup, the operating mode for the regulators that support changing
its mode during normal operation and a "regulator-mode" property for
the regulators that supports changing its operating mode when the
system enters in a suspend state. These properties were originally
part of Chanwoo Choi's regulator suspend state series [0] but were
removed since there wasn't a way to define the operating modes in a
generic way.

The generic regulator DT binding doc explains that each device has
to document what their valid operating modes are and drivers must
add a translation function so the core knows how to map the opmodes.

If the patches are merged, following series will change the drivers
using of_regulator_match() to pass the regulator description in the
match table and another series will add the new opmode feature to
the max77802 regulator driver.

The series is composed of the following patches:

Javier Martinez Canillas (5):
regulator: Document binding for initial and suspend modes
regulator: Add mode mapping function to struct regulator_desc
regulator: of: Add regulator desc param to
of_get_regulator_init_data()
regulator: of: Pass the regulator description in the match table
regulator: of: Add support for parsing initial and suspend modes

.../devicetree/bindings/regulator/regulator.txt | 7 ++++
drivers/regulator/88pm8607.c | 3 +-
drivers/regulator/anatop-regulator.c | 5 ++-
drivers/regulator/arizona-ldo1.c | 8 ++--
drivers/regulator/arizona-micsupp.c | 8 ++--
drivers/regulator/da9052-regulator.c | 3 +-
drivers/regulator/da9210-regulator.c | 2 +-
drivers/regulator/fan53555.c | 17 +++++----
drivers/regulator/fixed.c | 19 ++++++----
drivers/regulator/gpio-regulator.c | 18 +++++----
drivers/regulator/max8952.c | 2 +-
drivers/regulator/max8973-regulator.c | 3 +-
drivers/regulator/max8997.c | 3 +-
drivers/regulator/max8998.c | 5 ++-
drivers/regulator/mc13xxx-regulator-core.c | 3 +-
drivers/regulator/of_regulator.c | 43 +++++++++++++++++++---
drivers/regulator/pwm-regulator.c | 3 +-
drivers/regulator/qcom_rpm-regulator.c | 9 +++--
drivers/regulator/s5m8767.c | 3 +-
drivers/regulator/sky81452-regulator.c | 2 +-
drivers/regulator/stw481x-vmmc.c | 3 +-
drivers/regulator/ti-abb-regulator.c | 3 +-
drivers/regulator/tps51632-regulator.c | 43 ++++++++++++----------
drivers/regulator/tps62360-regulator.c | 31 +++++++++-------
drivers/regulator/tps65218-regulator.c | 3 +-
drivers/regulator/twl-regulator.c | 3 +-
drivers/regulator/vexpress.c | 3 +-
include/linux/regulator/driver.h | 4 ++
include/linux/regulator/of_regulator.h | 9 ++++-
29 files changed, 174 insertions(+), 94 deletions(-)

Best regards,
Javier

[0]: https://lkml.org/lkml/2014/10/10/161
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/