147 lines
3.8 KiB
Diff
147 lines
3.8 KiB
Diff
|
From ce866a9b68a21ecde72401bb1ccc82be5981d87f Mon Sep 17 00:00:00 2001
|
||
|
From: Dongjin Kim <tobetter@gmail.com>
|
||
|
Date: Wed, 6 May 2020 15:33:45 +0900
|
||
|
Subject: [PATCH 20/74] ODROID-N2/C4: arm64/dts: add CPU thermal cooling map
|
||
|
|
||
|
Change-Id: Idddee81e210daef5afb8ca059e8dced40c770cc8
|
||
|
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
|
||
|
---
|
||
|
.../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 30 +++++++++++++++++++
|
||
|
.../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 23 ++++++++++++++
|
||
|
2 files changed, 53 insertions(+)
|
||
|
|
||
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
||
|
index 047e076df661..232f86c6c37d 100644
|
||
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
||
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
||
|
@@ -292,6 +292,7 @@ &cpu0 {
|
||
|
operating-points-v2 = <&cpu_opp_table_0>;
|
||
|
clocks = <&clkc CLKID_CPU_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu1 {
|
||
|
@@ -299,6 +300,7 @@ &cpu1 {
|
||
|
operating-points-v2 = <&cpu_opp_table_0>;
|
||
|
clocks = <&clkc CLKID_CPU_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu100 {
|
||
|
@@ -306,6 +308,7 @@ &cpu100 {
|
||
|
operating-points-v2 = <&cpub_opp_table_1>;
|
||
|
clocks = <&clkc CLKID_CPUB_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu101 {
|
||
|
@@ -313,6 +316,7 @@ &cpu101 {
|
||
|
operating-points-v2 = <&cpub_opp_table_1>;
|
||
|
clocks = <&clkc CLKID_CPUB_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu102 {
|
||
|
@@ -320,6 +324,7 @@ &cpu102 {
|
||
|
operating-points-v2 = <&cpub_opp_table_1>;
|
||
|
clocks = <&clkc CLKID_CPUB_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu103 {
|
||
|
@@ -327,6 +332,31 @@ &cpu103 {
|
||
|
operating-points-v2 = <&cpub_opp_table_1>;
|
||
|
clocks = <&clkc CLKID_CPUB_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
+};
|
||
|
+
|
||
|
+&cpu_thermal {
|
||
|
+ trips {
|
||
|
+ cpu_passive: cpu-passive {
|
||
|
+ temperature = <70000>; /* millicelsius */
|
||
|
+ hysteresis = <2000>; /* millicelsius */
|
||
|
+ type = "passive";
|
||
|
+ };
|
||
|
+ };
|
||
|
+ cooling-maps {
|
||
|
+ cpufreq_map0 {
|
||
|
+ trip = <&cpu_passive>;
|
||
|
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||
|
+ };
|
||
|
+ cpufreq_map1 {
|
||
|
+ trip = <&cpu_passive>;
|
||
|
+ cooling-device = <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||
|
+ };
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
&ext_mdio {
|
||
|
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 8d3523c163c5..831053aa6dff 100644
|
||
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
||
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
||
|
@@ -259,6 +259,7 @@ &cpu0 {
|
||
|
operating-points-v2 = <&cpu_opp_table>;
|
||
|
clocks = <&clkc CLKID_CPU_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu1 {
|
||
|
@@ -266,6 +267,7 @@ &cpu1 {
|
||
|
operating-points-v2 = <&cpu_opp_table>;
|
||
|
clocks = <&clkc CLKID_CPU1_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu2 {
|
||
|
@@ -273,6 +275,7 @@ &cpu2 {
|
||
|
operating-points-v2 = <&cpu_opp_table>;
|
||
|
clocks = <&clkc CLKID_CPU2_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
};
|
||
|
|
||
|
&cpu3 {
|
||
|
@@ -280,6 +283,26 @@ &cpu3 {
|
||
|
operating-points-v2 = <&cpu_opp_table>;
|
||
|
clocks = <&clkc CLKID_CPU3_CLK>;
|
||
|
clock-latency = <50000>;
|
||
|
+ #cooling-cells = <2>;
|
||
|
+};
|
||
|
+
|
||
|
+&cpu_thermal {
|
||
|
+ trips {
|
||
|
+ cpu_passive: cpu-passive {
|
||
|
+ temperature = <70000>; /* millicelsius */
|
||
|
+ hysteresis = <2000>; /* millicelsius */
|
||
|
+ type = "passive";
|
||
|
+ };
|
||
|
+ };
|
||
|
+ cooling-maps {
|
||
|
+ cpufreq_map0 {
|
||
|
+ trip = <&cpu_passive>;
|
||
|
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
|
||
|
+ <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||
|
+ };
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
&ext_mdio {
|
||
|
--
|
||
|
2.25.1
|
||
|
|