[U-Boot] [PATCH 00/12] PMIC/REGULATOR cleanup and Sandbox tests
Przemyslaw Marczak
p.marczak at samsung.com
Fri May 8 18:20:28 CEST 2015
Hello!
This patchset cleanups the POWER framework V4, which is applied into
u-boot-dm/next tree.
The main changes:
- pmic/regulator uclasses cleanup - each commit message describes
the changes in details.
- added sandbox PMIC emulated device support, which consists of three
drivers: pmic I2C emul, pmic I/O and regulator.
- PMIC/REGULATOR tests for sandbox in: tests/dm/power.c
I tried to add the implementation of all pmic/regulator operations for the
sandbox PMIC device - I hope that the drivers are not too complicated.
The tests for sandbox includes every pmic/regulator function call, so for now
the tests should well cover the framework features.
The patchset is rebased on the top of u-boot-dm/next, and can be fetched from
here: https://github.com/bobenstein/u-boot.git
branch: dm-pmic-v4-sandbox
Best regards,
Przemyslaw Marczak
Przemyslaw Marczak (12):
dm: pmic: code cleanup of PMIC uclass driver
dm: pmic: max77686: update driver code
dm: regulator: uclass driver code cleanup
odroid u3: cleanup the regulator calls
common: cmd pmic: command cleanup
common: cmd regulator: command cleanup
doc: driver-model: pmic-framework.txt - cleanup
sandbox: i2c: search child emul dev and check its uclass id
sandbox: add: sandbox PMIC device drivers: I2C emul, pmic, regulator
test: dm: dts: add sandbox pmic i2c node
sandbox: defconfig: enable support of sandbox PMIC drivers
test: dm: add sandbox PMIC framework tests
board/samsung/odroid/odroid.c | 9 +-
common/cmd_pmic.c | 131 ++++-----
common/cmd_regulator.c | 239 ++++++++--------
configs/sandbox_defconfig | 7 +
doc/device-tree-bindings/pmic/sandbox.txt | 35 +++
doc/device-tree-bindings/regulator/sandbox.txt | 45 +++
doc/driver-model/pmic-framework.txt | 20 +-
drivers/i2c/sandbox_i2c.c | 20 +-
drivers/power/pmic/Kconfig | 27 +-
drivers/power/pmic/Makefile | 3 +-
drivers/power/pmic/i2c_pmic_emul.c | 145 ++++++++++
drivers/power/pmic/max77686.c | 15 +-
drivers/power/pmic/pmic-uclass.c | 25 +-
drivers/power/pmic/sandbox.c | 79 ++++++
drivers/power/regulator/Kconfig | 32 ++-
drivers/power/regulator/Makefile | 1 +
drivers/power/regulator/regulator-uclass.c | 104 ++++---
drivers/power/regulator/sandbox.c | 355 +++++++++++++++++++++++
include/power/pmic.h | 39 +--
include/power/regulator.h | 116 ++++----
include/power/sandbox_pmic.h | 222 +++++++++++++++
test/dm/Makefile | 2 +
test/dm/power.c | 371 +++++++++++++++++++++++++
test/dm/test.dts | 38 +++
24 files changed, 1732 insertions(+), 348 deletions(-)
create mode 100644 doc/device-tree-bindings/pmic/sandbox.txt
create mode 100644 doc/device-tree-bindings/regulator/sandbox.txt
create mode 100644 drivers/power/pmic/i2c_pmic_emul.c
create mode 100644 drivers/power/pmic/sandbox.c
create mode 100644 drivers/power/regulator/sandbox.c
create mode 100644 include/power/sandbox_pmic.h
create mode 100644 test/dm/power.c
--
1.9.1
More information about the U-Boot
mailing list