Skip to content

PMIC/REGULATOR cleanup and Sandbox tests

Przemyslaw Marczak u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/20 of 13 patches 0 repliesNew
  2. v2 posting 1/213 patches 0 repliesSuperseded
  3. v10 of 12 patches 0 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

None of the 13 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [U-Boot] [PATCH V2 00/13] PMIC/REGULATOR cleanup and Sandbox tests

Hello Simon,

Quoted 82 lines · Simon Glass
Quoted 81 lines · Przemyslaw Marczak

Hello Simon,

This patchset fixes the build issues. It changes the last three top commits of u-boot-dm/next. So it is rebased onto:
4e9a6eb dm: board:samsung: power_init_board: add requirement of CONFIG_DM_PMIC

The rebased version, can be fetched from:
https://github.com/bobenstein/u-boot.git
branch: dm-pmic-v5-sandbox

Best regards,
Przemyslaw Marczak

Przemyslaw Marczak (13):
odroid: dts: add 'voltage-regulators' description to max77686 node
odroid: enable driver model pmic/regulator API and MAX77686 drivers
dm: pmic: code cleanup of PMIC uclass driver
dm: regulator: uclass driver code cleanup
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: add sandbox PMIC framework tests
test: dm: test.dts - move to sandbox dts directory
sandbox: dts: add sandbox_pmic.dtsi and include it to sandbox.dts and
test.dts
sandbox: defconfig: enable support of sandbox PMIC drivers

  arch/arm/dts/exynos4412-odroid.dts             | 253 ++++++++++++++++++
  arch/sandbox/dts/Makefile                      |   1 +
  arch/sandbox/dts/sandbox.dts                   |   4 +
  arch/sandbox/dts/sandbox_pmic.dtsi             |  78 ++++++
  arch/sandbox/dts/test.dts                      | 236 ++++++++++++++++
  board/samsung/common/misc.c                    |   1 +
  board/samsung/odroid/odroid.c                  |  76 +++---
  common/cmd_pmic.c                              | 131 ++++-----
  common/cmd_regulator.c                         | 239 +++++++++--------
  configs/odroid_defconfig                       |   8 +-
  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             | 142 ++++++++++
  drivers/power/pmic/max77686.c                  |  15 +-
  drivers/power/pmic/pmic-uclass.c               |  31 +--
  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/configs/odroid.h                       |   5 -
  include/dt-bindings/pmic/sandbox_pmic.h        |  35 +++
  include/power/pmic.h                           |  39 +--
  include/power/regulator.h                      | 116 ++++----
  include/power/sandbox_pmic.h                   | 138 ++++++++++
  test/dm/.gitignore                             |   1 -
  test/dm/Makefile                               |   2 +
  test/dm/pmic.c                                 |  69 +++++
  test/dm/regulator.c                            | 325 ++++++++++++++++++++++
  test/dm/test-dm.sh                             |   3 +-
  test/dm/test-main.c                            |   3 +-
  test/dm/test.dts                               | 230 ----------------
  37 files changed, 2287 insertions(+), 622 deletions(-)

create mode 100644 arch/sandbox/dts/sandbox_pmic.dtsi create mode 100644 arch/sandbox/dts/test.dts
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/dt-bindings/pmic/sandbox_pmic.h create mode 100644 include/power/sandbox_pmic.h
delete mode 100644 test/dm/.gitignore
create mode 100644 test/dm/pmic.c
create mode 100644 test/dm/regulator.c
delete mode 100644 test/dm/test.dts

Quoted 8 lines
Quoted 3 lines

--
1.9.1

I've pulled this in from u-boot-dm/next to master.

- Simon

Thank you, this is great information!
And also thank you for the review of all the versions.

Best regards,

Signature · 4 lines
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com