Skip to content

power: X-Powers PMIC regulator support

Samuel Holland u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Dual-license the driver
- Add a comment about the requirements for the voltage table
- Fix AXP22x ALDO3 enable bit position

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3power: pmic: axp: Provide a variant ID in the driver datadrivers/power/pmic/axp.c include/axp_pmic.h+21 -90 replies
2/3power: regulator: Add a driver for AXP PMIC regulatorsdrivers/power/regulator/Kconfig drivers/power/regulator/Makefile drivers/power/regulator/axp_regulator.c+327 -03 replies
3/3power: pmic: axp: Bind regulators from the DTdrivers/power/pmic/axp.c+18 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndre Przywara
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] power: X-Powers PMIC regulator support

This series adds a driver for the regulators in X-Powers AXPxxx PMICs. It supports everything except regulators shared with GPIO pins. Those have a different register interface, so they may need a separate driver.

Regulator setup in U-Boot proper is needed for Ethernet and HDMI/LCD display output. For some SoCs (H616), this driver could possibly be used for the DRAM regulator setup done in SPL. Older SoCs do all of their regulator setup in SPL. Some of that is probably necessary, but I think a lot of it is not and can be deferred to U-Boot proper or Linux; that's just where it was convenient to initialize the PMIC at the time.

The main goal here is to replace the corresponding code in TF-A, both because of TF-A size constraints, and because the TF-A code is too simple/overzealous and breaks EPHY power sequencing on some boards.

Changes in v2:
- Dual-license the driver
- Add a comment about the requirements for the voltage table
- Fix AXP22x ALDO3 enable bit position

Samuel Holland (3):
power: pmic: axp: Provide a variant ID in the driver data
power: regulator: Add a driver for AXP PMIC regulators
power: pmic: axp: Bind regulators from the DT

 drivers/power/pmic/axp.c                |  36 ++-
 drivers/power/regulator/Kconfig         |  14 ++
 drivers/power/regulator/Makefile        |   1 +
 drivers/power/regulator/axp_regulator.c | 312 ++++++++++++++++++++++++
 include/axp_pmic.h                      |  12 +
 5 files changed, 366 insertions(+), 9 deletions(-)
 create mode 100644 drivers/power/regulator/axp_regulator.c
Signature · 1 line
2.37.4