qcom,spmi-regulator.txt 5.6 KB

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