qcom,spmi-regulator.txt 6.6 KB

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