302-dts-0119-arm64-dts-lx2160a-add-more-thermal-zone-support.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. From eba73069e7f6ac3bcb3669d980994ec42ddd810a Mon Sep 17 00:00:00 2001
  2. From: Yuantian Tang <[email protected]>
  3. Date: Thu, 16 Apr 2020 17:40:06 +0800
  4. Subject: [PATCH] arm64: dts: lx2160a: add more thermal zone support
  5. There are 7 thermal zones in lx2160a soc. Add the
  6. rest thermal zone node to enable them.
  7. Also correct one of the values for tmu-calibration property.
  8. Signed-off-by: Yuantian Tang <[email protected]>
  9. ---
  10. .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 130 +++++++++++++++++-
  11. 1 file changed, 125 insertions(+), 5 deletions(-)
  12. --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
  13. +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
  14. @@ -440,19 +440,19 @@
  15. };
  16. thermal-zones {
  17. - core_thermal1: core-thermal1 {
  18. + cluster6-7 {
  19. polling-delay-passive = <1000>;
  20. polling-delay = <5000>;
  21. thermal-sensors = <&tmu 0>;
  22. trips {
  23. - core_cluster_alert: core-cluster-alert {
  24. + cluster6_7_alert: cluster6-7-alert {
  25. temperature = <85000>;
  26. hysteresis = <2000>;
  27. type = "passive";
  28. };
  29. - core_cluster_crit: core-cluster-crit {
  30. + cluster6_7_crit: cluster6-7-crit {
  31. temperature = <95000>;
  32. hysteresis = <2000>;
  33. type = "critical";
  34. @@ -461,7 +461,7 @@
  35. cooling-maps {
  36. map0 {
  37. - trip = <&core_cluster_alert>;
  38. + trip = <&cluster6_7_alert>;
  39. cooling-device =
  40. <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  41. <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  42. @@ -482,6 +482,126 @@
  43. };
  44. };
  45. };
  46. +
  47. + ddr-cluster5 {
  48. + polling-delay-passive = <1000>;
  49. + polling-delay = <5000>;
  50. + thermal-sensors = <&tmu 1>;
  51. +
  52. + trips {
  53. + ddr-cluster5-alert {
  54. + temperature = <85000>;
  55. + hysteresis = <2000>;
  56. + type = "passive";
  57. + };
  58. +
  59. + ddr-cluster5-crit {
  60. + temperature = <95000>;
  61. + hysteresis = <2000>;
  62. + type = "critical";
  63. + };
  64. + };
  65. + };
  66. +
  67. + wriop {
  68. + polling-delay-passive = <1000>;
  69. + polling-delay = <5000>;
  70. + thermal-sensors = <&tmu 2>;
  71. +
  72. + trips {
  73. + wriop-alert {
  74. + temperature = <85000>;
  75. + hysteresis = <2000>;
  76. + type = "passive";
  77. + };
  78. +
  79. + wriop-crit {
  80. + temperature = <95000>;
  81. + hysteresis = <2000>;
  82. + type = "critical";
  83. + };
  84. + };
  85. + };
  86. +
  87. + dce-qbman-hsio2 {
  88. + polling-delay-passive = <1000>;
  89. + polling-delay = <5000>;
  90. + thermal-sensors = <&tmu 3>;
  91. +
  92. + trips {
  93. + dce-qbman-alert {
  94. + temperature = <85000>;
  95. + hysteresis = <2000>;
  96. + type = "passive";
  97. + };
  98. +
  99. + dce-qbman-crit {
  100. + temperature = <95000>;
  101. + hysteresis = <2000>;
  102. + type = "critical";
  103. + };
  104. + };
  105. + };
  106. +
  107. + ccn-dpaa-tbu {
  108. + polling-delay-passive = <1000>;
  109. + polling-delay = <5000>;
  110. + thermal-sensors = <&tmu 4>;
  111. +
  112. + trips {
  113. + ccn-dpaa-alert {
  114. + temperature = <85000>;
  115. + hysteresis = <2000>;
  116. + type = "passive";
  117. + };
  118. +
  119. + ccn-dpaa-crit {
  120. + temperature = <95000>;
  121. + hysteresis = <2000>;
  122. + type = "critical";
  123. + };
  124. + };
  125. + };
  126. +
  127. + cluster4-hsio3 {
  128. + polling-delay-passive = <1000>;
  129. + polling-delay = <5000>;
  130. + thermal-sensors = <&tmu 5>;
  131. +
  132. + trips {
  133. + clust4-hsio3-alert {
  134. + temperature = <85000>;
  135. + hysteresis = <2000>;
  136. + type = "passive";
  137. + };
  138. +
  139. + clust4-hsio3-crit {
  140. + temperature = <95000>;
  141. + hysteresis = <2000>;
  142. + type = "critical";
  143. + };
  144. + };
  145. + };
  146. +
  147. + cluster2-3 {
  148. + polling-delay-passive = <1000>;
  149. + polling-delay = <5000>;
  150. + thermal-sensors = <&tmu 6>;
  151. +
  152. + trips {
  153. + cluster2-3-alert {
  154. + temperature = <85000>;
  155. + hysteresis = <2000>;
  156. + type = "passive";
  157. + };
  158. +
  159. + cluster2-3-crit {
  160. + temperature = <95000>;
  161. + hysteresis = <2000>;
  162. + type = "critical";
  163. + };
  164. + };
  165. + };
  166. };
  167. soc {
  168. @@ -760,7 +880,7 @@
  169. /* Calibration data group 1 */
  170. <0x00000000 0x00000035
  171. /* Calibration data group 2 */
  172. - 0x00010001 0x00000154>;
  173. + 0x00000001 0x00000154>;
  174. little-endian;
  175. #thermal-sensor-cells = <1>;
  176. };