[PATCH 0/2] regulator: mt6363: Fix register access and VEMC voltage handling

From: Alexandre Mergnat

Date: Mon Nov 02 2026 - 12:21:05 EST


Testing the MT6363 regulator driver showed:
- the VEMC (UFS VCC) voltage reported as 1.25 V while the PMIC is
programmed to 2.55 V
- regmap debugfs showing each register merged with the next one

Reading the code with the datasheet showed more problems:
- a VEMC voltage change to the misreported value is skipped while
VEMC is enabled
- disabling VS2 or a VBUCK rail also clears the enable bits of VS1,
VS3 and three VSRAM rails
- the BUCK and TMA key writes also overwrite the two registers after
each key
- with hardware trap 1, VEMC voltage changes are not applied and the
voltage is misreported

Signed-off-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>
---
Alexandre Mergnat (2):
regulator: mt6363: Use 8-bit register values
regulator: mt6363: Fix VEMC voltage selection

drivers/regulator/mt6363-regulator.c | 131 +++++++++--------------------
include/linux/regulator/mt6363-regulator.h | 1 +
2 files changed, 39 insertions(+), 93 deletions(-)
---
base-commit: cdfbeace852d9e72b43e23572e37fab433a28764
change-id: 20261020-rgp-67-mt6363-regulator-fixes-bed357aac42c

Best regards,
--
Alexandre Mergnat <amergnat@xxxxxxxxxxxx>