From 4562dc2c0b09b4e285873985989e369bdbf17553 Mon Sep 17 00:00:00 2001 From: "huijie.huang" Date: Thu, 28 Feb 2019 19:02:42 +0800 Subject: [PATCH] power: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1] PD#SWPL-4653 Problem: optimize the S905Y2 power consumption Solution: limit CPU and GPU frequency, reduce hdmi tx consumption Verify: test pass on u221 Change-Id: I1d95068f8beb5616c9aeea91122b5233e479db8b Signed-off-by: huijie.huang --- arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts | 36 ++++++++++++++++-------- arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts | 36 ++++++++++++++++-------- 2 files changed, 48 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts b/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts index d7a1c19..fc24b6d 100644 --- a/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts +++ b/arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts @@ -669,18 +669,20 @@ opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <831000>; }; - opp08 { - opp-hz = /bits/ 64 <1608000000>; - opp-microvolt = <871000>; - }; - opp09 { - opp-hz = /bits/ 64 <1704000000>; - opp-microvolt = <921000>; - }; - opp10 { - opp-hz = /bits/ 64 <1800000000>; - opp-microvolt = <981000>; - }; +/* + * opp08 { + * opp-hz = /bits/ 64 <1608000000>; + * opp-microvolt = <871000>; + * }; + * opp09 { + * opp-hz = /bits/ 64 <1704000000>; + * opp-microvolt = <921000>; + * }; + * opp10 { + * opp-hz = /bits/ 64 <1800000000>; + * opp-microvolt = <981000>; + * }; + */ }; cpufreq-meson { @@ -1298,3 +1300,13 @@ status = "okay"; }; +&gpu{ + /*max gpu is 500MHz*/ + tbl = <&dvfs285_cfg + &dvfs400_cfg + &dvfs500_cfg>; +}; + +&amhdmitx { + dongle_mode = <1>; +}; diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts b/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts index c2099c2..96fc0fb 100644 --- a/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts +++ b/arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts @@ -667,18 +667,20 @@ opp-hz = /bits/ 64 <1512000000>; opp-microvolt = <831000>; }; - opp08 { - opp-hz = /bits/ 64 <1608000000>; - opp-microvolt = <871000>; - }; - opp09 { - opp-hz = /bits/ 64 <1704000000>; - opp-microvolt = <921000>; - }; - opp10 { - opp-hz = /bits/ 64 <1800000000>; - opp-microvolt = <981000>; - }; +/* + * opp08 { + * opp-hz = /bits/ 64 <1608000000>; + * opp-microvolt = <871000>; + * }; + * opp09 { + * opp-hz = /bits/ 64 <1704000000>; + * opp-microvolt = <921000>; + * }; + * opp10 { + * opp-hz = /bits/ 64 <1800000000>; + * opp-microvolt = <981000>; + * }; + */ }; cpufreq-meson { @@ -1296,3 +1298,13 @@ status = "okay"; }; +&gpu{ + /*max gpu is 500MHz*/ + tbl = <&dvfs285_cfg + &dvfs400_cfg + &dvfs500_cfg>; +}; + +&amhdmitx { + dongle_mode = <1>; +}; -- 2.7.4