Re: [PATCH v3 7/9] regulator: mt6392: Add support for MT6392 regulator

From: AngeloGioacchino Del Regno

Date: Wed Mar 18 2026 - 08:43:58 EST


Il 17/03/26 19:43, Luca Leonardo Scorcia ha scritto:
From: Fabien Parent <parent.f@xxxxxxxxx>

The MT6392 is a regulator found on boards based on the MediaTek
MT8167, MT8516, and probably other SoCs. It is a so called PMIC and
connects as a slave to a SoC using SPI, wrapped inside PWRAP.

Signed-off-by: Fabien Parent <parent.f@xxxxxxxxx>
Co-developed-by: Val Packett <val@xxxxxxxxxxxx>
Signed-off-by: Val Packett <val@xxxxxxxxxxxx>
Signed-off-by: Luca Leonardo Scorcia <l.scorcia@xxxxxxxxx>
---
drivers/regulator/Kconfig | 9 +
drivers/regulator/Makefile | 1 +
drivers/regulator/mt6392-regulator.c | 487 +++++++++++++++++++++
include/linux/regulator/mt6392-regulator.h | 40 ++
4 files changed, 537 insertions(+)
create mode 100644 drivers/regulator/mt6392-regulator.c
create mode 100644 include/linux/regulator/mt6392-regulator.h


..snip..

+
+/* The array is indexed by id(MT6392_ID_XXX) */
+static struct mt6392_regulator_info mt6392_regulators[] = {
+ MT6392_BUCK("buck_vproc", VPROC, 700000, 1493750, 6250,

s/buck_//g
s/ldo_//g

after which

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>