From ef7be38dda56059775c96408938657123b7cc8f8 Mon Sep 17 00:00:00 2001 From: Octav Zlatior Date: Mon, 11 May 2015 17:34:31 +0200 Subject: ARM: sun6i: set cpu operating points and ramp-rate * operating points for different frequencies with voltages set to optimize power consumption * clock latency and ramp-rate: these values seem to provide enough time for the voltage to adjust before frequency changes Signed-off-by: Octav Zlatior --- arch/arm/boot/dts/sun6i-a31-pangolin.dts | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts index 249f4b1b6006..06024744bb9f 100644 --- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts +++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts @@ -81,14 +81,17 @@ &cpu0 { cpu-supply = <&vdd_cpu>; operating-points = < - /* kHz uV */ - 1008000 1200000 - 864000 1200000 - 720000 1100000 - 480000 1000000 - 240000 1000000 - 120000 1000000 + /* kHz uV */ + 1200000 1320000 + 1080000 1220000 + 832000 1120000 + 600000 1020000 + 480000 980000 + 360000 980000 + 240000 980000 + 120000 940000 >; + clock-latency = <300000>; }; &ehci0 { @@ -127,7 +130,7 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; /* pull-ups and devices require AXP221 DLDO3 */ - status = "failed"; + status = "okay"; }; &i2c1 { @@ -238,10 +241,11 @@ }; vdd_cpu: dcdc3 { - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <1300000>; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1350000>; regulator-always-on; regulator-name = "vdd-cpu"; + regulator-ramp-delay = <50>; }; vdd_system: dcdc4 { -- cgit v1.2.3