OSDN Git Service

dts: msm8998: add undervolt for GPU and CPU
authorfreak07 <michalechner92@googlemail.com>
Wed, 27 Sep 2017 08:50:40 +0000 (10:50 +0200)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:32 +0000 (04:42 +0800)
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: celtare21 <celtare21@gmail.com>
Change-Id: I767e8aa325efe1b6b9361676190f9301b3a3614d

arch/arm/boot/dts/qcom/msm8998-v2.dtsi

index 1bffd03..9ac0865 100644 (file)
 
 &pm8998_s10 {
        regulator-min-microvolt = <568000>;
-       regulator-max-microvolt = <1056000>;
+       regulator-max-microvolt = <956000>;
 };
 
 &pm8998_s13 {
        regulator-min-microvolt = <568000>;
-       regulator-max-microvolt = <1136000>;
+       regulator-max-microvolt = <956000>;
 };
 
 &pcie0 {
 &apc0_cpr {
        compatible = "qcom,cprh-msm8998-v2-kbss-regulator";
        qcom,cpr-corner-switch-delay-time = <1042>;
-       qcom,cpr-aging-ref-voltage = <1056000>;
+       qcom,cpr-aging-ref-voltage = <956000>;
        qcom,apm-threshold-voltage = <800000>;
        qcom,apm-hysteresis-voltage = <0>;
        qcom,mem-acc-threshold-voltage = <852000>;
        qcom,cpr-corner-fmax-map = <8 11 18 22>;
 
        qcom,cpr-voltage-ceiling =
-               <828000  828000  828000  828000  828000
-                828000  828000  828000  828000  828000
-                828000  900000  900000  900000  900000
-                900000  900000  900000  952000  952000
-               1056000 1056000>;
+               <628000  628000  628000  628000  628000
+                628000  628000  628000  628000  628000
+                628000  750000  750000  750000  750000
+                750000  750000  800000  850000  875000
+                956000  956000>;
 
        qcom,cpr-voltage-floor =
                <568000  568000  568000  568000  568000
 &apc1_cpr {
        compatible = "qcom,cprh-msm8998-v2-kbss-regulator";
        qcom,cpr-corner-switch-delay-time = <1042>;
-       qcom,cpr-aging-ref-voltage = <1136000>;
+       qcom,cpr-aging-ref-voltage = <1030000>;
        qcom,apm-threshold-voltage = <800000>;
        qcom,apm-hysteresis-voltage = <0>;
        qcom,mem-acc-threshold-voltage = <852000>;
 
        qcom,cpr-voltage-ceiling =
                /* Speed bin 0 */
-               <828000  828000  828000  828000  828000
-                828000  828000  828000  828000  828000
-                828000  828000  900000  900000  900000
-                900000  900000  900000  900000  900000
-                952000  952000  952000 1136000 1136000
-               1136000 1136000 1136000 1136000 1136000
-               1136000 1136000>,
+               <628000  628000  628000  628000  628000
+                628000  628000  628000  628000  628000
+                628000  628000  800000  800000  800000
+                800000  800000  800000  800000  800000
+                852000  852000  852000 1030000 1030000
+               1030000 1030000 1030000 1030000 1030000
+               1030000 1030000>,
                /* Speed bin 1 */
-               <828000  828000  828000  828000  828000
-                828000  828000  828000  828000  828000
-                828000  828000  900000  900000  900000
-                900000  900000  900000  900000  900000
-                952000  952000  952000 1136000 1136000
-               1136000>,
+               <628000  628000  628000  628000  628000
+                628000  628000  628000  628000  628000
+                628000  628000  800000  800000  800000
+                800000  800000  800000  800000  800000
+                852000  852000  852000 1030000 1030000
+               1030000>,
                /* Speed bin 2 */
-               <828000  828000  828000  828000  828000
-                828000  828000  828000  828000  828000
-                828000  828000  900000  900000  900000
-                900000  900000  900000  900000  900000
-                952000  952000  952000 1136000 1136000
-               1136000 1136000 1136000 1136000 1136000>,
+               <628000  628000  628000  628000  628000
+                628000  628000  628000  628000  628000
+                628000  628000  800000  800000  800000
+                800000  800000  800000  800000  800000
+                852000  852000  852000 1030000 1030000
+               1030000 1030000 1030000 1030000 1030000>,
                /* Speed bin 3 */
-               <828000  828000  828000  828000  828000
-                828000  828000  828000  828000  828000
-                828000  828000  900000  900000  900000
-                900000  900000  900000  900000  900000
-                952000  952000  952000 1136000 1136000
-               1136000 1136000 1136000 1136000 1136000
-               1136000>;
+               <628000  628000  628000  628000  628000
+                628000  628000  628000  628000  628000
+                628000  628000  800000  800000  800000
+                800000  800000  800000  800000  800000
+                852000  852000  852000 1030000 1030000
+               1030000 1030000 1030000 1030000 1030000
+               1030000>;
 
        qcom,cpr-voltage-floor =
                /* Speed bin 0 */
 
 &gfx_cpr {
        compatible = "qcom,cpr4-msm8998-v2-mmss-regulator";
-       qcom,cpr-aging-ref-voltage = <1088000>;
+       qcom,cpr-aging-ref-voltage = <988000>;
 };
 
 &gfx_vreg {
        qcom,cpr-corner-fmax-map = <1 3 5 8>;
 
        qcom,cpr-voltage-ceiling =
-               <716000 716000 772000 880000 908000 948000 1016000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>,
-               <724000 724000 772000 832000 916000 968000 1024000 1088000>;
+               <616000 616000 672000 780000 808000 848000  916000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>,
+               <624000 624000 672000 732000 816000 868000  924000  988000>;
 
        qcom,cpr-voltage-floor =
                <516000 516000 532000 584000 632000 672000 712000 756000>;
                                0x7c 0x18c /* pll_clock_inverter */
                                0x80 0x2c /* pll_cmode */
                                0x0a 0x184 /* pll_lock_delay */
-                               0xa5 0x23c /* tune1 */
-                               0x09 0x240 /* tune2 */
+                               0xf5 0x23c /* tune1 */
+                               0x0b 0x240 /* tune2 */
                                0x19 0xb4>; /* digital_timers_two */
 };