exynos5422-odroidhc1.dts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Hardkernel Odroid HC1 board device tree source
  4. *
  5. * Copyright (c) 2017 Marek Szyprowski
  6. * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  7. * http://www.samsung.com
  8. */
  9. /dts-v1/;
  10. #include <dt-bindings/leds/common.h>
  11. #include "exynos5422-odroid-core.dtsi"
  12. / {
  13. model = "Hardkernel Odroid HC1";
  14. compatible = "hardkernel,odroid-hc1", "samsung,exynos5800", \
  15. "samsung,exynos5";
  16. led-controller {
  17. compatible = "pwm-leds";
  18. led-1 {
  19. function = LED_FUNCTION_HEARTBEAT;
  20. color = <LED_COLOR_ID_BLUE>;
  21. pwms = <&pwm 2 2000000 0>;
  22. pwm-names = "pwm2";
  23. max-brightness = <255>;
  24. linux,default-trigger = "heartbeat";
  25. };
  26. };
  27. thermal-zones {
  28. cpu0_thermal: cpu0-thermal {
  29. thermal-sensors = <&tmu_cpu0>;
  30. trips {
  31. cpu0_alert0: cpu-alert-0 {
  32. temperature = <70000>; /* millicelsius */
  33. hysteresis = <10000>; /* millicelsius */
  34. type = "active";
  35. };
  36. cpu0_alert1: cpu-alert-1 {
  37. temperature = <85000>; /* millicelsius */
  38. hysteresis = <10000>; /* millicelsius */
  39. type = "active";
  40. };
  41. cpu0_crit0: cpu-crit-0 {
  42. temperature = <120000>; /* millicelsius */
  43. hysteresis = <0>; /* millicelsius */
  44. type = "critical";
  45. };
  46. };
  47. cooling-maps {
  48. /*
  49. * When reaching cpu0_alert0, reduce CPU
  50. * by 2 steps. On Exynos5422/5800 that would
  51. * be: 1600 MHz and 1100 MHz.
  52. */
  53. map0 {
  54. trip = <&cpu0_alert0>;
  55. cooling-device = <&cpu0 0 2>,
  56. <&cpu1 0 2>,
  57. <&cpu2 0 2>,
  58. <&cpu3 0 2>,
  59. <&cpu4 0 2>,
  60. <&cpu5 0 2>,
  61. <&cpu6 0 2>,
  62. <&cpu7 0 2>;
  63. };
  64. /*
  65. * When reaching cpu0_alert1, reduce CPU
  66. * further, down to 600 MHz (12 steps for big,
  67. * 7 steps for LITTLE).
  68. */
  69. map1 {
  70. trip = <&cpu0_alert1>;
  71. cooling-device = <&cpu0 3 8>,
  72. <&cpu1 3 8>,
  73. <&cpu2 3 8>,
  74. <&cpu3 3 8>,
  75. <&cpu4 3 14>,
  76. <&cpu5 3 14>,
  77. <&cpu6 3 14>,
  78. <&cpu7 3 14>;
  79. };
  80. };
  81. };
  82. cpu1_thermal: cpu1-thermal {
  83. thermal-sensors = <&tmu_cpu1>;
  84. trips {
  85. cpu1_alert0: cpu-alert-0 {
  86. temperature = <70000>;
  87. hysteresis = <10000>;
  88. type = "active";
  89. };
  90. cpu1_alert1: cpu-alert-1 {
  91. temperature = <85000>;
  92. hysteresis = <10000>;
  93. type = "active";
  94. };
  95. cpu1_crit0: cpu-crit-0 {
  96. temperature = <120000>;
  97. hysteresis = <0>;
  98. type = "critical";
  99. };
  100. };
  101. cooling-maps {
  102. map0 {
  103. trip = <&cpu1_alert0>;
  104. cooling-device = <&cpu0 0 2>,
  105. <&cpu1 0 2>,
  106. <&cpu2 0 2>,
  107. <&cpu3 0 2>,
  108. <&cpu4 0 2>,
  109. <&cpu5 0 2>,
  110. <&cpu6 0 2>,
  111. <&cpu7 0 2>;
  112. };
  113. map1 {
  114. trip = <&cpu1_alert1>;
  115. cooling-device = <&cpu0 3 8>,
  116. <&cpu1 3 8>,
  117. <&cpu2 3 8>,
  118. <&cpu3 3 8>,
  119. <&cpu4 3 14>,
  120. <&cpu5 3 14>,
  121. <&cpu6 3 14>,
  122. <&cpu7 3 14>;
  123. };
  124. };
  125. };
  126. cpu2_thermal: cpu2-thermal {
  127. thermal-sensors = <&tmu_cpu2>;
  128. trips {
  129. cpu2_alert0: cpu-alert-0 {
  130. temperature = <70000>;
  131. hysteresis = <10000>;
  132. type = "active";
  133. };
  134. cpu2_alert1: cpu-alert-1 {
  135. temperature = <85000>;
  136. hysteresis = <10000>;
  137. type = "active";
  138. };
  139. cpu2_crit0: cpu-crit-0 {
  140. temperature = <120000>;
  141. hysteresis = <0>;
  142. type = "critical";
  143. };
  144. };
  145. cooling-maps {
  146. map0 {
  147. trip = <&cpu2_alert0>;
  148. cooling-device = <&cpu0 0 2>,
  149. <&cpu1 0 2>,
  150. <&cpu2 0 2>,
  151. <&cpu3 0 2>,
  152. <&cpu4 0 2>,
  153. <&cpu5 0 2>,
  154. <&cpu6 0 2>,
  155. <&cpu7 0 2>;
  156. };
  157. map1 {
  158. trip = <&cpu2_alert1>;
  159. cooling-device = <&cpu0 3 8>,
  160. <&cpu1 3 8>,
  161. <&cpu2 3 8>,
  162. <&cpu3 3 8>,
  163. <&cpu4 3 14>,
  164. <&cpu5 3 14>,
  165. <&cpu6 3 14>,
  166. <&cpu7 3 14>;
  167. };
  168. };
  169. };
  170. cpu3_thermal: cpu3-thermal {
  171. thermal-sensors = <&tmu_cpu3>;
  172. trips {
  173. cpu3_alert0: cpu-alert-0 {
  174. temperature = <70000>;
  175. hysteresis = <10000>;
  176. type = "active";
  177. };
  178. cpu3_alert1: cpu-alert-1 {
  179. temperature = <85000>;
  180. hysteresis = <10000>;
  181. type = "active";
  182. };
  183. cpu3_crit0: cpu-crit-0 {
  184. temperature = <120000>;
  185. hysteresis = <0>;
  186. type = "critical";
  187. };
  188. };
  189. cooling-maps {
  190. map0 {
  191. trip = <&cpu3_alert0>;
  192. cooling-device = <&cpu0 0 2>,
  193. <&cpu1 0 2>,
  194. <&cpu2 0 2>,
  195. <&cpu3 0 2>,
  196. <&cpu4 0 2>,
  197. <&cpu5 0 2>,
  198. <&cpu6 0 2>,
  199. <&cpu7 0 2>;
  200. };
  201. map1 {
  202. trip = <&cpu3_alert1>;
  203. cooling-device = <&cpu0 3 8>,
  204. <&cpu1 3 8>,
  205. <&cpu2 3 8>,
  206. <&cpu3 3 8>,
  207. <&cpu4 3 14>,
  208. <&cpu5 3 14>,
  209. <&cpu6 3 14>,
  210. <&cpu7 3 14>;
  211. };
  212. };
  213. };
  214. gpu_thermal: gpu-thermal {
  215. thermal-sensors = <&tmu_gpu>;
  216. trips {
  217. gpu_alert0: gpu-alert-0 {
  218. temperature = <70000>;
  219. hysteresis = <10000>;
  220. type = "active";
  221. };
  222. gpu_alert1: gpu-alert-1 {
  223. temperature = <85000>;
  224. hysteresis = <10000>;
  225. type = "active";
  226. };
  227. gpu_crit0: gpu-crit-0 {
  228. temperature = <120000>;
  229. hysteresis = <0>;
  230. type = "critical";
  231. };
  232. };
  233. cooling-maps {
  234. map0 {
  235. trip = <&gpu_alert0>;
  236. cooling-device = <&gpu 0 2>;
  237. };
  238. map1 {
  239. trip = <&gpu_alert1>;
  240. cooling-device = <&gpu 3 6>;
  241. };
  242. };
  243. };
  244. };
  245. };
  246. &pwm {
  247. /*
  248. * PWM 2 -- Blue LED
  249. */
  250. pinctrl-0 = <&pwm2_out>;
  251. pinctrl-names = "default";
  252. samsung,pwm-outputs = <2>;
  253. status = "okay";
  254. };
  255. &usbdrd_dwc3_1 {
  256. dr_mode = "host";
  257. };