mt6397-regulator.txt 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. Mediatek MT6397 Regulator Driver
  2. Required properties:
  3. - compatible: "mediatek,mt6397-regulator"
  4. - mt6397regulator: List of regulators provided by this controller. It is named
  5. according to its regulator type, buck_<name> and ldo_<name>.
  6. The definition for each of these nodes is defined using the standard binding
  7. for regulators at Documentation/devicetree/bindings/regulator/regulator.txt.
  8. The valid names for regulators are::
  9. BUCK:
  10. buck_vpca15, buck_vpca7, buck_vsramca15, buck_vsramca7, buck_vcore, buck_vgpu,
  11. buck_vdrm, buck_vio18
  12. LDO:
  13. ldo_vtcxo, ldo_va28, ldo_vcama, ldo_vio28, ldo_vusb, ldo_vmc, ldo_vmch,
  14. ldo_vemc3v3, ldo_vgp1, ldo_vgp2, ldo_vgp3, ldo_vgp4, ldo_vgp5, ldo_vgp6,
  15. ldo_vibr
  16. Example:
  17. pmic {
  18. compatible = "mediatek,mt6397";
  19. mt6397regulator: mt6397regulator {
  20. compatible = "mediatek,mt6397-regulator";
  21. mt6397_vpca15_reg: buck_vpca15 {
  22. regulator-compatible = "buck_vpca15";
  23. regulator-name = "vpca15";
  24. regulator-min-microvolt = < 850000>;
  25. regulator-max-microvolt = <1350000>;
  26. regulator-ramp-delay = <12500>;
  27. regulator-enable-ramp-delay = <200>;
  28. };
  29. mt6397_vpca7_reg: buck_vpca7 {
  30. regulator-compatible = "buck_vpca7";
  31. regulator-name = "vpca7";
  32. regulator-min-microvolt = < 850000>;
  33. regulator-max-microvolt = <1350000>;
  34. regulator-ramp-delay = <12500>;
  35. regulator-enable-ramp-delay = <115>;
  36. };
  37. mt6397_vsramca15_reg: buck_vsramca15 {
  38. regulator-compatible = "buck_vsramca15";
  39. regulator-name = "vsramca15";
  40. regulator-min-microvolt = < 850000>;
  41. regulator-max-microvolt = <1350000>;
  42. regulator-ramp-delay = <12500>;
  43. regulator-enable-ramp-delay = <115>;
  44. };
  45. mt6397_vsramca7_reg: buck_vsramca7 {
  46. regulator-compatible = "buck_vsramca7";
  47. regulator-name = "vsramca7";
  48. regulator-min-microvolt = < 850000>;
  49. regulator-max-microvolt = <1350000>;
  50. regulator-ramp-delay = <12500>;
  51. regulator-enable-ramp-delay = <115>;
  52. };
  53. mt6397_vcore_reg: buck_vcore {
  54. regulator-compatible = "buck_vcore";
  55. regulator-name = "vcore";
  56. regulator-min-microvolt = < 850000>;
  57. regulator-max-microvolt = <1350000>;
  58. regulator-ramp-delay = <12500>;
  59. regulator-enable-ramp-delay = <115>;
  60. };
  61. mt6397_vgpu_reg: buck_vgpu {
  62. regulator-compatible = "buck_vgpu";
  63. regulator-name = "vgpu";
  64. regulator-min-microvolt = < 700000>;
  65. regulator-max-microvolt = <1350000>;
  66. regulator-ramp-delay = <12500>;
  67. regulator-enable-ramp-delay = <115>;
  68. };
  69. mt6397_vdrm_reg: buck_vdrm {
  70. regulator-compatible = "buck_vdrm";
  71. regulator-name = "vdrm";
  72. regulator-min-microvolt = < 800000>;
  73. regulator-max-microvolt = <1400000>;
  74. regulator-ramp-delay = <12500>;
  75. regulator-enable-ramp-delay = <500>;
  76. };
  77. mt6397_vio18_reg: buck_vio18 {
  78. regulator-compatible = "buck_vio18";
  79. regulator-name = "vio18";
  80. regulator-min-microvolt = <1500000>;
  81. regulator-max-microvolt = <2120000>;
  82. regulator-ramp-delay = <12500>;
  83. regulator-enable-ramp-delay = <500>;
  84. };
  85. mt6397_vtcxo_reg: ldo_vtcxo {
  86. regulator-compatible = "ldo_vtcxo";
  87. regulator-name = "vtcxo";
  88. regulator-min-microvolt = <2800000>;
  89. regulator-max-microvolt = <2800000>;
  90. regulator-enable-ramp-delay = <90>;
  91. };
  92. mt6397_va28_reg: ldo_va28 {
  93. regulator-compatible = "ldo_va28";
  94. regulator-name = "va28";
  95. /* fixed output 2.8 V */
  96. regulator-enable-ramp-delay = <218>;
  97. };
  98. mt6397_vcama_reg: ldo_vcama {
  99. regulator-compatible = "ldo_vcama";
  100. regulator-name = "vcama";
  101. regulator-min-microvolt = <1500000>;
  102. regulator-max-microvolt = <2800000>;
  103. regulator-enable-ramp-delay = <218>;
  104. };
  105. mt6397_vio28_reg: ldo_vio28 {
  106. regulator-compatible = "ldo_vio28";
  107. regulator-name = "vio28";
  108. /* fixed output 2.8 V */
  109. regulator-enable-ramp-delay = <240>;
  110. };
  111. mt6397_usb_reg: ldo_vusb {
  112. regulator-compatible = "ldo_vusb";
  113. regulator-name = "vusb";
  114. /* fixed output 3.3 V */
  115. regulator-enable-ramp-delay = <218>;
  116. };
  117. mt6397_vmc_reg: ldo_vmc {
  118. regulator-compatible = "ldo_vmc";
  119. regulator-name = "vmc";
  120. regulator-min-microvolt = <1800000>;
  121. regulator-max-microvolt = <3300000>;
  122. regulator-enable-ramp-delay = <218>;
  123. };
  124. mt6397_vmch_reg: ldo_vmch {
  125. regulator-compatible = "ldo_vmch";
  126. regulator-name = "vmch";
  127. regulator-min-microvolt = <3000000>;
  128. regulator-max-microvolt = <3300000>;
  129. regulator-enable-ramp-delay = <218>;
  130. };
  131. mt6397_vemc_3v3_reg: ldo_vemc3v3 {
  132. regulator-compatible = "ldo_vemc3v3";
  133. regulator-name = "vemc_3v3";
  134. regulator-min-microvolt = <3000000>;
  135. regulator-max-microvolt = <3300000>;
  136. regulator-enable-ramp-delay = <218>;
  137. };
  138. mt6397_vgp1_reg: ldo_vgp1 {
  139. regulator-compatible = "ldo_vgp1";
  140. regulator-name = "vcamd";
  141. regulator-min-microvolt = <1220000>;
  142. regulator-max-microvolt = <3300000>;
  143. regulator-enable-ramp-delay = <240>;
  144. };
  145. mt6397_vgp2_reg: ldo_vgp2 {
  146. egulator-compatible = "ldo_vgp2";
  147. regulator-name = "vcamio";
  148. regulator-min-microvolt = <1000000>;
  149. regulator-max-microvolt = <3300000>;
  150. regulator-enable-ramp-delay = <218>;
  151. };
  152. mt6397_vgp3_reg: ldo_vgp3 {
  153. regulator-compatible = "ldo_vgp3";
  154. regulator-name = "vcamaf";
  155. regulator-min-microvolt = <1200000>;
  156. regulator-max-microvolt = <3300000>;
  157. regulator-enable-ramp-delay = <218>;
  158. };
  159. mt6397_vgp4_reg: ldo_vgp4 {
  160. regulator-compatible = "ldo_vgp4";
  161. regulator-name = "vgp4";
  162. regulator-min-microvolt = <1200000>;
  163. regulator-max-microvolt = <3300000>;
  164. regulator-enable-ramp-delay = <218>;
  165. };
  166. mt6397_vgp5_reg: ldo_vgp5 {
  167. regulator-compatible = "ldo_vgp5";
  168. regulator-name = "vgp5";
  169. regulator-min-microvolt = <1200000>;
  170. regulator-max-microvolt = <3000000>;
  171. regulator-enable-ramp-delay = <218>;
  172. };
  173. mt6397_vgp6_reg: ldo_vgp6 {
  174. regulator-compatible = "ldo_vgp6";
  175. regulator-name = "vgp6";
  176. regulator-min-microvolt = <1200000>;
  177. regulator-max-microvolt = <3300000>;
  178. regulator-enable-ramp-delay = <218>;
  179. };
  180. mt6397_vibr_reg: ldo_vibr {
  181. regulator-compatible = "ldo_vibr";
  182. regulator-name = "vibr";
  183. regulator-min-microvolt = <1200000>;
  184. regulator-max-microvolt = <3300000>;
  185. regulator-enable-ramp-delay = <218>;
  186. };
  187. };
  188. };