Commit eaffc4de authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Krzysztof Kozlowski

ARM: dts: exynos: Add missing CPU frequencies for Exynos5422/5800

Add missing 2.0GHz, 1.9GHz & 1.8GHz OPPs (for A15 cores) and 1.4GHz
OPP (for A7 cores).  Also update common Odroid-XU3 Lite/XU3/XU4
thermal cooling maps to account for new OPPs.

Since some new OPPs are not available on all Exynos5422/5800 boards
modify dts files for Odroid XU3 Lite (limited to 1.8 GHz / 1.3 GHz) &
Peach Pi (limited to 2.0 GHz / 1.3 GHz) accordingly.

This patch uses maximum voltages for new OPPs. This is a temporary
solution till proper Exynos ASV support is added.

Also while at it fix the number of cooling down steps for big cores
(should be 11 instead of 12 on Odroid XU3 Lite and 14 on XU3/XU4).
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
[mszyprow: rebased onto v5.5-rc1 and adapted to recent dts changes,
 fixed removal of the 1.4GHz OPP for A7s on Peach-Pi]
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 6c43b5d3
...@@ -72,14 +72,14 @@ map0 { ...@@ -72,14 +72,14 @@ map0 {
*/ */
map1 { map1 {
trip = <&cpu0_alert1>; trip = <&cpu0_alert1>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
...@@ -116,14 +116,14 @@ map0 { ...@@ -116,14 +116,14 @@ map0 {
}; };
map1 { map1 {
trip = <&cpu1_alert1>; trip = <&cpu1_alert1>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
...@@ -160,14 +160,14 @@ map0 { ...@@ -160,14 +160,14 @@ map0 {
}; };
map1 { map1 {
trip = <&cpu2_alert1>; trip = <&cpu2_alert1>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
...@@ -204,14 +204,14 @@ map0 { ...@@ -204,14 +204,14 @@ map0 {
}; };
map1 { map1 {
trip = <&cpu3_alert1>; trip = <&cpu3_alert1>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
......
...@@ -107,7 +107,7 @@ map2 { ...@@ -107,7 +107,7 @@ map2 {
/* /*
* When reaching cpu0_alert3, reduce CPU * When reaching cpu0_alert3, reduce CPU
* by 2 steps. On Exynos5422/5800 that would * by 2 steps. On Exynos5422/5800 that would
* be: 1600 MHz and 1100 MHz. * (usually) be: 1800 MHz and 1200 MHz.
*/ */
map3 { map3 {
trip = <&cpu0_alert3>; trip = <&cpu0_alert3>;
...@@ -122,19 +122,19 @@ map3 { ...@@ -122,19 +122,19 @@ map3 {
}; };
/* /*
* When reaching cpu0_alert4, reduce CPU * When reaching cpu0_alert4, reduce CPU
* further, down to 600 MHz (12 steps for big, * further, down to 600 MHz (14 steps for big,
* 7 steps for LITTLE). * 8 steps for LITTLE).
*/ */
map4 { cpu0_cooling_map4: map4 {
trip = <&cpu0_alert4>; trip = <&cpu0_alert4>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
...@@ -198,16 +198,16 @@ map3 { ...@@ -198,16 +198,16 @@ map3 {
<&cpu6 0 2>, <&cpu6 0 2>,
<&cpu7 0 2>; <&cpu7 0 2>;
}; };
map4 { cpu1_cooling_map4: map4 {
trip = <&cpu1_alert4>; trip = <&cpu1_alert4>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
...@@ -271,16 +271,16 @@ map3 { ...@@ -271,16 +271,16 @@ map3 {
<&cpu6 0 2>, <&cpu6 0 2>,
<&cpu7 0 2>; <&cpu7 0 2>;
}; };
map4 { cpu2_cooling_map4: map4 {
trip = <&cpu2_alert4>; trip = <&cpu2_alert4>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
...@@ -344,16 +344,16 @@ map3 { ...@@ -344,16 +344,16 @@ map3 {
<&cpu6 0 2>, <&cpu6 0 2>,
<&cpu7 0 2>; <&cpu7 0 2>;
}; };
map4 { cpu3_cooling_map4: map4 {
trip = <&cpu3_alert4>; trip = <&cpu3_alert4>;
cooling-device = <&cpu0 3 7>, cooling-device = <&cpu0 3 8>,
<&cpu1 3 7>, <&cpu1 3 8>,
<&cpu2 3 7>, <&cpu2 3 8>,
<&cpu3 3 7>, <&cpu3 3 8>,
<&cpu4 3 12>, <&cpu4 3 14>,
<&cpu5 3 12>, <&cpu5 3 14>,
<&cpu6 3 12>, <&cpu6 3 14>,
<&cpu7 3 12>; <&cpu7 3 14>;
}; };
}; };
}; };
......
...@@ -30,6 +30,64 @@ &chipid { ...@@ -30,6 +30,64 @@ &chipid {
samsung,asv-bin = <2>; samsung,asv-bin = <2>;
}; };
/*
* Odroid XU3-Lite board uses SoC revision with lower maximum frequencies
* than Odroid XU3/XU4 boards: 1.8 GHz for A15 cores & 1.3 GHz for A7 cores.
* Therefore we need to update OPPs tables and thermal maps accordingly.
*/
&cluster_a15_opp_table {
/delete-node/opp-2000000000;
/delete-node/opp-1900000000;
};
&cluster_a7_opp_table {
/delete-node/opp-1400000000;
};
&cpu0_cooling_map4 {
cooling-device = <&cpu0 3 7>,
<&cpu1 3 7>,
<&cpu2 3 7>,
<&cpu3 3 7>,
<&cpu4 3 12>,
<&cpu5 3 12>,
<&cpu6 3 12>,
<&cpu7 3 12>;
};
&cpu1_cooling_map4 {
cooling-device = <&cpu0 3 7>,
<&cpu1 3 7>,
<&cpu2 3 7>,
<&cpu3 3 7>,
<&cpu4 3 12>,
<&cpu5 3 12>,
<&cpu6 3 12>,
<&cpu7 3 12>;
};
&cpu2_cooling_map4 {
cooling-device = <&cpu0 3 7>,
<&cpu1 3 7>,
<&cpu2 3 7>,
<&cpu3 3 7>,
<&cpu4 3 12>,
<&cpu5 3 12>,
<&cpu6 3 12>,
<&cpu7 3 12>;
};
&cpu3_cooling_map4 {
cooling-device = <&cpu0 3 7>,
<&cpu1 3 7>,
<&cpu2 3 7>,
<&cpu3 3 7>,
<&cpu4 3 12>,
<&cpu5 3 12>,
<&cpu6 3 12>,
<&cpu7 3 12>;
};
&pwm { &pwm {
/* /*
* PWM 0 -- fan * PWM 0 -- fan
......
...@@ -156,6 +156,15 @@ &clock_audss { ...@@ -156,6 +156,15 @@ &clock_audss {
assigned-clock-parents = <&clock CLK_MAU_EPLL>; assigned-clock-parents = <&clock CLK_MAU_EPLL>;
}; };
/*
* Peach Pi board uses SoC revision with lower maximum frequency for A7 cores
* (1.3 GHz instead of 1.4 GHz) than Odroid XU3/XU4 boards. Thus we need to
* update A7 OPPs table accordingly.
*/
&cluster_a7_opp_table {
/delete-node/opp-1400000000;
};
&cpu0 { &cpu0 {
cpu-supply = <&buck2_reg>; cpu-supply = <&buck2_reg>;
}; };
......
...@@ -21,6 +21,21 @@ &clock { ...@@ -21,6 +21,21 @@ &clock {
}; };
&cluster_a15_opp_table { &cluster_a15_opp_table {
opp-2000000000 {
opp-hz = /bits/ 64 <2000000000>;
opp-microvolt = <1312500>;
clock-latency-ns = <140000>;
};
opp-1900000000 {
opp-hz = /bits/ 64 <1900000000>;
opp-microvolt = <1262500>;
clock-latency-ns = <140000>;
};
opp-1800000000 {
opp-hz = /bits/ 64 <1800000000>;
opp-microvolt = <1237500>;
clock-latency-ns = <140000>;
};
opp-1700000000 { opp-1700000000 {
opp-microvolt = <1250000 1250000 1500000>; opp-microvolt = <1250000 1250000 1500000>;
}; };
...@@ -82,6 +97,11 @@ opp-200000000 { ...@@ -82,6 +97,11 @@ opp-200000000 {
}; };
&cluster_a7_opp_table { &cluster_a7_opp_table {
opp-1400000000 {
opp-hz = /bits/ 64 <1400000000>;
opp-microvolt = <1275000>;
clock-latency-ns = <140000>;
};
opp-1300000000 { opp-1300000000 {
opp-microvolt = <1250000>; opp-microvolt = <1250000>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment