mbox series

[RFC,0/5] regulator: support for Marvell 88PM886 LDOs and bucks

Message ID 20231228100208.2932-1-karelb@gimli.ms.mff.cuni.cz
Headers show
Series regulator: support for Marvell 88PM886 LDOs and bucks | expand

Message

Karel Balej Dec. 28, 2023, 9:39 a.m. UTC
From: Karel Balej <balejk@matfyz.cz>

Hello,

the following adds the regulators driver for Marvell 88PM88X PMICs
implementing only the 88PM886 specific parts - however extension for
88PM880 should be trivial. The series adding MFD driver for these PMICs
is available here [1]. Please note that this series depends on that
one.

The motivation and testing platform for this is the
samsung,coreprimevelte smartphone for which the initial support efforts
are ongoing here [2]. This PMIC is also found in at least two other
devices with the PXA1908 SoC, such as samsung,xcover3lte and
samsung,grandprimevelte.

As the only reference for this driver served the smartphone's downstream
kernel tree which is available here [3].

Please note that the first patch of this series is just a joining step
with respect to series [1] and will be amalgated with future versions of
it and dropped here. Also please note that that this series has the same
defects as the MFD one and thus please only review the new parts.
Lastly, as I would like to get some feedback on whether the approach I
have taken here is OK, I have only defined descriptions for three
regulators so far, the remaining eighteen will be defined in the same
style and will of course be added when this series leaves the RFC state
at the latest.

[1] https://lore.kernel.org/all/20231217131838.7569-1-karelb@gimli.ms.mff.cuni.cz/
[2] https://lore.kernel.org/all/20231102-pxa1908-lkml-v7-0-cabb1a0cb52b@skole.hr/
[3] https://github.com/CoderCharmander/g361f-kernel

Thank you,
K. B.

Karel Balej (5):
  mfd: 88pm88x: differences with respect to the PMIC RFC series
  mfd: 88pm88x: initialize the regulators regmaps
  dt-bindings: regulator: add documentation entry for 88pm88x-regulator
  regulator: add 88pm88x regulators driver
  MAINTAINERS: add entries for the 88pm88x regulators driver

 .../bindings/mfd/marvell,88pm88x.yaml         |  17 ++
 .../regulator/marvell,88pm88x-regulator.yaml  |  28 +++
 MAINTAINERS                                   |   2 +
 drivers/mfd/88pm88x.c                         |  62 ++++-
 drivers/regulator/88pm88x-regulator.c         | 214 ++++++++++++++++++
 drivers/regulator/Kconfig                     |   6 +
 drivers/regulator/Makefile                    |   1 +
 include/linux/mfd/88pm88x.h                   |  17 ++
 8 files changed, 341 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/regulator/marvell,88pm88x-regulator.yaml
 create mode 100644 drivers/regulator/88pm88x-regulator.c