rk3288-thermal.dtsi 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Device Tree Source for RK3288 SoC thermal
  3. *
  4. * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd
  5. *
  6. * SPDX-License-Identifier: GPL-2.0
  7. */
  8. #include <dt-bindings/thermal/thermal.h>
  9. reserve_thermal: reserve_thermal {
  10. polling-delay-passive = <1000>; /* milliseconds */
  11. polling-delay = <5000>; /* milliseconds */
  12. /* sensor ID */
  13. thermal-sensors = <&tsadc 0>;
  14. };
  15. cpu_thermal: cpu_thermal {
  16. polling-delay-passive = <100>; /* milliseconds */
  17. polling-delay = <5000>; /* milliseconds */
  18. /* sensor ID */
  19. thermal-sensors = <&tsadc 1>;
  20. linux,hwmon;
  21. trips {
  22. cpu_alert0: cpu_alert0 {
  23. temperature = <70000>; /* millicelsius */
  24. hysteresis = <2000>; /* millicelsius */
  25. type = "passive";
  26. };
  27. cpu_alert1: cpu_alert1 {
  28. temperature = <75000>; /* millicelsius */
  29. hysteresis = <2000>; /* millicelsius */
  30. type = "passive";
  31. };
  32. cpu_crit: cpu_crit {
  33. temperature = <100000>; /* millicelsius */
  34. hysteresis = <2000>; /* millicelsius */
  35. type = "critical";
  36. };
  37. };
  38. cooling-maps {
  39. map0 {
  40. trip = <&cpu_alert0>;
  41. cooling-device =
  42. <&cpu0 THERMAL_NO_LIMIT 6>;
  43. };
  44. map1 {
  45. trip = <&cpu_alert1>;
  46. cooling-device =
  47. <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  48. };
  49. };
  50. };
  51. gpu_thermal: gpu_thermal {
  52. polling-delay-passive = <100>; /* milliseconds */
  53. polling-delay = <5000>; /* milliseconds */
  54. /* sensor ID */
  55. thermal-sensors = <&tsadc 2>;
  56. linux,hwmon;
  57. trips {
  58. gpu_alert0: gpu_alert0 {
  59. temperature = <80000>; /* millicelsius */
  60. hysteresis = <2000>; /* millicelsius */
  61. type = "passive";
  62. };
  63. gpu_crit: gpu_crit {
  64. temperature = <100000>; /* millicelsius */
  65. hysteresis = <2000>; /* millicelsius */
  66. type = "critical";
  67. };
  68. };
  69. cooling-maps {
  70. map0 {
  71. trip = <&gpu_alert0>;
  72. cooling-device =
  73. <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  74. };
  75. };
  76. };