737bb0675233594b64ea3f279b135c0de367344f
[openwrt/staging/stintel.git] /
1 From 56d3067cb694ba60d654e7f5ef231b6fabc4697f Mon Sep 17 00:00:00 2001
2 From: Robert Marko <robimarko@gmail.com>
3 Date: Wed, 7 Jun 2023 20:44:48 +0200
4 Subject: [PATCH] arm64: dts: qcom: ipq8074: add critical thermal trips
5
6 According to bindings, thermal zones must have associated trips as well.
7 Since we currently dont have CPUFreq support and thus no passive cooling
8 lets start by defining critical trips to protect the devices against
9 severe overheating.
10
11 Signed-off-by: Robert Marko <robimarko@gmail.com>
12 Signed-off-by: Bjorn Andersson <andersson@kernel.org>
13 Link: https://lore.kernel.org/r/20230607184448.2512179-1-robimarko@gmail.com
14 ---
15 arch/arm64/boot/dts/qcom/ipq8074.dtsi | 96 +++++++++++++++++++++++++++
16 1 file changed, 96 insertions(+)
17
18 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
19 +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
20 @@ -899,6 +899,14 @@
21 polling-delay = <1000>;
22
23 thermal-sensors = <&tsens 4>;
24 +
25 + trips {
26 + nss-top-crit {
27 + temperature = <110000>;
28 + hysteresis = <1000>;
29 + type = "critical";
30 + };
31 + };
32 };
33
34 nss0-thermal {
35 @@ -906,6 +914,14 @@
36 polling-delay = <1000>;
37
38 thermal-sensors = <&tsens 5>;
39 +
40 + trips {
41 + nss-0-crit {
42 + temperature = <110000>;
43 + hysteresis = <1000>;
44 + type = "critical";
45 + };
46 + };
47 };
48
49 nss1-thermal {
50 @@ -913,6 +929,14 @@
51 polling-delay = <1000>;
52
53 thermal-sensors = <&tsens 6>;
54 +
55 + trips {
56 + nss-1-crit {
57 + temperature = <110000>;
58 + hysteresis = <1000>;
59 + type = "critical";
60 + };
61 + };
62 };
63
64 wcss-phya0-thermal {
65 @@ -920,6 +944,14 @@
66 polling-delay = <1000>;
67
68 thermal-sensors = <&tsens 7>;
69 +
70 + trips {
71 + wcss-phya0-crit {
72 + temperature = <110000>;
73 + hysteresis = <1000>;
74 + type = "critical";
75 + };
76 + };
77 };
78
79 wcss-phya1-thermal {
80 @@ -927,6 +959,14 @@
81 polling-delay = <1000>;
82
83 thermal-sensors = <&tsens 8>;
84 +
85 + trips {
86 + wcss-phya1-crit {
87 + temperature = <110000>;
88 + hysteresis = <1000>;
89 + type = "critical";
90 + };
91 + };
92 };
93
94 cpu0_thermal: cpu0-thermal {
95 @@ -934,6 +974,14 @@
96 polling-delay = <1000>;
97
98 thermal-sensors = <&tsens 9>;
99 +
100 + trips {
101 + cpu0-crit {
102 + temperature = <110000>;
103 + hysteresis = <1000>;
104 + type = "critical";
105 + };
106 + };
107 };
108
109 cpu1_thermal: cpu1-thermal {
110 @@ -941,6 +989,14 @@
111 polling-delay = <1000>;
112
113 thermal-sensors = <&tsens 10>;
114 +
115 + trips {
116 + cpu1-crit {
117 + temperature = <110000>;
118 + hysteresis = <1000>;
119 + type = "critical";
120 + };
121 + };
122 };
123
124 cpu2_thermal: cpu2-thermal {
125 @@ -948,6 +1004,14 @@
126 polling-delay = <1000>;
127
128 thermal-sensors = <&tsens 11>;
129 +
130 + trips {
131 + cpu2-crit {
132 + temperature = <110000>;
133 + hysteresis = <1000>;
134 + type = "critical";
135 + };
136 + };
137 };
138
139 cpu3_thermal: cpu3-thermal {
140 @@ -955,6 +1019,14 @@
141 polling-delay = <1000>;
142
143 thermal-sensors = <&tsens 12>;
144 +
145 + trips {
146 + cpu3-crit {
147 + temperature = <110000>;
148 + hysteresis = <1000>;
149 + type = "critical";
150 + };
151 + };
152 };
153
154 cluster_thermal: cluster-thermal {
155 @@ -962,6 +1034,14 @@
156 polling-delay = <1000>;
157
158 thermal-sensors = <&tsens 13>;
159 +
160 + trips {
161 + cluster-crit {
162 + temperature = <110000>;
163 + hysteresis = <1000>;
164 + type = "critical";
165 + };
166 + };
167 };
168
169 wcss-phyb0-thermal {
170 @@ -969,6 +1049,14 @@
171 polling-delay = <1000>;
172
173 thermal-sensors = <&tsens 14>;
174 +
175 + trips {
176 + wcss-phyb0-crit {
177 + temperature = <110000>;
178 + hysteresis = <1000>;
179 + type = "critical";
180 + };
181 + };
182 };
183
184 wcss-phyb1-thermal {
185 @@ -976,6 +1064,14 @@
186 polling-delay = <1000>;
187
188 thermal-sensors = <&tsens 15>;
189 +
190 + trips {
191 + wcss-phyb1-crit {
192 + temperature = <110000>;
193 + hysteresis = <1000>;
194 + type = "critical";
195 + };
196 + };
197 };
198 };
199 };