arm64: dts: mediatek: mt8195-cherry: Assign sram supply to MFG1 pd
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 30 Oct 2023 13:25:23 +0000 (14:25 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 11 Dec 2023 10:13:00 +0000 (11:13 +0100)
Add a phandle to the MT8195_POWER_DOMAIN_MFG1 power domain and
assign the GPU SRAM (vsram_others) supply to that in mt8195-cherry:
this allows to keep the sram powered up while the GPU is used.

This means that it's now possible to remove the regulator-always-on
property from the mt6359_vsram_others_ldo_reg vreg, so that it will
be switched on and off during suspend.

Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
arch/arm64/boot/dts/mediatek/mt8195.dtsi

index 07b643065a588edfb0cf965a002854bade4a4b82..5cfe104ee13658aa790fbe53d6678518e048dcd5 100644 (file)
        domain-supply = <&mt6315_7_vbuck1>;
 };
 
+&mfg1 {
+       domain-supply = <&mt6359_vsram_others_ldo_reg>;
+};
+
 &mmc0 {
        status = "okay";
 
 
 /* for GPU SRAM */
 &mt6359_vsram_others_ldo_reg {
-       regulator-always-on;
        regulator-min-microvolt = <750000>;
        regulator-max-microvolt = <750000>;
 };
index 54c674c45b49a27c223b4240db452284f01f5f15..0d7735778709c1b4951ed38bd466f744a34500a8 100644 (file)
                                        #size-cells = <0>;
                                        #power-domain-cells = <1>;
 
-                                       power-domain@MT8195_POWER_DOMAIN_MFG1 {
+                                       mfg1: power-domain@MT8195_POWER_DOMAIN_MFG1 {
                                                reg = <MT8195_POWER_DOMAIN_MFG1>;
                                                clocks = <&apmixedsys CLK_APMIXED_MFGPLL>,
                                                         <&topckgen CLK_TOP_MFG_CORE_TMP>;