Thread (12 messages) 12 messages, 3 authors, 2016-01-28
STALE3794d REVIEWED: 1 (0M)

[PATCH v6 6/7] ARM: dts: Exynos5800: fix CPU OPP

From: Bartlomiej Zolnierkiewicz <hidden>
Date: 2015-12-15 17:37:00
Also in: linux-pm, linux-samsung-soc, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Fix CPU operating points for Exynos5800 (it use different
voltages than Exynos5420 and supports additional frequencies).
However don't use 2000MHz & 1900MHz OPPs (for A15 cores) and
1400MHz OPP (for A7 cores) for now as they are not available
on all boards.

Based on Hardkernel's kernel for ODROID-XU3 board.

Changes by Ben Gamari:
- Port to operating-points-v2

Cc: Kukjin Kim <redacted>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Javier Martinez Canillas <redacted>
Cc: Andreas Faerber <afaerber@suse.de>
Cc: Thomas Abraham <redacted>
Reviewed-by: Krzysztof Kozlowski <redacted>
Signed-off-by: Ben Gamari <redacted>
Signed-off-by: Bartlomiej Zolnierkiewicz <redacted>
---
 arch/arm/boot/dts/exynos5800.dtsi | 108 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 108 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5800.dtsi b/arch/arm/boot/dts/exynos5800.dtsi
index c0bb356..8213016 100644
--- a/arch/arm/boot/dts/exynos5800.dtsi
+++ b/arch/arm/boot/dts/exynos5800.dtsi
@@ -23,6 +23,114 @@
 	compatible = "samsung,exynos5800-clock";
 };
 
+&cluster_a15_opp_table {
+	opp at 1700000000 {
+		opp-microvolt = <1250000>;
+	};
+	opp at 1600000000 {
+		opp-microvolt = <1250000>;
+	};
+	opp at 1500000000 {
+		opp-microvolt = <1100000>;
+	};
+	opp at 1400000000 {
+		opp-microvolt = <1100000>;
+	};
+	opp at 1300000000 {
+		opp-microvolt = <1100000>;
+	};
+	opp at 1200000000 {
+		opp-microvolt = <1000000>;
+	};
+	opp at 1100000000 {
+		opp-microvolt = <1000000>;
+	};
+	opp at 1000000000 {
+		opp-microvolt = <1000000>;
+	};
+	opp at 900000000 {
+		opp-microvolt = <1000000>;
+	};
+	opp at 800000000 {
+		opp-microvolt = <900000>;
+	};
+	opp at 700000000 {
+		opp-microvolt = <900000>;
+	};
+	opp at 600000000 {
+		opp-hz = /bits/ 64 <600000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 500000000 {
+		opp-hz = /bits/ 64 <500000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 400000000 {
+		opp-hz = /bits/ 64 <400000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 300000000 {
+		opp-hz = /bits/ 64 <300000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 200000000 {
+		opp-hz = /bits/ 64 <200000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+};
+
+&cluster_a7_opp_table {
+	opp at 1300000000 {
+		opp-microvolt = <1250000>;
+	};
+	opp at 1200000000 {
+		opp-microvolt = <1250000>;
+	};
+	opp at 1100000000 {
+		opp-microvolt = <1250000>;
+	};
+	opp at 1000000000 {
+		opp-microvolt = <1100000>;
+	};
+	opp at 900000000 {
+		opp-microvolt = <1100000>;
+	};
+	opp at 800000000 {
+		opp-microvolt = <1100000>;
+	};
+	opp at 700000000 {
+		opp-microvolt = <1000000>;
+	};
+	opp at 600000000 {
+		opp-microvolt = <1000000>;
+	};
+	opp at 500000000 {
+		opp-hz = /bits/ 64 <500000000>;
+		opp-microvolt = <1000000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 400000000 {
+		opp-hz = /bits/ 64 <400000000>;
+		opp-microvolt = <1000000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 300000000 {
+		opp-hz = /bits/ 64 <300000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+	opp at 200000000 {
+		opp-hz = /bits/ 64 <200000000>;
+		opp-microvolt = <900000>;
+		clock-latency-ns = <140000>;
+	};
+};
+
 &mfc {
 	compatible = "samsung,mfc-v8";
 };
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help