rcar-thermal.txt 1.7 KB

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