97 lines
2.3 KiB
Diff
97 lines
2.3 KiB
Diff
From c621a1b69e94d258ade9ab1e808c5ed45afbd335 Mon Sep 17 00:00:00 2001
|
|
From: Dongjin Kim <tobetter@gmail.com>
|
|
Date: Mon, 11 May 2020 07:41:52 +0900
|
|
Subject: [PATCH 56/75] ODROID-C4: arm64/dts: add overclock CPU frequencies and
|
|
retune the CPU opp table
|
|
|
|
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
|
|
---
|
|
.../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 42 +++++++++++++++++++
|
|
.../boot/dts/amlogic/meson64_odroidc4.dts | 20 +++++++++
|
|
2 files changed, 62 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
index 8c30ce63686e..ca7baefa7a15 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
@@ -28,6 +28,48 @@ sound {
|
|
};
|
|
};
|
|
|
|
+&cpu_opp_table {
|
|
+ opp-1000000000 {
|
|
+ opp-hz = /bits/ 64 <1000000000>;
|
|
+ opp-microvolt = <799999>;
|
|
+ };
|
|
+
|
|
+ opp-1200000000 {
|
|
+ opp-hz = /bits/ 64 <1200000000>;
|
|
+ opp-microvolt = <809999>;
|
|
+ };
|
|
+
|
|
+ opp-1404000000 {
|
|
+ opp-hz = /bits/ 64 <1404000000>;
|
|
+ opp-microvolt = <819999>;
|
|
+ };
|
|
+
|
|
+ opp-1500000000 {
|
|
+ opp-hz = /bits/ 64 <1500000000>;
|
|
+ opp-microvolt = <829999>;
|
|
+ };
|
|
+
|
|
+ opp-1608000000 {
|
|
+ opp-hz = /bits/ 64 <1608000000>;
|
|
+ opp-microvolt = <859999>;
|
|
+ };
|
|
+
|
|
+ opp-1704000000 {
|
|
+ opp-hz = /bits/ 64 <1704000000>;
|
|
+ opp-microvolt = <899999>;
|
|
+ };
|
|
+
|
|
+ opp-1800000000 {
|
|
+ opp-hz = /bits/ 64 <1800000000>;
|
|
+ opp-microvolt = <939999>;
|
|
+ };
|
|
+
|
|
+ opp-1908000000 {
|
|
+ opp-hz = /bits/ 64 <1908000000>;
|
|
+ opp-microvolt = <999999>;
|
|
+ };
|
|
+};
|
|
+
|
|
&gpio {
|
|
/*
|
|
* WARNING: The USB Hub on the Odroid-C4 needs a reset signal
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts b/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts
|
|
index 9b2c191620b9..64b7645e87c4 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson64_odroidc4.dts
|
|
@@ -10,3 +10,23 @@
|
|
/ {
|
|
model = "Hardkernel ODROID-C4";
|
|
};
|
|
+
|
|
+&cpu_opp_table {
|
|
+ /delete-node/ opp-100000000;
|
|
+ /delete-node/ opp-250000000;
|
|
+ /delete-node/ opp-500000000;
|
|
+ /delete-node/ opp-667000000;
|
|
+
|
|
+ opp-2016000000 {
|
|
+ opp-hz = /bits/ 64 <2016000000>;
|
|
+ opp-microvolt = <1010000>;
|
|
+ };
|
|
+ opp-2100000000 {
|
|
+ opp-hz = /bits/ 64 <2100000000>;
|
|
+ opp-microvolt = <1030000>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&vddcpu {
|
|
+ regulator-max-microvolt = <1030000>;
|
|
+};
|
|
--
|
|
2.25.1
|
|
|