[0/3] power: axp: Fix AXP318W bugs and extend SPL support

Message ID 20261123011534.1692975-1-alastair@d-silva.org (mailing list archive)
Headers
Series power: axp: Fix AXP318W bugs and extend SPL support |

Message

Alastair D'Silva Nov. 23, 2026, 1:15 a.m. UTC
This series fixes two bugs in the AXP318W PMIC/regulator drivers and
extends SPL power support (needed by the Orange Pi 4 Pro):

1. Fix the ELDO1-ELDO6 voltage mask (0x1f -> 0x3f) so voltages above
   1275 mV read back and clear correctly.
2. Use register 0x55 instead of 0x32 for AXP318W sysreset poweroff.
3. Add AXP318W DCDC6/7 and ALDO/BLDO/DLDO/ELDO support in SPL, with
   read-modify-write updates and -1 OTP-default skip semantics.

Alastair D'Silva (3):
  power: regulator: axp: Fix AXP318W ELDO voltage mask
  power: pmic: axp: Fix AXP318W sysreset shutdown register
  power: axp: Extend AXP318W SPL support with DCDC6/7 and LDOs

 board/sunxi/board.c                     |  23 ++++-
 drivers/power/Kconfig                   | 110 ++++++++++++++++++----
 drivers/power/axp_spl.c                 | 119 ++++++++++++++++++++++--
 drivers/power/pmic/axp.c                |   4 +-
 drivers/power/regulator/axp_regulator.c |  12 +--
 include/axp_pmic.h                      |   5 +
 6 files changed, 240 insertions(+), 33 deletions(-)