From 529190e011ced4a95a7eff627c8890fa10f24ac0 Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Fri, 20 Oct 2017 18:09:38 +0800 Subject: [PATCH] ARM: dts: rk3036: add the opp table for rk3036 In order to save power and improve the performance, we can add the opp table for rk3036 SoCs. Also, make sure the codec works happily, we should ensure the arm/logic voltage is greater than 1v. Change-Id: I9aa17be547eb21e5a83c09780356436c3075bae6 Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3036.dtsi | 39 ++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/rk3036.dtsi b/arch/arm/boot/dts/rk3036.dtsi index 7a9fd4f5b921..fe914ab3424d 100644 --- a/arch/arm/boot/dts/rk3036.dtsi +++ b/arch/arm/boot/dts/rk3036.dtsi @@ -74,11 +74,7 @@ compatible = "arm,cortex-a7"; reg = <0xf00>; resets = <&cru SRST_CORE0>; - operating-points = < - /* KHz uV */ - 816000 1000000 - >; - clock-latency = <40000>; + operating-points-v2 = <&cpu0_opp_table>; clocks = <&cru ARMCLK>; }; @@ -87,6 +83,39 @@ compatible = "arm,cortex-a7"; reg = <0xf01>; resets = <&cru SRST_CORE1>; + operating-points-v2 = <&cpu0_opp_table>; + }; + }; + + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-408000000 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <40000>; + }; + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <40000>; + }; + opp-816000000 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <1100000>; + clock-latency-ns = <40000>; + opp-suspend; + }; + opp-1008000000 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <1150000>; + clock-latency-ns = <40000>; + }; + opp-1200000000 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1225000>; + clock-latency-ns = <40000>; }; };