qti-qmi-cdev.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. QMI thermal mitigation(TMD) cooling devices.
  2. The QMI TMD cooling device, will be used for various mitigations for remote
  3. subsystem including remote processor mitigation, rail voltage restriction etc.
  4. This cooling device uses kernel qti QMI interface to send the message to
  5. remote subsystem.
  6. Each child node of the QMI TMD devicetree node represents each remote
  7. subsystem and each child of this subsystem represents separate cooling
  8. devices. It requires minimum one remote subsystem node and each subsystem
  9. node requires minimum one cooling device node.
  10. Properties:
  11. - compatible:
  12. Usage: required
  13. Value type: <string>
  14. Definition: should be "qcom,qmi_cooling_devices"
  15. Subsystem properties:
  16. - qcom,instance-id:
  17. Usage: required
  18. Value type: <integer>
  19. Definition: Remote subsystem QMI server instance id to be used for
  20. communicating with QMI.
  21. Minimum one child node is required. Child node name and its alias are
  22. used as cooling device name and phandle for that cooling device.
  23. cooling device node properties:
  24. -qcom,qmi-dev-name:
  25. Usage: required
  26. Value type: <string>
  27. Definition: Remote subsystem device identifier. Below strings
  28. are the only acceptable device names,
  29. "pa" -> for pa cooling device,
  30. "cpuv_restriction_cold" -> for vdd restriction,
  31. "cx_vdd_limit" -> for vdd limit,
  32. "modem" -> for processor passive cooling device,
  33. "modem_current" -> for current limiting device,
  34. "modem_bw" -> for bus bandwidth limiting device,
  35. "cpr_cold" -> for cpr restriction.
  36. -#cooling-cells:
  37. Usage: required
  38. Value type: <integer>
  39. Definition: Must be 2. Needed for of_thermal as cooling device
  40. identifier. Please refer to
  41. <devicetree/bindings/thermal/thermal.txt> for more
  42. details.
  43. Example:
  44. qmi-tmd-devices {
  45. compatible = "qcom,qmi_cooling_devices";
  46. modem {
  47. qcom,instance-id = <0x0>;
  48. modem_pa: modem_pa {
  49. qcom,qmi-dev-name = "pa";
  50. #cooling-cells = <2>;
  51. };
  52. modem_proc: modem_proc {
  53. qcom,qmi-dev-name = "modem";
  54. #cooling-cells = <2>;
  55. };
  56. modem_vdd: modem_vdd {
  57. qcom,qmi-dev-name = "cpuv_restriction_cold";
  58. #cooling-cells = <2>;
  59. };
  60. modem_current: modem_current {
  61. qcom,qmi-dev-name = "modem_current";
  62. #cooling-cells = <2>;
  63. };
  64. modem_cpr_cold: modem_cpr_cold {
  65. qcom,qmi-dev-name = "cpr_cold";
  66. #cooling-cells = <2>;
  67. };
  68. };
  69. adsp {
  70. qcom,instance-id = <0x1>;
  71. adsp_vdd: adsp_vdd {
  72. qcom,qmi-dev-name = "cpuv_restriction_cold";
  73. #cooling-cells = <2>;
  74. };
  75. };
  76. cdsp {
  77. qcom,instance-id = <0x43>;
  78. cdsp_vdd: cdsp_vdd {
  79. qcom,qmi-dev-name = "cpuv_restriction_cold";
  80. #cooling-cells = <2>;
  81. };
  82. };
  83. slpi {
  84. qcom,instance-id = <0x53>;
  85. slpi_vdd: slpi_vdd {
  86. qcom,qmi-dev-name = "cpuv_restriction_cold";
  87. #cooling-cells = <2>;
  88. };
  89. };
  90. };