]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mfd: mt6397-core: Add support for AUXADCs on MT6357/58/59 PMICs
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 30 May 2024 09:34:09 +0000 (11:34 +0200)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 16:08:03 +0000 (17:08 +0100)
Add the relevant AUXADC driver entries to the MFD cells of the
MT6357, MT6358, MT6359 PMICs to support their Auxiliary ADCs.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240530093410.112716-4-angelogioacchino.delregno@collabora.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/mt6397-core.c

index 4fd4a2da5ad73c9c57c7c5f0d356d54892f6dd20..c2939e785818fc0bd132789cd28a51b02cb6d82c 100644 (file)
@@ -135,6 +135,9 @@ static const struct mfd_cell mt6323_devs[] = {
 
 static const struct mfd_cell mt6357_devs[] = {
        {
+               .name = "mt6359-auxadc",
+               .of_compatible = "mediatek,mt6357-auxadc"
+       }, {
                .name = "mt6357-regulator",
        }, {
                .name = "mt6357-rtc",
@@ -175,6 +178,9 @@ static const struct mfd_cell mt6331_mt6332_devs[] = {
 
 static const struct mfd_cell mt6358_devs[] = {
        {
+               .name = "mt6359-auxadc",
+               .of_compatible = "mediatek,mt6358-auxadc"
+       }, {
                .name = "mt6358-regulator",
                .of_compatible = "mediatek,mt6358-regulator"
        }, {
@@ -194,6 +200,10 @@ static const struct mfd_cell mt6358_devs[] = {
 };
 
 static const struct mfd_cell mt6359_devs[] = {
+       {
+               .name = "mt6359-auxadc",
+               .of_compatible = "mediatek,mt6359-auxadc"
+       },
        { .name = "mt6359-regulator", },
        {
                .name = "mt6359-rtc",