arm64: dts: mt8183-pumpkin: Couple VGPU and VSRAM_GPU regulators
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 1 Mar 2023 09:55:08 +0000 (10:55 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 30 Mar 2023 07:47:07 +0000 (09:47 +0200)
Add coupling for these regulators, as they have a strict voltage output
relation to satisfy in order to ensure GPU stable operation.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20230301095523.428461-5-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts

index a1d01639df30a450c77165cf4b7c2789dcb3ac26..c228f04d086bf23d9b5f19a608826c62cd70b2dc 100644 (file)
@@ -71,7 +71,6 @@
 
 &gpu {
        mali-supply = <&mt6358_vgpu_reg>;
-       sram-supply = <&mt6358_vsram_gpu_reg>;
 };
 
 &i2c0 {
        non-removable;
 };
 
+&mt6358_vgpu_reg {
+       regulator-coupled-with = <&mt6358_vsram_gpu_reg>;
+       regulator-coupled-max-spread = <100000>;
+};
+
+&mt6358_vsram_gpu_reg {
+       regulator-coupled-with = <&mt6358_vgpu_reg>;
+       regulator-coupled-max-spread = <100000>;
+};
+
 &pio {
        i2c_pins_0: i2c0 {
                pins_i2c{