arm64: dts: rk3399: ajust ipa parameters
authorRocky Hao <rocky.hao@rock-chips.com>
Wed, 27 Jul 2016 08:46:31 +0000 (16:46 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 27 Jul 2016 11:53:58 +0000 (19:53 +0800)
Big cores' power consumption and gpu's are greatly reduced, ipa parameters
are ajusted accordingly.

Change-Id: Ibfdae1856c2f1c2cf80a0a2f963ec878053c6ef0
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-evb-rev1.dtsi
arch/arm64/boot/dts/rockchip/rk3399-evb-rev2.dtsi
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 9a609d77dfa1a7c73f36c4cc3ed615024420fc45..7fe93200650dc48c0b4b7d9ebc010c79235e5368 100644 (file)
        };
 };
 
+&cpu_l0 {
+       dynamic-power-coefficient = <121>;
+};
+
+&cpu_b0 {
+       dynamic-power-coefficient = <1068>;
+};
+
+&soc_thermal {
+       sustainable-power = <1600>; /* milliwatts */
+
+       cooling-maps {
+               map0 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <10240>;
+               };
+               map1 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <1024>;
+               };
+               map2 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <10240>;
+               };
+       };
+};
+
+&gpu_power_model {
+       dynamic-power = <1780>;
+};
+
 &i2c0 {
        mp8865: mp8865@68 {
                compatible = "mps,mp8865";
index 1d1f41063f8105901f52a9f47d1e376d669cfc0c..89043adc5dbea88edabc3c0e858de28bf54d6af2 100644 (file)
        };
 };
 
+&cpu_l0 {
+       dynamic-power-coefficient = <121>;
+};
+
+&cpu_b0 {
+       dynamic-power-coefficient = <1068>;
+};
+
 &cluster0_opp {
        opp@408000000 {
                opp-hz = /bits/ 64 <408000000>;
        >;
 };
 
+&soc_thermal {
+       sustainable-power = <1600>; /* milliwatts */
+
+       cooling-maps {
+               map0 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <10240>;
+               };
+               map1 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <1024>;
+               };
+               map2 {
+                       trip = <&target>;
+                       cooling-device =
+                               <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                       contribution = <10240>;
+               };
+       };
+};
+
+&gpu_power_model {
+       dynamic-power = <1780>;
+};
+
 &i2c0 {
        vdd_cpu_b: syr827@40 {
                compatible = "silergy,syr827";
index d51384898111cfd1533547be0daa8fe28b1d5113..a8cc5bd22bdcff7ae18c885c8e9a372ad8f22b11 100644 (file)
                        reg = <0x0 0x0>;
                        enable-method = "psci";
                        #cooling-cells = <2>; /* min followed by max */
-                       dynamic-power-coefficient = <121>;
+                       dynamic-power-coefficient = <100>;
                        clocks = <&cru ARMCLKL>;
                        cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster0_opp>;
                        reg = <0x0 0x100>;
                        enable-method = "psci";
                        #cooling-cells = <2>; /* min followed by max */
-                       dynamic-power-coefficient = <1068>;
+                       dynamic-power-coefficient = <436>;
                        clocks = <&cru ARMCLKB>;
                        cpu-idle-states = <&cpu_sleep>;
                        operating-points-v2 = <&cluster1_opp>;
                soc_thermal: soc-thermal {
                        polling-delay-passive = <20>; /* milliseconds */
                        polling-delay = <1000>; /* milliseconds */
-                       sustainable-power = <1600>; /* milliwatts */
+                       sustainable-power = <1000>; /* milliwatts */
 
                        thermal-sensors = <&tsadc 0>;
 
                                        trip = <&target>;
                                        cooling-device =
                                                <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
-                                       contribution = <10240>;
+                                       contribution = <4096>;
                                };
                                map1 {
                                        trip = <&target>;
                                        trip = <&target>;
                                        cooling-device =
                                                <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
-                                       contribution = <10240>;
+                                       contribution = <4096>;
                                };
                        };
                };
                power-off-delay-ms = <200>;
                status = "disabled";
 
-               power_model {
+               gpu_power_model: power_model {
                        compatible = "arm,mali-simple-power-model";
                        voltage = <900>;
                        frequency = <500>;
                        static-power = <300>;
-                       dynamic-power = <1780>;
+                       dynamic-power = <396>;
                        ts = <32000 4700 (-80) 2>;
                        thermal-zone = "gpu-thermal";
                };