rcar-thermal.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. * Renesas R-Car Thermal
  2. Required properties:
  3. - compatible : "renesas,thermal-<soctype>",
  4. "renesas,rcar-gen2-thermal" (with thermal-zone) or
  5. "renesas,rcar-thermal" (without thermal-zone) as
  6. fallback except R-Car D3.
  7. Examples with soctypes are:
  8. - "renesas,thermal-r8a73a4" (R-Mobile APE6)
  9. - "renesas,thermal-r8a7743" (RZ/G1M)
  10. - "renesas,thermal-r8a7779" (R-Car H1)
  11. - "renesas,thermal-r8a7790" (R-Car H2)
  12. - "renesas,thermal-r8a7791" (R-Car M2-W)
  13. - "renesas,thermal-r8a7792" (R-Car V2H)
  14. - "renesas,thermal-r8a7793" (R-Car M2-N)
  15. - "renesas,thermal-r8a77995" (R-Car D3)
  16. - reg : Address range of the thermal registers.
  17. The 1st reg will be recognized as common register
  18. if it has "interrupts".
  19. Option properties:
  20. - interrupts : If present should contain 3 interrupts for
  21. R-Car D3 or 1 interrupt otherwise.
  22. Example (non interrupt support):
  23. thermal@ffc48000 {
  24. compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
  25. reg = <0xffc48000 0x38>;
  26. };
  27. Example (interrupt support):
  28. thermal@e61f0000 {
  29. compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
  30. reg = <0xe61f0000 0x14
  31. 0xe61f0100 0x38
  32. 0xe61f0200 0x38
  33. 0xe61f0300 0x38>;
  34. interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
  35. };
  36. Example (with thermal-zone):
  37. thermal-zones {
  38. cpu_thermal: cpu-thermal {
  39. polling-delay-passive = <1000>;
  40. polling-delay = <5000>;
  41. thermal-sensors = <&thermal>;
  42. trips {
  43. cpu-crit {
  44. temperature = <115000>;
  45. hysteresis = <0>;
  46. type = "critical";
  47. };
  48. };
  49. cooling-maps {
  50. };
  51. };
  52. };
  53. thermal: thermal@e61f0000 {
  54. compatible = "renesas,thermal-r8a7790",
  55. "renesas,rcar-gen2-thermal",
  56. "renesas,rcar-thermal";
  57. reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
  58. interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
  59. clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
  60. power-domains = <&cpg_clocks>;
  61. #thermal-sensor-cells = <0>;
  62. };