qcom-spmi-temp-alarm.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Qualcomm QPNP PMIC Temperature Alarm
  2. QPNP temperature alarm peripherals are found inside of Qualcomm PMIC chips
  3. that utilize the Qualcomm SPMI implementation. These peripherals provide an
  4. interrupt signal and status register to identify high PMIC die temperature.
  5. Required properties:
  6. - compatible: Should contain "qcom,spmi-temp-alarm".
  7. - reg: Specifies the SPMI address and length of the controller's
  8. registers.
  9. - interrupts: PMIC temperature alarm interrupt.
  10. - #thermal-sensor-cells: Should be 0. See thermal.txt for a description.
  11. Optional properties:
  12. - io-channels: Should contain IIO channel specifier for the ADC channel,
  13. which report chip die temperature.
  14. - io-channel-names: Should contain "thermal".
  15. Example:
  16. pm8941_temp: thermal-alarm@2400 {
  17. compatible = "qcom,spmi-temp-alarm";
  18. reg = <0x2400 0x100>;
  19. interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
  20. #thermal-sensor-cells = <0>;
  21. io-channels = <&pm8941_vadc VADC_DIE_TEMP>;
  22. io-channel-names = "thermal";
  23. };
  24. thermal-zones {
  25. pm8941 {
  26. polling-delay-passive = <250>;
  27. polling-delay = <1000>;
  28. thermal-sensors = <&pm8941_temp>;
  29. trips {
  30. passive {
  31. temperature = <1050000>;
  32. hysteresis = <2000>;
  33. type = "passive";
  34. };
  35. alert {
  36. temperature = <125000>;
  37. hysteresis = <2000>;
  38. type = "hot";
  39. };
  40. crit {
  41. temperature = <145000>;
  42. hysteresis = <2000>;
  43. type = "critical";
  44. };
  45. };
  46. };
  47. };