0134-arm64-dts-qcom-ipq8074-add-critical-thermal-trips.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. From 145bbf2b88990ef3ff00ee541bb7662008683c16 Mon Sep 17 00:00:00 2001
  2. From: Robert Marko <[email protected]>
  3. Date: Wed, 7 Jun 2023 20:26:26 +0200
  4. Subject: [PATCH] arm64: dts: qcom: ipq8074: add critical thermal trips
  5. According to bindings, thermal zones must have associated trips as well.
  6. Since we currently dont have CPUFreq support and thus no passive cooling
  7. lets start by defining critical trips to protect the devices against
  8. severe overheating.
  9. Signed-off-by: Robert Marko <[email protected]>
  10. ---
  11. arch/arm64/boot/dts/qcom/ipq8074.dtsi | 96 +++++++++++++++++++++++++++
  12. 1 file changed, 96 insertions(+)
  13. --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  14. +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi
  15. @@ -1293,6 +1293,14 @@
  16. polling-delay = <1000>;
  17. thermal-sensors = <&tsens 4>;
  18. +
  19. + trips {
  20. + nss-top-crit {
  21. + temperature = <110000>;
  22. + hysteresis = <1000>;
  23. + type = "critical";
  24. + };
  25. + };
  26. };
  27. nss0-thermal {
  28. @@ -1300,6 +1308,14 @@
  29. polling-delay = <1000>;
  30. thermal-sensors = <&tsens 5>;
  31. +
  32. + trips {
  33. + nss-0-crit {
  34. + temperature = <110000>;
  35. + hysteresis = <1000>;
  36. + type = "critical";
  37. + };
  38. + };
  39. };
  40. nss1-thermal {
  41. @@ -1307,6 +1323,14 @@
  42. polling-delay = <1000>;
  43. thermal-sensors = <&tsens 6>;
  44. +
  45. + trips {
  46. + nss-1-crit {
  47. + temperature = <110000>;
  48. + hysteresis = <1000>;
  49. + type = "critical";
  50. + };
  51. + };
  52. };
  53. wcss-phya0-thermal {
  54. @@ -1314,6 +1338,14 @@
  55. polling-delay = <1000>;
  56. thermal-sensors = <&tsens 7>;
  57. +
  58. + trips {
  59. + wcss-phya0-crit {
  60. + temperature = <110000>;
  61. + hysteresis = <1000>;
  62. + type = "critical";
  63. + };
  64. + };
  65. };
  66. wcss-phya1-thermal {
  67. @@ -1321,6 +1353,14 @@
  68. polling-delay = <1000>;
  69. thermal-sensors = <&tsens 8>;
  70. +
  71. + trips {
  72. + wcss-phya1-crit {
  73. + temperature = <110000>;
  74. + hysteresis = <1000>;
  75. + type = "critical";
  76. + };
  77. + };
  78. };
  79. cpu0_thermal: cpu0-thermal {
  80. @@ -1328,6 +1368,14 @@
  81. polling-delay = <1000>;
  82. thermal-sensors = <&tsens 9>;
  83. +
  84. + trips {
  85. + cpu0-crit {
  86. + temperature = <110000>;
  87. + hysteresis = <1000>;
  88. + type = "critical";
  89. + };
  90. + };
  91. };
  92. cpu1_thermal: cpu1-thermal {
  93. @@ -1335,6 +1383,14 @@
  94. polling-delay = <1000>;
  95. thermal-sensors = <&tsens 10>;
  96. +
  97. + trips {
  98. + cpu1-crit {
  99. + temperature = <110000>;
  100. + hysteresis = <1000>;
  101. + type = "critical";
  102. + };
  103. + };
  104. };
  105. cpu2_thermal: cpu2-thermal {
  106. @@ -1342,6 +1398,14 @@
  107. polling-delay = <1000>;
  108. thermal-sensors = <&tsens 11>;
  109. +
  110. + trips {
  111. + cpu2-crit {
  112. + temperature = <110000>;
  113. + hysteresis = <1000>;
  114. + type = "critical";
  115. + };
  116. + };
  117. };
  118. cpu3_thermal: cpu3-thermal {
  119. @@ -1349,6 +1413,14 @@
  120. polling-delay = <1000>;
  121. thermal-sensors = <&tsens 12>;
  122. +
  123. + trips {
  124. + cpu3-crit {
  125. + temperature = <110000>;
  126. + hysteresis = <1000>;
  127. + type = "critical";
  128. + };
  129. + };
  130. };
  131. cluster_thermal: cluster-thermal {
  132. @@ -1356,6 +1428,14 @@
  133. polling-delay = <1000>;
  134. thermal-sensors = <&tsens 13>;
  135. +
  136. + trips {
  137. + cluster-crit {
  138. + temperature = <110000>;
  139. + hysteresis = <1000>;
  140. + type = "critical";
  141. + };
  142. + };
  143. };
  144. wcss-phyb0-thermal {
  145. @@ -1363,6 +1443,14 @@
  146. polling-delay = <1000>;
  147. thermal-sensors = <&tsens 14>;
  148. +
  149. + trips {
  150. + wcss-phyb0-crit {
  151. + temperature = <110000>;
  152. + hysteresis = <1000>;
  153. + type = "critical";
  154. + };
  155. + };
  156. };
  157. wcss-phyb1-thermal {
  158. @@ -1370,6 +1458,14 @@
  159. polling-delay = <1000>;
  160. thermal-sensors = <&tsens 15>;
  161. +
  162. + trips {
  163. + wcss-phyb1-crit {
  164. + temperature = <110000>;
  165. + hysteresis = <1000>;
  166. + type = "critical";
  167. + };
  168. + };
  169. };
  170. };
  171. };