[PATCH v2 0/4] power: axp: Move poweroff to DM_PMIC/SYSRESET driver

Samuel Holland samuel at sholland.org
Mon Oct 25 04:00:06 CEST 2021


This series replaces the do_poweroff() implementation from the non-DM
AXP PMIC drivers with a sysreset uclass device, if sysreset is providing
its own do_poweroff() definition.

After applying this series, plus the following additional series:
  https://patchwork.ozlabs.org/project/uboot/list/?series=259143
  https://patchwork.ozlabs.org/project/uboot/list/?series=259151
  https://patchwork.ozlabs.org/project/uboot/list/?series=259152
and further enabling three Kconfig options:
  SYSRESET
  SYSRESET_WATCHDOG
  SYSRESET_WATCHDOG_AUTO
you will have removed exactly one (1) call to pmic_bus_write() from
U-Boot, hopefully without breaking anything else. Once all of these
series land, I will send a patch enabling those options and removing
the old do_poweroff() function implementations. At that point we will
be one quarter of the way to removing pmic_bus from U-Boot proper.

Note that because SYSRESET is disabled by default, each of those other
series can be applied independently.

Changes in v2:
 - Rebased on top of u-boot/master (axp_pmic_bind)

Samuel Holland (4):
  include: axp_pmic: Add missing header guard definition
  include: axp_pmic: Include headers for all variants
  power: axp: Avoid do_poweroff conflict with sysreset
  power: pmic: axp: Implement poweroff via sysreset

 drivers/power/axp152.c     |  2 ++
 drivers/power/axp209.c     |  2 ++
 drivers/power/axp221.c     |  2 ++
 drivers/power/axp305.c     |  2 +-
 drivers/power/axp809.c     |  2 ++
 drivers/power/axp818.c     |  2 ++
 drivers/power/pmic/Kconfig |  2 ++
 drivers/power/pmic/axp.c   | 49 +++++++++++++++++++++++++++++++++++++-
 include/axp152.h           |  2 ++
 include/axp209.h           |  2 ++
 include/axp221.h           |  2 ++
 include/axp809.h           |  2 ++
 include/axp818.h           |  2 ++
 include/axp_pmic.h         | 13 +---------
 14 files changed, 72 insertions(+), 14 deletions(-)

-- 
2.32.0



More information about the U-Boot mailing list