arm64: dts: mediatek: mt8183-evb: Couple VGPU and VSRAM_GPU regulators
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 1 Mar 2023 09:55:09 +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-6-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-evb.dts

index 52dc4a50e34d324193464e663fac2232081bea46..fd327437e932a6332ae40705a89ca54f9c09fa35 100644 (file)
@@ -52,7 +52,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{