arm64: dts: rockchip: set rk3399 dynamic CPU power coefficients
authorBrian Norris <briannorris@chromium.org>
Fri, 23 Jun 2017 17:07:37 +0000 (10:07 -0700)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 16 Jul 2017 15:09:37 +0000 (17:09 +0200)
Provide the dynamic power coefficient of the big and little CPU
clusters. These numbers are currently in use on the Samsung Chromebook
Plus ("Kevin").

The power allocator thermal governor doesn't know how to do anything if
it doesn't get power parameters from its cooling devices (in this case,
CPUfreq). So this effectively enables the power-allocator governor.

Signed-off-by: Brian Norris <briannorris@chromium.org>
[set the property in each core node]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 21f32c42d7db0e4947b5bc0f8813e15ab92fc07c..cac5c42053f259b0411d9747cd2b8cd3f4acc9f5 100644 (file)
                        enable-method = "psci";
                        #cooling-cells = <2>; /* min followed by max */
                        clocks = <&cru ARMCLKL>;
+                       dynamic-power-coefficient = <100>;
                };
 
                cpu_l1: cpu@1 {
                        reg = <0x0 0x1>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
+                       dynamic-power-coefficient = <100>;
                };
 
                cpu_l2: cpu@2 {
                        reg = <0x0 0x2>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
+                       dynamic-power-coefficient = <100>;
                };
 
                cpu_l3: cpu@3 {
                        reg = <0x0 0x3>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKL>;
+                       dynamic-power-coefficient = <100>;
                };
 
                cpu_b0: cpu@100 {
                        enable-method = "psci";
                        #cooling-cells = <2>; /* min followed by max */
                        clocks = <&cru ARMCLKB>;
+                       dynamic-power-coefficient = <100>;
                };
 
                cpu_b1: cpu@101 {
                        reg = <0x0 0x101>;
                        enable-method = "psci";
                        clocks = <&cru ARMCLKB>;
+                       dynamic-power-coefficient = <100>;
                };
        };