qcom,spmi-regulator.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. Qualcomm SPMI Regulators
  2. - compatible:
  3. Usage: required
  4. Value type: <string>
  5. Definition: must be one of:
  6. "qcom,pm8841-regulators"
  7. "qcom,pm8916-regulators"
  8. "qcom,pm8941-regulators"
  9. - interrupts:
  10. Usage: optional
  11. Value type: <prop-encoded-array>
  12. Definition: List of OCP interrupts.
  13. - interrupt-names:
  14. Usage: required if 'interrupts' property present
  15. Value type: <string-array>
  16. Definition: List of strings defining the names of the
  17. interrupts in the 'interrupts' property 1-to-1.
  18. Supported values are "ocp-<regulator_name>", where
  19. <regulator_name> corresponds to a voltage switch
  20. type regulator.
  21. - vdd_s1-supply:
  22. - vdd_s2-supply:
  23. - vdd_s3-supply:
  24. - vdd_s4-supply:
  25. - vdd_s5-supply:
  26. - vdd_s6-supply:
  27. - vdd_s7-supply:
  28. - vdd_s8-supply:
  29. Usage: optional (pm8841 only)
  30. Value type: <phandle>
  31. Definition: Reference to regulator supplying the input pin, as
  32. described in the data sheet.
  33. - vdd_s1-supply:
  34. - vdd_s2-supply:
  35. - vdd_s3-supply:
  36. - vdd_s4-supply:
  37. - vdd_l1_l3-supply:
  38. - vdd_l2-supply:
  39. - vdd_l4_l5_l6-supply:
  40. - vdd_l7-supply:
  41. - vdd_l8_l11_l14_l15_l16-supply:
  42. - vdd_l9_l10_l12_l13_l17_l18-supply:
  43. Usage: optional (pm8916 only)
  44. Value type: <phandle>
  45. Definition: Reference to regulator supplying the input pin, as
  46. described in the data sheet.
  47. - vdd_s1-supply:
  48. - vdd_s2-supply:
  49. - vdd_s3-supply:
  50. - vdd_l1_l3-supply:
  51. - vdd_l2_lvs_1_2_3-supply:
  52. - vdd_l4_l11-supply:
  53. - vdd_l5_l7-supply:
  54. - vdd_l6_l12_l14_l15-supply:
  55. - vdd_l8_l16_l18_19-supply:
  56. - vdd_l9_l10_l17_l22-supply:
  57. - vdd_l13_l20_l23_l24-supply:
  58. - vdd_l21-supply:
  59. - vin_5vs-supply:
  60. Usage: optional (pm8941 only)
  61. Value type: <phandle>
  62. Definition: Reference to regulator supplying the input pin, as
  63. described in the data sheet.
  64. The regulator node houses sub-nodes for each regulator within the device. Each
  65. sub-node is identified using the node's name, with valid values listed for each
  66. of the PMICs below.
  67. pm8841:
  68. s1, s2, s3, s4, s5, s6, s7, s8
  69. pm8916:
  70. s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13,
  71. l14, l15, l16, l17, l18
  72. pm8941:
  73. s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13,
  74. l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, lvs1, lvs2, lvs3,
  75. 5vs1, 5vs2
  76. The content of each sub-node is defined by the standard binding for regulators -
  77. see regulator.txt - with additional custom properties described below:
  78. - regulator-initial-mode:
  79. Usage: optional
  80. Value type: <u32>
  81. Description: 2 = Set initial mode to auto mode (automatically select
  82. between HPM and LPM); not available on boost type
  83. regulators.
  84. 1 = Set initial mode to high power mode (HPM), also referred
  85. to as NPM. HPM consumes more ground current than LPM, but
  86. it can source significantly higher load current. HPM is not
  87. available on boost type regulators. For voltage switch type
  88. regulators, HPM implies that over current protection and
  89. soft start are active all the time.
  90. 0 = Set initial mode to low power mode (LPM).
  91. - qcom,ocp-max-retries:
  92. Usage: optional
  93. Value type: <u32>
  94. Description: Maximum number of times to try toggling a voltage switch
  95. off and back on as a result of consecutive over current
  96. events.
  97. - qcom,ocp-retry-delay:
  98. Usage: optional
  99. Value type: <u32>
  100. Description: Time to delay in milliseconds between each voltage switch
  101. toggle after an over current event takes place.
  102. - qcom,pin-ctrl-enable:
  103. Usage: optional
  104. Value type: <u32>
  105. Description: Bit mask specifying which hardware pins should be used to
  106. enable the regulator, if any; supported bits are:
  107. 0 = ignore all hardware enable signals
  108. BIT(0) = follow HW0_EN signal
  109. BIT(1) = follow HW1_EN signal
  110. BIT(2) = follow HW2_EN signal
  111. BIT(3) = follow HW3_EN signal
  112. - qcom,pin-ctrl-hpm:
  113. Usage: optional
  114. Value type: <u32>
  115. Description: Bit mask specifying which hardware pins should be used to
  116. force the regulator into high power mode, if any;
  117. supported bits are:
  118. 0 = ignore all hardware enable signals
  119. BIT(0) = follow HW0_EN signal
  120. BIT(1) = follow HW1_EN signal
  121. BIT(2) = follow HW2_EN signal
  122. BIT(3) = follow HW3_EN signal
  123. BIT(4) = follow PMIC awake state
  124. - qcom,vs-soft-start-strength:
  125. Usage: optional
  126. Value type: <u32>
  127. Description: This property sets the soft start strength for voltage
  128. switch type regulators; supported values are:
  129. 0 = 0.05 uA
  130. 1 = 0.25 uA
  131. 2 = 0.55 uA
  132. 3 = 0.75 uA
  133. Example:
  134. regulators {
  135. compatible = "qcom,pm8941-regulators";
  136. vdd_l1_l3-supply = <&s1>;
  137. s1: s1 {
  138. regulator-min-microvolt = <1300000>;
  139. regulator-max-microvolt = <1400000>;
  140. };
  141. ...
  142. l1: l1 {
  143. regulator-min-microvolt = <1225000>;
  144. regulator-max-microvolt = <1300000>;
  145. };
  146. ....
  147. };