exynos5433-tmu.dtsi 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device tree sources for Exynos5433 thermal zone
  4. *
  5. * Copyright (c) 2016 Chanwoo Choi <cw00.choi@samsung.com>
  6. */
  7. #include <dt-bindings/thermal/thermal.h>
  8. / {
  9. thermal-zones {
  10. atlas0_thermal: atlas0-thermal {
  11. thermal-sensors = <&tmu_atlas0>;
  12. polling-delay-passive = <0>;
  13. polling-delay = <0>;
  14. trips {
  15. atlas0_alert_0: atlas0-alert-0 {
  16. temperature = <65000>; /* millicelsius */
  17. hysteresis = <1000>; /* millicelsius */
  18. type = "active";
  19. };
  20. atlas0_alert_1: atlas0-alert-1 {
  21. temperature = <70000>; /* millicelsius */
  22. hysteresis = <1000>; /* millicelsius */
  23. type = "active";
  24. };
  25. atlas0_alert_2: atlas0-alert-2 {
  26. temperature = <75000>; /* millicelsius */
  27. hysteresis = <1000>; /* millicelsius */
  28. type = "active";
  29. };
  30. atlas0_alert_3: atlas0-alert-3 {
  31. temperature = <80000>; /* millicelsius */
  32. hysteresis = <1000>; /* millicelsius */
  33. type = "active";
  34. };
  35. atlas0_alert_4: atlas0-alert-4 {
  36. temperature = <85000>; /* millicelsius */
  37. hysteresis = <1000>; /* millicelsius */
  38. type = "active";
  39. };
  40. atlas0_alert_5: atlas0-alert-5 {
  41. temperature = <90000>; /* millicelsius */
  42. hysteresis = <1000>; /* millicelsius */
  43. type = "active";
  44. };
  45. atlas0_alert_6: atlas0-alert-6 {
  46. temperature = <95000>; /* millicelsius */
  47. hysteresis = <1000>; /* millicelsius */
  48. type = "active";
  49. };
  50. };
  51. cooling-maps {
  52. map0 {
  53. /* Set maximum frequency as 1800MHz */
  54. trip = <&atlas0_alert_0>;
  55. cooling-device = <&cpu4 1 2>;
  56. };
  57. map1 {
  58. /* Set maximum frequency as 1700MHz */
  59. trip = <&atlas0_alert_1>;
  60. cooling-device = <&cpu4 2 3>;
  61. };
  62. map2 {
  63. /* Set maximum frequency as 1600MHz */
  64. trip = <&atlas0_alert_2>;
  65. cooling-device = <&cpu4 3 4>;
  66. };
  67. map3 {
  68. /* Set maximum frequency as 1500MHz */
  69. trip = <&atlas0_alert_3>;
  70. cooling-device = <&cpu4 4 5>;
  71. };
  72. map4 {
  73. /* Set maximum frequency as 1400MHz */
  74. trip = <&atlas0_alert_4>;
  75. cooling-device = <&cpu4 5 7>;
  76. };
  77. map5 {
  78. /* Set maximum frequencyas 1200MHz */
  79. trip = <&atlas0_alert_5>;
  80. cooling-device = <&cpu4 7 9>;
  81. };
  82. map6 {
  83. /* Set maximum frequency as 1000MHz */
  84. trip = <&atlas0_alert_6>;
  85. cooling-device = <&cpu4 9 14>;
  86. };
  87. };
  88. };
  89. atlas1_thermal: atlas1-thermal {
  90. thermal-sensors = <&tmu_atlas1>;
  91. polling-delay-passive = <0>;
  92. polling-delay = <0>;
  93. trips {
  94. atlas1_alert_0: atlas1-alert-0 {
  95. temperature = <65000>; /* millicelsius */
  96. hysteresis = <1000>; /* millicelsius */
  97. type = "active";
  98. };
  99. atlas1_alert_1: atlas1-alert-1 {
  100. temperature = <70000>; /* millicelsius */
  101. hysteresis = <1000>; /* millicelsius */
  102. type = "active";
  103. };
  104. atlas1_alert_2: atlas1-alert-2 {
  105. temperature = <75000>; /* millicelsius */
  106. hysteresis = <1000>; /* millicelsius */
  107. type = "active";
  108. };
  109. atlas1_alert_3: atlas1-alert-3 {
  110. temperature = <80000>; /* millicelsius */
  111. hysteresis = <1000>; /* millicelsius */
  112. type = "active";
  113. };
  114. atlas1_alert_4: atlas1-alert-4 {
  115. temperature = <85000>; /* millicelsius */
  116. hysteresis = <1000>; /* millicelsius */
  117. type = "active";
  118. };
  119. atlas1_alert_5: atlas1-alert-5 {
  120. temperature = <90000>; /* millicelsius */
  121. hysteresis = <1000>; /* millicelsius */
  122. type = "active";
  123. };
  124. atlas1_alert_6: atlas1-alert-6 {
  125. temperature = <95000>; /* millicelsius */
  126. hysteresis = <1000>; /* millicelsius */
  127. type = "active";
  128. };
  129. };
  130. };
  131. g3d_thermal: g3d-thermal {
  132. thermal-sensors = <&tmu_g3d>;
  133. polling-delay-passive = <0>;
  134. polling-delay = <0>;
  135. trips {
  136. g3d_alert_0: g3d-alert-0 {
  137. temperature = <70000>; /* millicelsius */
  138. hysteresis = <1000>; /* millicelsius */
  139. type = "active";
  140. };
  141. g3d_alert_1: g3d-alert-1 {
  142. temperature = <75000>; /* millicelsius */
  143. hysteresis = <1000>; /* millicelsius */
  144. type = "active";
  145. };
  146. g3d_alert_2: g3d-alert-2 {
  147. temperature = <80000>; /* millicelsius */
  148. hysteresis = <1000>; /* millicelsius */
  149. type = "active";
  150. };
  151. g3d_alert_3: g3d-alert-3 {
  152. temperature = <85000>; /* millicelsius */
  153. hysteresis = <1000>; /* millicelsius */
  154. type = "active";
  155. };
  156. g3d_alert_4: g3d-alert-4 {
  157. temperature = <90000>; /* millicelsius */
  158. hysteresis = <1000>; /* millicelsius */
  159. type = "active";
  160. };
  161. g3d_alert_5: g3d-alert-5 {
  162. temperature = <95000>; /* millicelsius */
  163. hysteresis = <1000>; /* millicelsius */
  164. type = "active";
  165. };
  166. g3d_alert_6: g3d-alert-6 {
  167. temperature = <100000>; /* millicelsius */
  168. hysteresis = <1000>; /* millicelsius */
  169. type = "active";
  170. };
  171. };
  172. };
  173. apollo_thermal: apollo-thermal {
  174. thermal-sensors = <&tmu_apollo>;
  175. polling-delay-passive = <0>;
  176. polling-delay = <0>;
  177. trips {
  178. apollo_alert_0: apollo-alert-0 {
  179. temperature = <65000>; /* millicelsius */
  180. hysteresis = <1000>; /* millicelsius */
  181. type = "active";
  182. };
  183. apollo_alert_1: apollo-alert-1 {
  184. temperature = <70000>; /* millicelsius */
  185. hysteresis = <1000>; /* millicelsius */
  186. type = "active";
  187. };
  188. apollo_alert_2: apollo-alert-2 {
  189. temperature = <75000>; /* millicelsius */
  190. hysteresis = <1000>; /* millicelsius */
  191. type = "active";
  192. };
  193. apollo_alert_3: apollo-alert-3 {
  194. temperature = <80000>; /* millicelsius */
  195. hysteresis = <1000>; /* millicelsius */
  196. type = "active";
  197. };
  198. apollo_alert_4: apollo-alert-4 {
  199. temperature = <85000>; /* millicelsius */
  200. hysteresis = <1000>; /* millicelsius */
  201. type = "active";
  202. };
  203. apollo_alert_5: apollo-alert-5 {
  204. temperature = <90000>; /* millicelsius */
  205. hysteresis = <1000>; /* millicelsius */
  206. type = "active";
  207. };
  208. apollo_alert_6: apollo-alert-6 {
  209. temperature = <95000>; /* millicelsius */
  210. hysteresis = <1000>; /* millicelsius */
  211. type = "active";
  212. };
  213. };
  214. cooling-maps {
  215. map0 {
  216. /* Set maximum frequency as 1200MHz */
  217. trip = <&apollo_alert_2>;
  218. cooling-device = <&cpu0 1 2>;
  219. };
  220. map1 {
  221. /* Set maximum frequency as 1100MHz */
  222. trip = <&apollo_alert_3>;
  223. cooling-device = <&cpu0 2 3>;
  224. };
  225. map2 {
  226. /* Set maximum frequency as 1000MHz */
  227. trip = <&apollo_alert_4>;
  228. cooling-device = <&cpu0 3 4>;
  229. };
  230. map3 {
  231. /* Set maximum frequency as 900MHz */
  232. trip = <&apollo_alert_5>;
  233. cooling-device = <&cpu0 4 5>;
  234. };
  235. map4 {
  236. /* Set maximum frequency as 800MHz */
  237. trip = <&apollo_alert_6>;
  238. cooling-device = <&cpu0 5 9>;
  239. };
  240. };
  241. };
  242. isp_thermal: isp-thermal {
  243. thermal-sensors = <&tmu_isp>;
  244. polling-delay-passive = <0>;
  245. polling-delay = <0>;
  246. trips {
  247. isp_alert_0: isp-alert-0 {
  248. temperature = <80000>; /* millicelsius */
  249. hysteresis = <1000>; /* millicelsius */
  250. type = "active";
  251. };
  252. isp_alert_1: isp-alert-1 {
  253. temperature = <85000>; /* millicelsius */
  254. hysteresis = <1000>; /* millicelsius */
  255. type = "active";
  256. };
  257. isp_alert_2: isp-alert-2 {
  258. temperature = <90000>; /* millicelsius */
  259. hysteresis = <1000>; /* millicelsius */
  260. type = "active";
  261. };
  262. isp_alert_3: isp-alert-3 {
  263. temperature = <95000>; /* millicelsius */
  264. hysteresis = <1000>; /* millicelsius */
  265. type = "active";
  266. };
  267. isp_alert_4: isp-alert-4 {
  268. temperature = <100000>; /* millicelsius */
  269. hysteresis = <1000>; /* millicelsius */
  270. type = "active";
  271. };
  272. isp_alert_5: isp-alert-5 {
  273. temperature = <105000>; /* millicelsius */
  274. hysteresis = <1000>; /* millicelsius */
  275. type = "active";
  276. };
  277. isp_alert_6: isp-alert-6 {
  278. temperature = <110000>; /* millicelsius */
  279. hysteresis = <1000>; /* millicelsius */
  280. type = "active";
  281. };
  282. };
  283. };
  284. };
  285. };