exynos-thermal.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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,exynos5440-tmu"
  13. - interrupt-parent : The phandle for the interrupt controller
  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. - clock-names : Thermal system clock name
  31. -- "tmu_apbif" operational clock for current TMU channel
  32. -- "tmu_triminfo_apbif" clock to access the shared triminfo register
  33. for current TMU channel
  34. - vtmu-supply: This entry is optional and provides the regulator node supplying
  35. voltage to TMU. If needed this entry can be placed inside
  36. board/platform specific dts file.
  37. Example 1):
  38. tmu@100C0000 {
  39. compatible = "samsung,exynos4412-tmu";
  40. interrupt-parent = <&combiner>;
  41. reg = <0x100C0000 0x100>;
  42. interrupts = <2 4>;
  43. clocks = <&clock 383>;
  44. clock-names = "tmu_apbif";
  45. status = "disabled";
  46. vtmu-supply = <&tmu_regulator_node>;
  47. };
  48. Example 2):
  49. tmuctrl_0: tmuctrl@160118 {
  50. compatible = "samsung,exynos5440-tmu";
  51. reg = <0x160118 0x230>, <0x160368 0x10>;
  52. interrupts = <0 58 0>;
  53. clocks = <&clock 21>;
  54. clock-names = "tmu_apbif";
  55. };
  56. Example 3): (In case of Exynos5420 "with misplaced TRIMINFO register")
  57. tmu_cpu2: tmu@10068000 {
  58. compatible = "samsung,exynos5420-tmu-ext-triminfo";
  59. reg = <0x10068000 0x100>, <0x1006c000 0x4>;
  60. interrupts = <0 184 0>;
  61. clocks = <&clock 318>, <&clock 318>;
  62. clock-names = "tmu_apbif", "tmu_triminfo_apbif";
  63. };
  64. tmu_cpu3: tmu@1006c000 {
  65. compatible = "samsung,exynos5420-tmu-ext-triminfo";
  66. reg = <0x1006c000 0x100>, <0x100a0000 0x4>;
  67. interrupts = <0 185 0>;
  68. clocks = <&clock 318>, <&clock 319>;
  69. clock-names = "tmu_apbif", "tmu_triminfo_apbif";
  70. };
  71. tmu_gpu: tmu@100a0000 {
  72. compatible = "samsung,exynos5420-tmu-ext-triminfo";
  73. reg = <0x100a0000 0x100>, <0x10068000 0x4>;
  74. interrupts = <0 215 0>;
  75. clocks = <&clock 319>, <&clock 318>;
  76. clock-names = "tmu_apbif", "tmu_triminfo_apbif";
  77. };
  78. Note: For multi-instance tmu each instance should have an alias correctly
  79. numbered in "aliases" node.
  80. Example:
  81. aliases {
  82. tmuctrl0 = &tmuctrl_0;
  83. tmuctrl1 = &tmuctrl_1;
  84. tmuctrl2 = &tmuctrl_2;
  85. };