mfd: mt6397: Add basic support for MT6331+MT6332 PMIC
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 27 Jun 2022 12:39:54 +0000 (14:39 +0200)
committerLee Jones <lee@kernel.org>
Tue, 19 Jul 2022 09:54:41 +0000 (10:54 +0100)
commitd9cd0bc604705eb01497c3e483f8820a9677c682
tree107e4b45042f6959d73004bcd9e2069ef1de6530
parent371a9fcac47539ee7b3e5180c85eb6931177d7ab
mfd: mt6397: Add basic support for MT6331+MT6332 PMIC

Add support for the MT6331 PMIC with MT6332 Companion PMIC, found
in MT6795 Helio X10 smartphone platforms.

This combo has support for multiple devices but, for a start,
only the following have been implemented:
- Regulators (two instances, one in MT6331, one in MT6332)
- RTC (MT6331)
- Keys (MT6331)
- Interrupts (MT6331 also dispatches MT6332's interrupts)

There's more to be implemented, especially for MT6332, which
will come at a later stage.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220627123954.64299-1-angelogioacchino.delregno@collabora.com
drivers/mfd/mt6397-core.c
drivers/mfd/mt6397-irq.c
include/linux/mfd/mt6331/core.h [new file with mode: 0644]
include/linux/mfd/mt6331/registers.h [new file with mode: 0644]
include/linux/mfd/mt6332/core.h [new file with mode: 0644]
include/linux/mfd/mt6332/registers.h [new file with mode: 0644]
include/linux/mfd/mt6397/core.h