Re: [PATCH 08/17] mfd: sec: Add support for S2MPG11 PMIC via ACPM
From: Lee Jones
Date: Fri Jun 13 2025 - 10:25:10 EST
On Wed, 04 Jun 2025, André Draszik wrote:
> Add support for Samsung's S2MPG11 PMIC, which is a Power Management IC
> for mobile applications with buck converters, various LDOs, and power
> meters. It typically complements an S2MPG10 PMIC in a main/sub
> configuration as the sub-PMIC.
>
> Like S2MPG10, communication is not via I2C, but via the Samsung ACPM
> firmware.
>
> Note: The firmware uses the ACPM channel ID and the Speedy channel ID
> to select the PMIC address. Since these are firmware properties, they
> can not be retrieved from DT, but instead are deducted from the
> compatible for now.
>
> Signed-off-by: André Draszik <andre.draszik@xxxxxxxxxx>
>
> ---
> Note: checkpatch suggests to update MAINTAINERS, but the new file is
> covered already due to using a wildcard.
> ---
> drivers/mfd/sec-acpm.c | 213 +++++++++++++++++-
> drivers/mfd/sec-common.c | 18 +-
> drivers/mfd/sec-irq.c | 67 +++++-
> include/linux/mfd/samsung/core.h | 1 +
> include/linux/mfd/samsung/irq.h | 99 +++++++++
> include/linux/mfd/samsung/s2mpg11.h | 420 ++++++++++++++++++++++++++++++++++++
> 6 files changed, 807 insertions(+), 11 deletions(-)
Nice patch.
[...]
> +static const struct mfd_cell s2mpg11_devs[] = {
> + MFD_CELL_NAME("s2mpg11-meter"),
> + MFD_CELL_BASIC("s2mpg11-regulator", NULL, NULL, 0, S2MPG10_REGULATOR_CELL_ID_BUCKS),
> + MFD_CELL_BASIC("s2mpg11-regulator", NULL, NULL, 0, S2MPG10_REGULATOR_CELL_ID_LDOS),
I still don't understand this. Let's talk on the previous patch.
> + MFD_CELL_OF("s2mpg11-gpio", NULL, NULL, 0, 0, "samsung,s2mpg11-gpio"),
> +};
--
Lee Jones [李琼斯]