Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: dts: mediatek: mt8195-cherry: Assign sram supply to MFG1 pd

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>

+5 -2
+4 -1
arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi
··· 480 480 domain-supply = <&mt6315_7_vbuck1>; 481 481 }; 482 482 483 + &mfg1 { 484 + domain-supply = <&mt6359_vsram_others_ldo_reg>; 485 + }; 486 + 483 487 &mmc0 { 484 488 status = "okay"; 485 489 ··· 554 550 555 551 /* for GPU SRAM */ 556 552 &mt6359_vsram_others_ldo_reg { 557 - regulator-always-on; 558 553 regulator-min-microvolt = <750000>; 559 554 regulator-max-microvolt = <750000>; 560 555 };
+1 -1
arch/arm64/boot/dts/mediatek/mt8195.dtsi
··· 538 538 #size-cells = <0>; 539 539 #power-domain-cells = <1>; 540 540 541 - power-domain@MT8195_POWER_DOMAIN_MFG1 { 541 + mfg1: power-domain@MT8195_POWER_DOMAIN_MFG1 { 542 542 reg = <MT8195_POWER_DOMAIN_MFG1>; 543 543 clocks = <&apmixedsys CLK_APMIXED_MFGPLL>, 544 544 <&topckgen CLK_TOP_MFG_CORE_TMP>;