uniphier-thermal.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. * UniPhier Thermal bindings
  2. This describes the devicetree bindings for thermal monitor supported by
  3. PVT(Process, Voltage and Temperature) monitoring unit implemented on Socionext
  4. UniPhier SoCs.
  5. Required properties:
  6. - compatible :
  7. - "socionext,uniphier-pxs2-thermal" : For UniPhier PXs2 SoC
  8. - "socionext,uniphier-ld20-thermal" : For UniPhier LD20 SoC
  9. - "socionext,uniphier-pxs3-thermal" : For UniPhier PXs3 SoC
  10. - interrupts : IRQ for the temperature alarm
  11. - #thermal-sensor-cells : Should be 0. See ./thermal.txt for details.
  12. Optional properties:
  13. - socionext,tmod-calibration: A pair of calibrated values referred from PVT,
  14. in case that the values aren't set on SoC,
  15. like a reference board.
  16. Example:
  17. sysctrl@61840000 {
  18. compatible = "socionext,uniphier-ld20-sysctrl",
  19. "simple-mfd", "syscon";
  20. reg = <0x61840000 0x10000>;
  21. ...
  22. pvtctl: pvtctl {
  23. compatible = "socionext,uniphier-ld20-thermal";
  24. interrupts = <0 3 1>;
  25. #thermal-sensor-cells = <0>;
  26. };
  27. ...
  28. };
  29. thermal-zones {
  30. cpu_thermal {
  31. polling-delay-passive = <250>; /* 250ms */
  32. polling-delay = <1000>; /* 1000ms */
  33. thermal-sensors = <&pvtctl>;
  34. trips {
  35. cpu_crit: cpu_crit {
  36. temperature = <110000>; /* 110C */
  37. hysteresis = <2000>;
  38. type = "critical";
  39. };
  40. cpu_alert: cpu_alert {
  41. temperature = <100000>; /* 100C */
  42. hysteresis = <2000>;
  43. type = "passive";
  44. };
  45. };
  46. cooling-maps {
  47. map0 {
  48. trip = <&cpu_alert>;
  49. cooling-device = <&cpu0 (-1) (-1)>;
  50. };
  51. map1 {
  52. trip = <&cpu_alert>;
  53. cooling-device = <&cpu2 (-1) (-1)>;
  54. };
  55. };
  56. };
  57. };