exynos-thermal.txt 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. * Exynos Thermal Management Unit (TMU)
  2. ** Required properties:
  3. - compatible : One of the following:
  4. "samsung,exynos3250-tmu"
  5. "samsung,exynos4412-tmu"
  6. "samsung,exynos4210-tmu"
  7. "samsung,exynos5250-tmu"
  8. "samsung,exynos5260-tmu"
  9. "samsung,exynos5420-tmu" for TMU channel 0, 1 on Exynos5420
  10. "samsung,exynos5420-tmu-ext-triminfo" for TMU channels 2, 3 and 4
  11. Exynos5420 (Must pass triminfo base and triminfo clock)
  12. "samsung,exynos5433-tmu"
  13. "samsung,exynos7-tmu"
  14. - reg : Address range of the thermal registers. For soc's which has multiple
  15. instances of TMU and some registers are shared across all TMU's like
  16. interrupt related then 2 set of register has to supplied. First set
  17. belongs to register set of TMU instance and second set belongs to
  18. registers shared with the TMU instance.
  19. NOTE: On Exynos5420, the TRIMINFO register is misplaced for TMU
  20. channels 2, 3 and 4
  21. Use "samsung,exynos5420-tmu-ext-triminfo" in cases, there is a misplaced
  22. register, also provide clock to access that base.
  23. TRIMINFO at 0x1006c000 contains data for TMU channel 3
  24. TRIMINFO at 0x100a0000 contains data for TMU channel 4
  25. TRIMINFO at 0x10068000 contains data for TMU channel 2
  26. - interrupts : Should contain interrupt for thermal system
  27. - clocks : The main clocks for TMU device
  28. -- 1. operational clock for TMU channel
  29. -- 2. optional clock to access the shared registers of TMU channel
  30. -- 3. optional special clock for functional operation
  31. - clock-names : Thermal system clock name
  32. -- "tmu_apbif" operational clock for current TMU channel
  33. -- "tmu_triminfo_apbif" clock to access the shared triminfo register
  34. for current TMU channel
  35. -- "tmu_sclk" clock for functional operation of the current TMU
  36. channel
  37. The Exynos TMU supports generating interrupts when reaching given
  38. temperature thresholds. Number of supported thermal trip points depends
  39. on the SoC (only first trip points defined in DT will be configured):
  40. - most of SoC: 4
  41. - samsung,exynos5433-tmu: 8
  42. - samsung,exynos7-tmu: 8
  43. ** Optional properties:
  44. - vtmu-supply: This entry is optional and provides the regulator node supplying
  45. voltage to TMU. If needed this entry can be placed inside
  46. board/platform specific dts file.
  47. Example 1):
  48. tmu@100c0000 {
  49. compatible = "samsung,exynos4412-tmu";
  50. interrupt-parent = <&combiner>;
  51. reg = <0x100C0000 0x100>;
  52. interrupts = <2 4>;
  53. clocks = <&clock 383>;
  54. clock-names = "tmu_apbif";
  55. vtmu-supply = <&tmu_regulator_node>;
  56. #thermal-sensor-cells = <0>;
  57. };
  58. Example 2): (In case of Exynos5420 "with misplaced TRIMINFO register")
  59. tmu_cpu2: tmu@10068000 {
  60. compatible = "samsung,exynos5420-tmu-ext-triminfo";
  61. reg = <0x10068000 0x100>, <0x1006c000 0x4>;
  62. interrupts = <0 184 0>;
  63. clocks = <&clock 318>, <&clock 318>;
  64. clock-names = "tmu_apbif", "tmu_triminfo_apbif";
  65. #thermal-sensor-cells = <0>;
  66. };
  67. tmu_cpu3: tmu@1006c000 {
  68. compatible = "samsung,exynos5420-tmu-ext-triminfo";
  69. reg = <0x1006c000 0x100>, <0x100a0000 0x4>;
  70. interrupts = <0 185 0>;
  71. clocks = <&clock 318>, <&clock 319>;
  72. clock-names = "tmu_apbif", "tmu_triminfo_apbif";
  73. #thermal-sensor-cells = <0>;
  74. };
  75. tmu_gpu: tmu@100a0000 {
  76. compatible = "samsung,exynos5420-tmu-ext-triminfo";
  77. reg = <0x100a0000 0x100>, <0x10068000 0x4>;
  78. interrupts = <0 215 0>;
  79. clocks = <&clock 319>, <&clock 318>;
  80. clock-names = "tmu_apbif", "tmu_triminfo_apbif";
  81. #thermal-sensor-cells = <0>;
  82. };
  83. Note: For multi-instance tmu each instance should have an alias correctly
  84. numbered in "aliases" node.
  85. Example:
  86. aliases {
  87. tmuctrl0 = &tmuctrl_0;
  88. tmuctrl1 = &tmuctrl_1;
  89. tmuctrl2 = &tmuctrl_2;
  90. };