power: S905Y2 limit cpu and gpu freq to reduce HDMI TX consumption [1/1]
authorhuijie.huang <huijie.huang@amlogic.com>
Thu, 28 Feb 2019 11:02:42 +0000 (19:02 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 19 Mar 2019 03:05:19 +0000 (19:05 -0800)
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 <huijie.huang@amlogic.com>
arch/arm/boot/dts/amlogic/g12a_s905y2_u221.dts
arch/arm64/boot/dts/amlogic/g12a_s905y2_u221.dts

index d7a1c19..fc24b6d 100644 (file)
                        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 {
        status = "okay";
 };
 
+&gpu{
+       /*max gpu is 500MHz*/
+       tbl = <&dvfs285_cfg
+               &dvfs400_cfg
+               &dvfs500_cfg>;
+};
+
+&amhdmitx {
+       dongle_mode = <1>;
+};
index c2099c2..96fc0fb 100644 (file)
                        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 {
        status = "okay";
 };
 
+&gpu{
+       /*max gpu is 500MHz*/
+       tbl = <&dvfs285_cfg
+               &dvfs400_cfg
+               &dvfs500_cfg>;
+};
+
+&amhdmitx {
+       dongle_mode = <1>;
+};