qpnp-temp-alarm.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Qualcomm QPNP Temperature Alarm
  2. QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips that
  3. utilize the MSM SPMI implementation. These peripherals provide an interrupt
  4. signal and status register to identify high PMIC die temperature.
  5. Required properties:
  6. - compatible: Must be "qcom,qpnp-temp-alarm".
  7. - reg: Specifies the SPMI address and size for this temperature
  8. alarm device.
  9. - interrupts: PMIC temperature alarm interrupt
  10. - label: A string used as a descriptive name for this thermal device.
  11. This name should be 19 characters or less.
  12. Required structure:
  13. - A qcom,qpnp-temp-alarm node must be a child of an SPMI node that has specified
  14. the spmi-slave-container property
  15. Optional properties:
  16. - qcom,channel-num: VADC channel number associated PMIC DIE_TEMP thermistor.
  17. If no channel is specified, then the die temperature
  18. must be estimated based on the over temperature stage.
  19. - qcom,threshold-set: Integer value which specifies which set of threshold
  20. temperatures to use for the over temperature stages.
  21. Possible values (x = {stage 1 threshold temperature,
  22. stage 2 threshold temperature,
  23. stage 3 threshold temperature}):
  24. 0 = {105 C, 125 C, 145 C}
  25. 1 = {110 C, 130 C, 150 C}
  26. 2 = {115 C, 135 C, 155 C}
  27. 3 = {120 C, 140 C, 160 C}
  28. - qcom,allow-override: Boolean which controls the ability of software to
  29. override shutdowns. If present, then software is
  30. allowed to override automatic PMIC hardware stage 2 and
  31. stage 3 over temperature shutdowns. Otherwise, software
  32. is not allowed to override automatic shutdown.
  33. - qcom,default-temp: Specifies the default temperature in millicelcius to use
  34. if no ADC channel is present to read the real time
  35. temperature.
  36. - qcom,temp_alarm-vadc: Corresponding VADC device's phandle.
  37. Note, if a given optional qcom,* binding is not present, then the default
  38. hardware state for that feature will be maintained.
  39. Example:
  40. &spmi_bus {
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. interrupt-controller;
  44. #interrupt-cells = <3>;
  45. qcom,pm8941@0 {
  46. spmi-slave-container;
  47. reg = <0x0>;
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. qcom,temp-alarm@2400 {
  51. compatible = "qcom,qpnp-temp-alarm";
  52. reg = <0x2400 0x100>;
  53. interrupts = <0x0 0x24 0x0>;
  54. label = "pm8941_tz";
  55. qcom,channel-num = <8>;
  56. qcom,threshold-set = <0>;
  57. qcom,temp_alarm-vadc = <&pm8941_vadc>;
  58. };
  59. };
  60. };