Commit 752f5858 authored by Praveenkumar I's avatar Praveenkumar I Committed by Bjorn Andersson

arm64: dts: qcom: ipq9574: Add cpu cooling maps

Add cpu cooling maps for passive trip points. The cpu cooling
device states are mapped to cpufreq based scaling frequencies.
Signed-off-by: default avatarPraveenkumar I <quic_ipkumar@quicinc.com>
Link: https://lore.kernel.org/r/20230713083101.971525-2-quic_ipkumar@quicinc.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 4e125191
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <dt-bindings/clock/qcom,ipq9574-gcc.h> #include <dt-bindings/clock/qcom,ipq9574-gcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/qcom,ipq9574-gcc.h> #include <dt-bindings/reset/qcom,ipq9574-gcc.h>
#include <dt-bindings/thermal/thermal.h>
/ { / {
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
...@@ -42,6 +43,7 @@ CPU0: cpu@0 { ...@@ -42,6 +43,7 @@ CPU0: cpu@0 {
clock-names = "cpu"; clock-names = "cpu";
operating-points-v2 = <&cpu_opp_table>; operating-points-v2 = <&cpu_opp_table>;
cpu-supply = <&ipq9574_s1>; cpu-supply = <&ipq9574_s1>;
#cooling-cells = <2>;
}; };
CPU1: cpu@1 { CPU1: cpu@1 {
...@@ -54,6 +56,7 @@ CPU1: cpu@1 { ...@@ -54,6 +56,7 @@ CPU1: cpu@1 {
clock-names = "cpu"; clock-names = "cpu";
operating-points-v2 = <&cpu_opp_table>; operating-points-v2 = <&cpu_opp_table>;
cpu-supply = <&ipq9574_s1>; cpu-supply = <&ipq9574_s1>;
#cooling-cells = <2>;
}; };
CPU2: cpu@2 { CPU2: cpu@2 {
...@@ -66,6 +69,7 @@ CPU2: cpu@2 { ...@@ -66,6 +69,7 @@ CPU2: cpu@2 {
clock-names = "cpu"; clock-names = "cpu";
operating-points-v2 = <&cpu_opp_table>; operating-points-v2 = <&cpu_opp_table>;
cpu-supply = <&ipq9574_s1>; cpu-supply = <&ipq9574_s1>;
#cooling-cells = <2>;
}; };
CPU3: cpu@3 { CPU3: cpu@3 {
...@@ -78,6 +82,7 @@ CPU3: cpu@3 { ...@@ -78,6 +82,7 @@ CPU3: cpu@3 {
clock-names = "cpu"; clock-names = "cpu";
operating-points-v2 = <&cpu_opp_table>; operating-points-v2 = <&cpu_opp_table>;
cpu-supply = <&ipq9574_s1>; cpu-supply = <&ipq9574_s1>;
#cooling-cells = <2>;
}; };
L2_0: l2-cache { L2_0: l2-cache {
...@@ -812,18 +817,28 @@ cpu0-thermal { ...@@ -812,18 +817,28 @@ cpu0-thermal {
thermal-sensors = <&tsens 10>; thermal-sensors = <&tsens 10>;
trips { trips {
cpu-critical { cpu0_crit: cpu-critical {
temperature = <120000>; temperature = <120000>;
hysteresis = <10000>; hysteresis = <10000>;
type = "critical"; type = "critical";
}; };
cpu-passive { cpu0_alert: cpu-passive {
temperature = <110000>; temperature = <110000>;
hysteresis = <1000>; hysteresis = <1000>;
type = "passive"; type = "passive";
}; };
}; };
cooling-maps {
map0 {
trip = <&cpu0_alert>;
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>;
};
};
}; };
cpu1-thermal { cpu1-thermal {
...@@ -832,18 +847,28 @@ cpu1-thermal { ...@@ -832,18 +847,28 @@ cpu1-thermal {
thermal-sensors = <&tsens 11>; thermal-sensors = <&tsens 11>;
trips { trips {
cpu-critical { cpu1_crit: cpu-critical {
temperature = <120000>; temperature = <120000>;
hysteresis = <10000>; hysteresis = <10000>;
type = "critical"; type = "critical";
}; };
cpu-passive { cpu1_alert: cpu-passive {
temperature = <110000>; temperature = <110000>;
hysteresis = <1000>; hysteresis = <1000>;
type = "passive"; type = "passive";
}; };
}; };
cooling-maps {
map0 {
trip = <&cpu1_alert>;
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>;
};
};
}; };
cpu2-thermal { cpu2-thermal {
...@@ -852,18 +877,28 @@ cpu2-thermal { ...@@ -852,18 +877,28 @@ cpu2-thermal {
thermal-sensors = <&tsens 12>; thermal-sensors = <&tsens 12>;
trips { trips {
cpu-critical { cpu2_crit: cpu-critical {
temperature = <120000>; temperature = <120000>;
hysteresis = <10000>; hysteresis = <10000>;
type = "critical"; type = "critical";
}; };
cpu-passive { cpu2_alert: cpu-passive {
temperature = <110000>; temperature = <110000>;
hysteresis = <1000>; hysteresis = <1000>;
type = "passive"; type = "passive";
}; };
}; };
cooling-maps {
map0 {
trip = <&cpu2_alert>;
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>;
};
};
}; };
cpu3-thermal { cpu3-thermal {
...@@ -872,18 +907,28 @@ cpu3-thermal { ...@@ -872,18 +907,28 @@ cpu3-thermal {
thermal-sensors = <&tsens 13>; thermal-sensors = <&tsens 13>;
trips { trips {
cpu-critical { cpu3_crit: cpu-critical {
temperature = <120000>; temperature = <120000>;
hysteresis = <10000>; hysteresis = <10000>;
type = "critical"; type = "critical";
}; };
cpu-passive { cpu3_alert: cpu-passive {
temperature = <110000>; temperature = <110000>;
hysteresis = <1000>; hysteresis = <1000>;
type = "passive"; type = "passive";
}; };
}; };
cooling-maps {
map0 {
trip = <&cpu3_alert>;
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>;
};
};
}; };
wcss-phyb-thermal { wcss-phyb-thermal {
......
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