From b6352b91da5825a158c2a98334abc50628b22745 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=99=88=E4=BA=AE?= Date: Tue, 18 Mar 2014 23:46:26 -0700 Subject: [PATCH] rk3288: add dvfs dts config --- arch/arm/boot/dts/rk3288-tb.dts | 37 ++++++++++++++++++++++ arch/arm/boot/dts/rk3288.dtsi | 56 +++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-tb.dts b/arch/arm/boot/dts/rk3288-tb.dts index da2b20bf991c..2e4ba57b7ae4 100755 --- a/arch/arm/boot/dts/rk3288-tb.dts +++ b/arch/arm/boot/dts/rk3288-tb.dts @@ -334,6 +334,43 @@ status = "okay"; }; + +&clk_core_dvfs_table { + operating-points = < + /* KHz uV */ + 312000 1100000 + 504000 1100000 + 816000 1100000 + 1008000 1100000 + >; +}; + +&clk_gpu_dvfs_table { + operating-points = < + /* KHz uV */ + 200000 1200000 + 300000 1200000 + 400000 1200000 + >; +}; + +&clk_ddr_dvfs_table { + operating-points = < + /* KHz uV */ + 200000 1200000 + 300000 1200000 + 400000 1200000 + >; + + freq_table = < + /*status freq(KHz)*/ + SYS_STATUS_NORMAL 400000 + SYS_STATUS_SUSPEND 200000 + SYS_STATUS_VIDEO 300000 + SYS_STATUS_DUALVIEW 500000 + >; +}; + /include/ "rk808.dtsi" &rk808 { gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>; diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 424499669f23..08874d7d6067 100755 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -690,6 +690,62 @@ pinctrl-0 = <&pwm3_pin>; status = "disabled"; }; + dvfs { + vd_arm: + vd_arm { + regulator_name="vdd_arm"; + suspend_volt=<1000>; //mV + pd_a12 { + clk_core_dvfs_table: + clk_core { + operating-points = < + /* KHz uV */ + 312000 1100000 + 504000 1100000 + 816000 1100000 + 1008000 1100000 + >; + status = "okay"; + }; + }; + }; + + vd_logic: + vd_logic { + regulator_name="vdd_logic"; + suspend_volt=<1000>; //mV + pd_ddr { + clk_ddr_dvfs_table: + clk_ddr { + operating-points = < + /* KHz uV */ + 200000 1200000 + 300000 1200000 + 400000 1200000 + >; + status = "disable"; + }; + }; + }; + + vd_gpu: + vd_gpu { + regulator_name="vdd_gpu"; + suspend_volt=<1000>; //mV + pd_gpu { + clk_gpu_dvfs_table: + clk_gpu { + operating-points = < + /* KHz uV */ + 200000 1200000 + 300000 1200000 + 400000 1200000 + >; + status = "okay"; + }; + }; + }; + }; ion { compatible = "rockchip,ion"; -- 2.34.1