regulator-max77620.txt 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. Regulator DT binding for MAX77620 Power management IC from Maxim Semiconductor.
  2. Device has multiple DCDC(sd[0-3] and LDOs(ldo[0-8]). The input supply
  3. of these regulators are defined under parent device node.
  4. Details of regulator properties are defined as child node under
  5. sub-node "regulators" which is child node of device node.
  6. Please refer file <Documentation/devicetree/bindings/regulator/regulator.txt>
  7. for common regulator bindings used by client.
  8. Following are properties of parent node related to regulators.
  9. Optional properties:
  10. -------------------
  11. The input supply of regulators are the optional properties on the
  12. parent device node. The input supply of these regulators are provided
  13. through following properties:
  14. in-sd0-supply: Input supply for SD0, INA-SD0 or INB-SD0 pins.
  15. in-sd1-supply: Input supply for SD1.
  16. in-sd2-supply: Input supply for SD2.
  17. in-sd3-supply: Input supply for SD3.
  18. in-ldo0-1-supply: Input supply for LDO0 and LDO1.
  19. in-ldo2-supply: Input supply for LDO2.
  20. in-ldo3-5-supply: Input supply for LDO3 and LDO5
  21. in-ldo4-6-supply: Input supply for LDO4 and LDO6.
  22. in-ldo7-8-supply: Input supply for LDO7 and LDO8.
  23. Optional sub nodes for regulators under "regulators" subnode:
  24. ------------------------------------------------------------
  25. The subnodes name is the name of regulator and it must be one of:
  26. sd[0-3], ldo[0-8]
  27. Each sub-node should contain the constraints and initialization
  28. information for that regulator. The definition for each of these
  29. nodes is defined using the standard binding for regulators found at
  30. <Documentation/devicetree/bindings/regulator/regulator.txt>.
  31. Theres are also additional properties for SD/LDOs. These additional properties
  32. are required to configure FPS configuration parameters for SDs and LDOs.
  33. Please refer <devicetree/bindings/mfd/max77620.txt> for more detail of Flexible
  34. Power Sequence (FPS).
  35. Following are additional properties:
  36. - maxim,active-fps-source: FPS source for the regulators to get
  37. enabled/disabled when system is in
  38. active state. Valid values are:
  39. - MAX77620_FPS_SRC_0,
  40. FPS source is FPS0.
  41. - MAX77620_FPS_SRC_1,
  42. FPS source is FPS1
  43. - MAX77620_FPS_SRC_2 and
  44. FPS source is FPS2
  45. - MAX77620_FPS_SRC_NONE.
  46. Regulator is not controlled
  47. by FPS events and it gets
  48. enabled/disabled by register
  49. access.
  50. Absence of this property will leave
  51. the FPS configuration register for that
  52. regulator to default configuration.
  53. - maxim,active-fps-power-up-slot: Sequencing event slot number on which
  54. the regulator get enabled when
  55. master FPS input event set to HIGH.
  56. Valid values are 0 to 7.
  57. This is applicable if FPS source is
  58. selected as FPS0, FPS1 or FPS2.
  59. - maxim,active-fps-power-down-slot: Sequencing event slot number on which
  60. the regulator get disabled when master
  61. FPS input event set to LOW.
  62. Valid values are 0 to 7.
  63. This is applicable if FPS source is
  64. selected as FPS0, FPS1 or FPS2.
  65. - maxim,suspend-fps-source: This is same as property
  66. "maxim,active-fps-source" but value
  67. get configured when system enters in
  68. to suspend state.
  69. - maxim,suspend-fps-power-up-slot: This is same as property
  70. "maxim,active-fps-power-up-slot" but
  71. this value get configured into FPS
  72. configuration register when system
  73. enters into suspend.
  74. This is applicable if suspend state
  75. FPS source is selected as FPS0, FPS1 or
  76. - maxim,suspend-fps-power-down-slot: This is same as property
  77. "maxim,active-fps-power-down-slot" but
  78. this value get configured into FPS
  79. configuration register when system
  80. enters into suspend.
  81. This is applicable if suspend state
  82. FPS source is selected as FPS0, FPS1 or
  83. FPS2.
  84. - maxim,ramp-rate-setting: integer, ramp rate(uV/us) setting to be
  85. configured to the device.
  86. The platform may have different ramp
  87. rate than advertised ramp rate if it has
  88. design variation from Maxim's
  89. recommended. On this case, platform
  90. specific ramp rate is used for ramp time
  91. calculation and this property is used
  92. for device register configurations.
  93. The measured ramp rate of platform is
  94. provided by the regulator-ramp-delay
  95. as described in <devicetree/bindings/
  96. regulator/regulator.txt>.
  97. Maxim Max77620 supports following ramp
  98. delay:
  99. SD: 13.75mV/us, 27.5mV/us, 55mV/us
  100. LDOs: 5mV/us, 100mV/us
  101. Note: If the measured ramp delay is same as advertised ramp delay then it is not
  102. required to provide the ramp delay with property "maxim,ramp-rate-setting". The
  103. ramp rate can be provided by the regulator-ramp-delay which will be used for
  104. ramp time calculation for voltage change as well as for device configuration.
  105. Example:
  106. --------
  107. #include <dt-bindings/mfd/max77620.h>
  108. ...
  109. max77620@3c {
  110. in-ldo0-1-supply = <&max77620_sd2>;
  111. in-ldo7-8-supply = <&max77620_sd2>;
  112. regulators {
  113. sd0 {
  114. regulator-name = "vdd-core";
  115. regulator-min-microvolt = <600000>;
  116. regulator-max-microvolt = <1400000>;
  117. regulator-boot-on;
  118. regulator-always-on;
  119. maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
  120. };
  121. sd1 {
  122. regulator-name = "vddio-ddr";
  123. regulator-min-microvolt = <1200000>;
  124. regulator-max-microvolt = <1200000>;
  125. regulator-always-on;
  126. regulator-boot-on;
  127. maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
  128. };
  129. sd2 {
  130. regulator-name = "vdd-pre-reg";
  131. regulator-min-microvolt = <1350000>;
  132. regulator-max-microvolt = <1350000>;
  133. };
  134. sd3 {
  135. regulator-name = "vdd-1v8";
  136. regulator-min-microvolt = <1800000>;
  137. regulator-max-microvolt = <1800000>;
  138. regulator-always-on;
  139. regulator-boot-on;
  140. };
  141. ldo0 {
  142. regulator-name = "avdd-sys";
  143. regulator-min-microvolt = <1200000>;
  144. regulator-max-microvolt = <1200000>;
  145. regulator-always-on;
  146. regulator-boot-on;
  147. };
  148. ldo1 {
  149. regulator-name = "vdd-pex";
  150. regulator-min-microvolt = <1050000>;
  151. regulator-max-microvolt = <1050000>;
  152. };
  153. ldo2 {
  154. regulator-name = "vddio-sdmmc3";
  155. regulator-min-microvolt = <1800000>;
  156. regulator-max-microvolt = <3300000>;
  157. };
  158. ldo3 {
  159. regulator-name = "vdd-cam-hv";
  160. regulator-min-microvolt = <2800000>;
  161. regulator-max-microvolt = <2800000>;
  162. };
  163. ldo4 {
  164. regulator-name = "vdd-rtc";
  165. regulator-min-microvolt = <1250000>;
  166. regulator-max-microvolt = <1250000>;
  167. regulator-always-on;
  168. regulator-boot-on;
  169. };
  170. ldo5 {
  171. regulator-name = "avdd-ts-hv";
  172. regulator-min-microvolt = <3000000>;
  173. regulator-max-microvolt = <3000000>;
  174. };
  175. ldo6 {
  176. regulator-name = "vdd-ts";
  177. regulator-min-microvolt = <1800000>;
  178. regulator-max-microvolt = <1800000>;
  179. regulator-always-on;
  180. regulator-boot-on;
  181. };
  182. ldo7 {
  183. regulator-name = "vdd-gen-pll-edp";
  184. regulator-min-microvolt = <1050000>;
  185. regulator-max-microvolt = <1050000>;
  186. regulator-always-on;
  187. regulator-boot-on;
  188. };
  189. ldo8 {
  190. regulator-name = "vdd-hdmi-dp";
  191. regulator-min-microvolt = <1050000>;
  192. regulator-max-microvolt = <1050000>;
  193. };
  194. };
  195. };