From bda0252702aa2ec3cc40cc7672faf21294d8bd87 Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Tue, 25 Jul 2017 17:22:55 +0800 Subject: [PATCH] UPSTREAM: arm64: dts: rockchip: update dynamic-power-coefficient for rk3399 This patch updates the dynamic-power-coefficient for big cluster on rk3399 SoCs. The dynamic power consumption of the CPU is proportional to the square of the Voltage (V) and the clock frequency (f). The coefficient is used to calculate the dynamic power as below - Pdyn = dynamic-power-coefficient * V^2 * f Where Voltage is in uV, frequency is in MHz. As the following is the tested data on rk3399's big cluster. frequency(MHz) Voltage(V) Current(mA) Dynamic-power-coefficient 24 0.8 15 48 0.8 23 ~417 96 0.8 40 ~443 216 0.8 82 ~438 312 0.8 115 ~430 408 0.8 150 ~455 So the dynamic-power-coefficient average value is about 436. Signed-off-by: Caesar Wang Signed-off-by: Heiko Stuebner Signed-off-by: Jianqun Xu Conflicts: arch/arm64/boot/dts/rockchip/rk3399.dtsi Change-Id: I05a573eb7e0a74301f35fdeb2517f7fe3be9b8fb --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 550ee28d1ab3..5a7b70a5203e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -159,7 +159,7 @@ #cooling-cells = <2>; /* min followed by max */ clocks = <&cru ARMCLKB>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; - dynamic-power-coefficient = <100>; + dynamic-power-coefficient = <436>; }; cpu_b1: cpu@101 { @@ -169,7 +169,7 @@ enable-method = "psci"; clocks = <&cru ARMCLKB>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; - dynamic-power-coefficient = <100>; + dynamic-power-coefficient = <436>; }; idle-states {