Skip to content

RFC 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 RFC Latest3 patches 4 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+18 -01 reply
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+200 -02 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchRob Herring (Arm)
1/3R-b
2/3
3/3

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

Read the v1 thread

Cover letter [RFC 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).
It features 9 DCDC buck converters and 28 LDOs, plus the usual ADC, interrupts, and power key components.
I am marking this as RFC, as this is untested, since I don't have hardware, but at least the datasheet [1] gives enough information to get the review and discussion started.

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.17-rc1.

Please have a look!

Cheers,
Andre

[1] https://linux-sunxi.org/AXP_PMICs (link in last line)

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         |  18 ++
 drivers/mfd/axp20x-i2c.c                      |   2 +
 drivers/mfd/axp20x.c                          |  84 +++++++++
 drivers/regulator/axp20x-regulator.c          | 159 ++++++++++++++++++
 include/linux/mfd/axp20x.h                    | 127 ++++++++++++++
 5 files changed, 390 insertions(+)
Signature · 1 line
2.46.3