1 From 92c65f959ec2b8d1ab26efe246b29ed538b45c86 Mon Sep 17 00:00:00 2001
2 From: Mantas Pucka <mantas@8devices.com>
3 Date: Wed, 24 Jan 2024 15:10:43 +0200
4 Subject: [PATCH 3/3] arm64: dts: qcom: ipq6018: add thermal zones
6 Add thermal zones to make use of thermal sensors data. For CPU zone,
7 add cooling device that uses CPU frequency scaling.
9 Signed-off-by: Mantas Pucka <mantas@8devices.com>
11 arch/arm64/boot/dts/qcom/ipq6018.dtsi | 121 ++++++++++++++++++++++++++++++++++
12 1 file changed, 121 insertions(+)
14 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
15 +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
17 #include <dt-bindings/clock/qcom,gcc-ipq6018.h>
18 #include <dt-bindings/reset/qcom,gcc-ipq6018.h>
19 #include <dt-bindings/clock/qcom,apss-ipq.h>
20 +#include <dt-bindings/thermal/thermal.h>
26 operating-points-v2 = <&cpu_opp_table>;
27 cpu-supply = <&ipq6018_s2>;
28 + #cooling-cells = <2>;
34 operating-points-v2 = <&cpu_opp_table>;
35 cpu-supply = <&ipq6018_s2>;
36 + #cooling-cells = <2>;
42 operating-points-v2 = <&cpu_opp_table>;
43 cpu-supply = <&ipq6018_s2>;
44 + #cooling-cells = <2>;
50 operating-points-v2 = <&cpu_opp_table>;
51 cpu-supply = <&ipq6018_s2>;
52 + #cooling-cells = <2>;
63 + polling-delay-passive = <250>;
64 + polling-delay = <1000>;
65 + thermal-sensors = <&tsens 4>;
69 + temperature = <125000>;
70 + hysteresis = <1000>;
77 + polling-delay-passive = <250>;
78 + polling-delay = <1000>;
79 + thermal-sensors = <&tsens 5>;
83 + temperature = <125000>;
84 + hysteresis = <1000>;
90 + wcss-phya0-thermal {
91 + polling-delay-passive = <250>;
92 + polling-delay = <1000>;
93 + thermal-sensors = <&tsens 7>;
96 + wcss-phya0-critical {
97 + temperature = <125000>;
98 + hysteresis = <1000>;
104 + wcss-phya1-thermal {
105 + polling-delay-passive = <250>;
106 + polling-delay = <1000>;
107 + thermal-sensors = <&tsens 8>;
110 + wcss-phya1-critical {
111 + temperature = <125000>;
112 + hysteresis = <1000>;
119 + polling-delay-passive = <250>;
120 + polling-delay = <1000>;
121 + thermal-sensors = <&tsens 13>;
125 + temperature = <125000>;
126 + hysteresis = <1000>;
130 + cpu_alert: cpu-passive {
131 + temperature = <110000>;
132 + hysteresis = <1000>;
139 + trip = <&cpu_alert>;
140 + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
141 + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
142 + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
143 + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
149 + polling-delay-passive = <250>;
150 + polling-delay = <1000>;
151 + thermal-sensors = <&tsens 14>;
155 + temperature = <125000>;
156 + hysteresis = <1000>;
162 + ddrss-top-thermal {
163 + polling-delay-passive = <250>;
164 + polling-delay = <1000>;
165 + thermal-sensors = <&tsens 15>;
168 + ddrss-top-critical {
169 + temperature = <125000>;
170 + hysteresis = <1000>;
178 compatible = "qcom,smp2p";