[U-Boot] [PATCH V2 0/6] power: pfuze100: support driver model and regulator

Peng Fan
2015-08-04T05:32:05Z

This patch set is to support driver model for pfuze100 and implement
regulator driver for pfuze100. Patches has been tested on i.MX7D
validation board.

Here registeres for standby mode are not touched, all operation read/write
register are for NORMAL state. For example, to pfuze100,
sw1volt is for controlling voltage for normal state, sw1stdby is for
controlling voltage for standby state. The driver only read/write sw1volt,
but not touch sw1stdby. This will be done later, since I do not come up
with a good idea to operate sw1stdby.

This pfuze driver model part and regulator driver use max77686 driver
as a reference.

Changes v2:
Addressed comments from Simon and Przemyslaw. Detailed changelog see
each patch.

Peng Fan (6):
power: pfuze100 correct SWBST macro definition
power: regulator use node name when no regulator-name
power: regulator: update comments for regulator-name
power: pmic: pfuze100 support driver model
power: regulator: add pfuze100 support
fsl: common: pfuze: no use original pfuze code if DM_PMIC

board/freescale/common/pfuze.c | 2 +
doc/device-tree-bindings/regulator/regulator.txt | 19 +-
drivers/power/pmic/Kconfig | 7 +
drivers/power/pmic/Makefile | 2 +-
drivers/power/pmic/pfuze100.c | 121 +++++
drivers/power/pmic/pmic_pfuze100.c | 32 --
drivers/power/regulator/Kconfig | 8 +
drivers/power/regulator/Makefile | 1 +
drivers/power/regulator/pfuze100.c | 554 +++++++++++++++++++++++
drivers/power/regulator/regulator-uclass.c | 4 +-
include/power/pfuze100_pmic.h | 33 +-
include/power/regulator.h | 8 +-
12 files changed, 737 insertions(+), 54 deletions(-)
create mode 100644 drivers/power/pmic/pfuze100.c
delete mode 100644 drivers/power/pmic/pmic_pfuze100.c
create mode 100644 drivers/power/regulator/pfuze100.c

--
1.8.4