Skip to content

regulator: Add X-Powers AXP318W PMIC support

Andre Przywara linux-devicetree linux-sunxi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: mfd: x-powers,axp152: Document AXP318WDocumentation/devicetree/bindings/mfd/x-powers,axp152.yaml+27 -12 replies
2/3mfd: axp20x: Add support for AXP318W PMICdrivers/mfd/axp20x-i2c.c drivers/mfd/axp20x.c include/linux/mfd/axp20x.h+172 -01 reply
3/3regulator: axp20x: add support for the AXP318Wdrivers/regulator/axp20x-regulator.c include/linux/mfd/axp20x.h+211 -28 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchMark BrownConor DooleyChen-Yu Tsai
1/3A-b R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] regulator: Add X-Powers AXP318W PMIC support

This patch series adds support for the X-Powers AXP318W PMIC, which is used recently on new boards with Allwinner SoCs (the A733). Compared to the RFC post, this now has been tested on real hardware, with the full regulator description for the Radxa Cubie A7A board. This also adds the switched outputs (swout1/swout2), and fixes the DCDC input supplies, which are combined in certain ways.
Rob, I dropped your tag on the binding tag, since there were quite some changes.

The PMIC features 9 DCDC buck converters and 28 LDOs, plus the usual ADC, interrupts, and power key components.
A datasheet can be found linked in this Wiki table:
https://linux-sunxi.org/AXP_PMICs

Patch 1 adds the compatible string to the binding document, and adds the additional input supply properties.
Patch 2 is the MFD part, describing the regmap and all the interrupts. So far we support the regulator and power key devices, the ADC and other pieces will follow later.
Patch 3 adds the voltage regulator rails, this part is crucial to enable any board using this PMIC, as we depend on those rails even for basic devices.

Based on v6.18-rc1.

Please have a look!

Changelog RFC ... v1:
- tested on hardware
- adding switch outputs (swout1/swout2) (to binding and code)
- fixing DC/DC input supplies (in binding and code)

Andre Przywara (3):
dt-bindings: mfd: x-powers,axp152: Document AXP318W
mfd: axp20x: Add support for AXP318W PMIC
regulator: axp20x: add support for the AXP318W

 .../bindings/mfd/x-powers,axp152.yaml         |  28 ++-
 drivers/mfd/axp20x-i2c.c                      |   2 +
 drivers/mfd/axp20x.c                          |  84 +++++++++
 drivers/regulator/axp20x-regulator.c          | 170 +++++++++++++++++-
 include/linux/mfd/axp20x.h                    | 129 +++++++++++++
 5 files changed, 410 insertions(+), 3 deletions(-)
Signature · 1 line
2.25.1