Commit 6f7a71f8 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Mark Brown

regulator: Add driver for MT6331 PMIC regulators

Add a driver for the regulators found in the MT6331 PMIC.
This PMIC features six buck and 21 Low DropOut (LDO) regulators.
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220913123456.384513-3-angelogioacchino.delregno@collabora.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6385e216
......@@ -787,6 +787,15 @@ config REGULATOR_MT6323
This driver supports the control of different power rails of device
through regulator interface.
config REGULATOR_MT6331
tristate "MediaTek MT6331 PMIC"
depends on MFD_MT6397
help
Say y here to select this option to enable the power regulator of
MediaTek MT6331 PMIC.
This driver supports the control of different power rails of device
through regulator interface
config REGULATOR_MT6358
tristate "MediaTek MT6358 PMIC"
depends on MFD_MT6397
......
......@@ -95,6 +95,7 @@ obj-$(CONFIG_REGULATOR_MPQ7920) += mpq7920.o
obj-$(CONFIG_REGULATOR_MT6311) += mt6311-regulator.o
obj-$(CONFIG_REGULATOR_MT6315) += mt6315-regulator.o
obj-$(CONFIG_REGULATOR_MT6323) += mt6323-regulator.o
obj-$(CONFIG_REGULATOR_MT6331) += mt6331-regulator.o
obj-$(CONFIG_REGULATOR_MT6358) += mt6358-regulator.o
obj-$(CONFIG_REGULATOR_MT6359) += mt6359-regulator.o
obj-$(CONFIG_REGULATOR_MT6360) += mt6360-regulator.o
......
This diff is collapsed.
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022 Collabora Ltd.
* Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
*/
#ifndef __LINUX_REGULATOR_MT6331_H
#define __LINUX_REGULATOR_MT6331_H
enum {
/* BUCK */
MT6331_ID_VDVFS11 = 0,
MT6331_ID_VDVFS12,
MT6331_ID_VDVFS13,
MT6331_ID_VDVFS14,
MT6331_ID_VCORE2,
MT6331_ID_VIO18,
/* LDO */
MT6331_ID_VTCXO1,
MT6331_ID_VTCXO2,
MT6331_ID_AVDD32_AUD,
MT6331_ID_VAUXA32,
MT6331_ID_VCAMA,
MT6331_ID_VIO28,
MT6331_ID_VCAM_AF,
MT6331_ID_VMC,
MT6331_ID_VMCH,
MT6331_ID_VEMC33,
MT6331_ID_VGP1,
MT6331_ID_VSIM1,
MT6331_ID_VSIM2,
MT6331_ID_VMIPI,
MT6331_ID_VIBR,
MT6331_ID_VGP4,
MT6331_ID_VCAMD,
MT6331_ID_VUSB10,
MT6331_ID_VCAM_IO,
MT6331_ID_VSRAM_DVFS1,
MT6331_ID_VGP2,
MT6331_ID_VGP3,
MT6331_ID_VRTC,
MT6331_ID_VDIG18,
MT6331_ID_VREG_MAX
};
#endif /* __LINUX_REGULATOR_MT6331_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment