Commit 1cc5a52e authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Mark Brown

regulator: Add driver for MT6332 PMIC regulators

Add a driver for the regulators found in the MT6332 PMICs,
including six buck and four LDO regulators.
Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220913123456.384513-5-angelogioacchino.delregno@collabora.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e22943e3
......@@ -796,6 +796,15 @@ config REGULATOR_MT6331
This driver supports the control of different power rails of device
through regulator interface
config REGULATOR_MT6332
tristate "MediaTek MT6332 PMIC"
depends on MFD_MT6397
help
Say y here to select this option to enable the power regulator of
MediaTek MT6332 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
......
......@@ -96,6 +96,7 @@ 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_MT6332) += mt6332-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_MT6332_H
#define __LINUX_REGULATOR_MT6332_H
enum {
/* BUCK */
MT6332_ID_VDRAM = 0,
MT6332_ID_VDVFS2,
MT6332_ID_VPA,
MT6332_ID_VRF1,
MT6332_ID_VRF2,
MT6332_ID_VSBST,
/* LDO */
MT6332_ID_VAUXB32,
MT6332_ID_VBIF28,
MT6332_ID_VDIG18,
MT6332_ID_VSRAM_DVFS2,
MT6332_ID_VUSB33,
MT6332_ID_VREG_MAX
};
#endif /* __LINUX_REGULATOR_MT6332_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