soc: mediatek: mediatek-regulator-coupler: Support mt8188
authorPablo Sun <pablo.sun@mediatek.com>
Wed, 2 Oct 2024 02:21:37 +0000 (10:21 +0800)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 21 Oct 2024 14:00:51 +0000 (16:00 +0200)
The Mali GPU in mt8188 also requires coupled power supplies,
that is, the "vsram" voltage should follow the "vgpu" voltage.
Therefore add the compatible to enable this coupling behavior.

Signed-off-by: Pablo Sun <pablo.sun@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241002022138.29241-6-pablo.sun@mediatek.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
drivers/soc/mediatek/mtk-regulator-coupler.c

index ad2ed42..0b6a288 100644 (file)
@@ -147,6 +147,7 @@ static int mediatek_regulator_coupler_init(void)
 {
        if (!of_machine_is_compatible("mediatek,mt8183") &&
            !of_machine_is_compatible("mediatek,mt8186") &&
+           !of_machine_is_compatible("mediatek,mt8188") &&
            !of_machine_is_compatible("mediatek,mt8192"))
                return 0;