Kconfig 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. config DM_REGULATOR
  2. bool "Enable Driver Model for REGULATOR drivers (UCLASS_REGULATOR)"
  3. depends on DM
  4. ---help---
  5. This config enables the driver model regulator support.
  6. UCLASS_REGULATOR - designed to provide a common API for basic regulator's
  7. functions, like get/set Voltage or Current value, enable state, etc...
  8. Note:
  9. When enabling this, please read the description, found in the files:
  10. - 'include/power/pmic.h'
  11. - 'include/power/regulator.h'
  12. - 'drivers/power/pmic/pmic-uclass.c'
  13. - 'drivers/power/pmic/regulator-uclass.c'
  14. It's important to call the device_bind() with the proper node offset,
  15. when binding the regulator devices. The pmic_bind_childs() can be used
  16. for this purpose if PMIC I/O driver is implemented or dm_scan_fdt_dev()
  17. otherwise. Detailed information can be found in the header file.
  18. config SPL_DM_REGULATOR
  19. bool "Enable regulators for SPL"
  20. depends on DM_REGULATOR
  21. ---help---
  22. Regulators are seldom needed in SPL. Even if they are accessed, some
  23. code space can be saved by accessing the PMIC registers directly.
  24. Enable this option if you need regulators in SPL and can cope with
  25. the extra code size.
  26. config REGULATOR_ACT8846
  27. bool "Enable driver for ACT8846 regulator"
  28. depends on DM_REGULATOR && PMIC_ACT8846
  29. ---help---
  30. Enable support for the regulator functions of the ACT8846 PMIC. The
  31. driver implements get/set api for the various BUCKS and LDOS supported
  32. by the PMIC device. This driver is controlled by a device tree node
  33. which includes voltage limits.
  34. config REGULATOR_AS3722
  35. bool "Enable driver for AS7322 regulator"
  36. depends on DM_REGULATOR && PMIC_AS3722
  37. help
  38. Enable support for the regulator functions of the AS3722. The
  39. driver implements enable/disable for step-down bucks and LDOs,
  40. but does not yet support change voltages. Currently this must be
  41. done using direct register writes to the PMIC.
  42. config DM_REGULATOR_PFUZE100
  43. bool "Enable Driver Model for REGULATOR PFUZE100"
  44. depends on DM_REGULATOR && DM_PMIC_PFUZE100
  45. ---help---
  46. This config enables implementation of driver-model regulator uclass
  47. features for REGULATOR PFUZE100. The driver implements get/set api for:
  48. value, enable and mode.
  49. config REGULATOR_PWM
  50. bool "Enable driver for PWM regulators"
  51. depends on DM_REGULATOR
  52. ---help---
  53. Enable support for the PWM regulator functions which voltage are
  54. controlled by PWM duty ratio. Some of Rockchip board using this kind
  55. of regulator. The driver implements get/set api for the various BUCKS.
  56. This driver is controlled by a device tree node
  57. which includes voltage limits.
  58. config DM_REGULATOR_MAX77686
  59. bool "Enable Driver Model for REGULATOR MAX77686"
  60. depends on DM_REGULATOR && DM_PMIC_MAX77686
  61. ---help---
  62. This config enables implementation of driver-model regulator uclass
  63. features for REGULATOR MAX77686. The driver implements get/set api for:
  64. value, enable and mode.
  65. config DM_REGULATOR_FIXED
  66. bool "Enable Driver Model for REGULATOR Fixed value"
  67. depends on DM_REGULATOR
  68. ---help---
  69. This config enables implementation of driver-model regulator uclass
  70. features for fixed value regulators. The driver implements get/set api
  71. for enable and get only for voltage value.
  72. config SPL_DM_REGULATOR_FIXED
  73. bool "Enable Driver Model for REGULATOR Fixed value in SPL"
  74. depends on DM_REGULATOR_FIXED
  75. ---help---
  76. This config enables implementation of driver-model regulator uclass
  77. features for fixed value regulators in SPL.
  78. config DM_REGULATOR_GPIO
  79. bool "Enable Driver Model for GPIO REGULATOR"
  80. depends on DM_REGULATOR
  81. ---help---
  82. This config enables implementation of driver-model regulator uclass
  83. features for gpio regulators. The driver implements get/set for
  84. voltage value.
  85. config REGULATOR_RK8XX
  86. bool "Enable driver for RK8XX regulators"
  87. depends on DM_REGULATOR && PMIC_RK8XX
  88. ---help---
  89. Enable support for the regulator functions of the RK8XX PMIC. The
  90. driver implements get/set api for the various BUCKS and LDOs supported
  91. by the PMIC device. This driver is controlled by a device tree node
  92. which includes voltage limits.
  93. config DM_REGULATOR_S2MPS11
  94. bool "Enable driver for S2MPS11 regulator"
  95. depends on DM_REGULATOR && PMIC_S2MPS11
  96. ---help---
  97. This enables implementation of driver-model regulator uclass
  98. features for REGULATOR S2MPS11.
  99. The driver implements get/set api for: value and enable.
  100. config REGULATOR_S5M8767
  101. bool "Enable support for S5M8767 regulator"
  102. depends on DM_REGULATOR && PMIC_S5M8767
  103. ---help---
  104. This enables the regulator features of the S5M8767, allowing voltages
  105. to be set, etc. The driver is not fully complete but supports most
  106. common requirements, including all LDOs and BUCKs. This allows many
  107. supplies to be set automatically using the device tree values.
  108. config DM_REGULATOR_SANDBOX
  109. bool "Enable Driver Model for Sandbox PMIC regulator"
  110. depends on DM_REGULATOR && DM_PMIC_SANDBOX
  111. ---help---
  112. Enable the regulator driver for emulated Sandbox PMIC.
  113. The emulated PMIC device depends on two drivers:
  114. - sandbox PMIC I/O driver - implements dm pmic operations
  115. - sandbox PMIC regulator driver - implements dm regulator operations
  116. - sandbox PMIC i2c emul driver - emulates the PMIC's I2C transmission
  117. The regulator driver provides uclass operations for sandbox PMIC's
  118. regulators. The driver implements get/set api for: voltage, current,
  119. operation mode and enable state.
  120. The driver supports LDO and BUCK regulators.
  121. The Sandbox PMIC info:
  122. * I/O interface:
  123. - I2C chip address: 0x40
  124. - first register address: 0x0
  125. - register count: 0x10
  126. * Adjustable outputs:
  127. - 2x LDO
  128. - 2x BUCK
  129. - Each, with a different operating conditions (header).
  130. * Reset values:
  131. - set by i2c emul driver's probe() (defaults in header)
  132. A detailed information can be found in header: '<power/sandbox_pmic.h>'
  133. Binding info: 'doc/device-tree-bindings/pmic/max77686.txt'
  134. config REGULATOR_TPS65090
  135. bool "Enable driver for TPS65090 PMIC regulators"
  136. depends on PMIC_TPS65090
  137. ---help---
  138. The TPS65090 provides several FETs (Field-effect Transistors,
  139. effectively switches) which are supported by this driver as
  140. regulators, one for each FET. The standard regulator interface is
  141. supported, but it is only possible to turn the regulators on or off.
  142. There is no voltage/current control.
  143. config DM_REGULATOR_PALMAS
  144. bool "Enable driver for PALMAS PMIC regulators"
  145. depends on PMIC_PALMAS
  146. ---help---
  147. This enables implementation of driver-model regulator uclass
  148. features for REGULATOR PALMAS and the family of PALMAS PMICs.
  149. The driver implements get/set api for: value and enable.
  150. config DM_REGULATOR_PBIAS
  151. bool "Enable driver for PBIAS regulator"
  152. depends on DM_REGULATOR
  153. select REGMAP
  154. select SYSCON
  155. ---help---
  156. This enables implementation of driver-model regulator uclass
  157. features for pseudo-regulator PBIAS found in the OMAP SOCs.
  158. This pseudo-regulator is used to provide a BIAS voltage to MMC1
  159. signal pads and must be configured properly during a voltage switch.
  160. Voltage switching is required by some operating modes of SDcards and
  161. eMMC.
  162. config DM_REGULATOR_LP873X
  163. bool "Enable driver for LP873X PMIC regulators"
  164. depends on PMIC_LP873X
  165. ---help---
  166. This enables implementation of driver-model regulator uclass
  167. features for REGULATOR LP873X and the family of LP873X PMICs.
  168. The driver implements get/set api for: value and enable.
  169. config DM_REGULATOR_LP87565
  170. bool "Enable driver for LP87565 PMIC regulators"
  171. depends on PMIC_LP87565
  172. ---help---
  173. This enables implementation of driver-model regulator uclass
  174. features for REGULATOR LP87565 and the family of LP87565 PMICs.
  175. LP87565 series of PMICs have 4 single phase BUCKs that can also
  176. be configured in multi phase modes. The driver implements
  177. get/set api for value and enable.
  178. config DM_REGULATOR_STM32_VREFBUF
  179. bool "Enable driver for STMicroelectronics STM32 VREFBUF"
  180. depends on DM_REGULATOR && (STM32H7 || ARCH_STM32MP)
  181. help
  182. This driver supports STMicroelectronics STM32 VREFBUF (voltage
  183. reference buffer) which can be used as voltage reference for
  184. internal ADCs, DACs and also for external components through
  185. dedicated Vref+ pin.
  186. config DM_REGULATOR_TPS65910
  187. bool "Enable driver for TPS65910 PMIC regulators"
  188. depends on DM_PMIC_TPS65910
  189. ---help---
  190. The TPS65910 PMIC provides 4 SMPSs and 8 LDOs. This driver supports all
  191. regulator types of the TPS65910 (BUCK, BOOST and LDO). It implements
  192. the get/set api for value and enable.
  193. config DM_REGULATOR_STPMU1
  194. bool "Enable driver for STPMU1 regulators"
  195. depends on DM_REGULATOR && PMIC_STPMU1
  196. ---help---
  197. Enable support for the regulator functions of the STPMU1 PMIC. The
  198. driver implements get/set api for the various BUCKS and LDOs supported
  199. by the PMIC device. This driver is controlled by a device tree node
  200. which includes voltage limits.