rk3288: add dvfs dts config
author陈亮 <cl@rock-chips.com>
Wed, 19 Mar 2014 06:46:26 +0000 (23:46 -0700)
committer陈亮 <cl@rock-chips.com>
Wed, 19 Mar 2014 06:46:42 +0000 (23:46 -0700)
arch/arm/boot/dts/rk3288-tb.dts
arch/arm/boot/dts/rk3288.dtsi

index da2b20bf991c63937fcdb515f8085bc0f60519f3..2e4ba57b7ae4d0363dd8421317da6c246dd0bb62 100755 (executable)
        status = "okay";
 };
 
        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>;
 /include/ "rk808.dtsi"
 &rk808 {
        gpios =<&gpio0 GPIO_A4 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_B3 GPIO_ACTIVE_LOW>;
index 424499669f234c6f28850fd1c2723809e8d1a78e..08874d7d60676d351319a20950a9506f33758bd8 100755 (executable)
                pinctrl-0 = <&pwm3_pin>;
                status = "disabled";
        };
                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";
 
        ion {
                compatible = "rockchip,ion";