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

index fbe14b13051a6c098692fc1fccf427425e9e0e50..de9778c85b9426435110914c1fe88914c38af21c 100644 (file)
 
 &gpu {
        mali-supply = <&mt6358_vgpu_reg>;
-       sram-supply = <&mt6358_vsram_gpu_reg>;
 };
 
 &i2c0 {
        Avdd-supply = <&mt6358_vaud28_reg>;
 };
 
+&mt6358_vgpu_reg {
+       regulator-coupled-with = <&mt6358_vsram_gpu_reg>;
+       regulator-coupled-max-spread = <100000>;
+};
+
 &mt6358_vsim1_reg {
        regulator-min-microvolt = <2700000>;
        regulator-max-microvolt = <2700000>;
        regulator-max-microvolt = <2700000>;
 };
 
+&mt6358_vsram_gpu_reg {
+       regulator-coupled-with = <&mt6358_vgpu_reg>;
+       regulator-coupled-max-spread = <100000>;
+};
+
 &pio {
        aud_pins_default: audiopins {
                pins_bus {