Kconfig 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 DM_REGULATOR_PFUZE100
  35. bool "Enable Driver Model for REGULATOR PFUZE100"
  36. depends on DM_REGULATOR && DM_PMIC_PFUZE100
  37. ---help---
  38. This config enables implementation of driver-model regulator uclass
  39. features for REGULATOR PFUZE100. The driver implements get/set api for:
  40. value, enable and mode.
  41. config REGULATOR_PWM
  42. bool "Enable driver for PWM regulators"
  43. depends on DM_REGULATOR
  44. ---help---
  45. Enable support for the PWM regulator functions which voltage are
  46. controlled by PWM duty ratio. Some of Rockchip board using this kind
  47. of regulator. The driver implements get/set api for the various BUCKS.
  48. This driver is controlled by a device tree node
  49. which includes voltage limits.
  50. config DM_REGULATOR_MAX77686
  51. bool "Enable Driver Model for REGULATOR MAX77686"
  52. depends on DM_REGULATOR && DM_PMIC_MAX77686
  53. ---help---
  54. This config enables implementation of driver-model regulator uclass
  55. features for REGULATOR MAX77686. The driver implements get/set api for:
  56. value, enable and mode.
  57. config DM_REGULATOR_FIXED
  58. bool "Enable Driver Model for REGULATOR Fixed value"
  59. depends on DM_REGULATOR
  60. ---help---
  61. This config enables implementation of driver-model regulator uclass
  62. features for fixed value regulators. The driver implements get/set api
  63. for enable and get only for voltage value.
  64. config DM_REGULATOR_GPIO
  65. bool "Enable Driver Model for GPIO REGULATOR"
  66. depends on DM_REGULATOR
  67. ---help---
  68. This config enables implementation of driver-model regulator uclass
  69. features for gpio regulators. The driver implements get/set for
  70. voltage value.
  71. config REGULATOR_RK808
  72. bool "Enable driver for RK808 regulators"
  73. depends on DM_REGULATOR && PMIC_RK808
  74. ---help---
  75. Enable support for the regulator functions of the RK808 PMIC. The
  76. driver implements get/set api for the various BUCKS and LDOs supported
  77. by the PMIC device. This driver is controlled by a device tree node
  78. which includes voltage limits.
  79. config REGULATOR_S5M8767
  80. bool "Enable support for S5M8767 regulator"
  81. depends on DM_REGULATOR && PMIC_S5M8767
  82. ---help---
  83. This enables the regulator features of the S5M8767, allowing voltages
  84. to be set, etc. The driver is not fully complete but supports most
  85. common requirements, including all LDOs and BUCKs. This allows many
  86. supplies to be set automatically using the device tree values.
  87. config DM_REGULATOR_SANDBOX
  88. bool "Enable Driver Model for Sandbox PMIC regulator"
  89. depends on DM_REGULATOR && DM_PMIC_SANDBOX
  90. ---help---
  91. Enable the regulator driver for emulated Sandbox PMIC.
  92. The emulated PMIC device depends on two drivers:
  93. - sandbox PMIC I/O driver - implements dm pmic operations
  94. - sandbox PMIC regulator driver - implements dm regulator operations
  95. - sandbox PMIC i2c emul driver - emulates the PMIC's I2C transmission
  96. The regulator driver provides uclass operations for sandbox PMIC's
  97. regulators. The driver implements get/set api for: voltage, current,
  98. operation mode and enable state.
  99. The driver supports LDO and BUCK regulators.
  100. The Sandbox PMIC info:
  101. * I/O interface:
  102. - I2C chip address: 0x40
  103. - first register address: 0x0
  104. - register count: 0x10
  105. * Adjustable outputs:
  106. - 2x LDO
  107. - 2x BUCK
  108. - Each, with a different operating conditions (header).
  109. * Reset values:
  110. - set by i2c emul driver's probe() (defaults in header)
  111. A detailed information can be found in header: '<power/sandbox_pmic.h>'
  112. Binding info: 'doc/device-tree-bindings/pmic/max77686.txt'
  113. config REGULATOR_TPS65090
  114. bool "Enable driver for TPS65090 PMIC regulators"
  115. depends on PMIC_TPS65090
  116. ---help---
  117. The TPS65090 provides several FETs (Field-effect Transistors,
  118. effectively switches) which are supported by this driver as
  119. regulators, one for each FET. The standard regulator interface is
  120. supported, but it is only possible to turn the regulators on or off.
  121. There is no voltage/current control.
  122. config DM_REGULATOR_PALMAS
  123. bool "Enable driver for PALMAS PMIC regulators"
  124. depends on PMIC_PALMAS
  125. ---help---
  126. This enables implementation of driver-model regulator uclass
  127. features for REGULATOR PALMAS and the family of PALMAS PMICs.
  128. The driver implements get/set api for: value and enable.
  129. config DM_REGULATOR_LP873X
  130. bool "Enable driver for LP873X PMIC regulators"
  131. depends on PMIC_LP873X
  132. ---help---
  133. This enables implementation of driver-model regulator uclass
  134. features for REGULATOR LP873X and the family of LP873X PMICs.
  135. The driver implements get/set api for: value and enable.
  136. config DM_REGULATOR_LP87565
  137. bool "Enable driver for LP87565 PMIC regulators"
  138. depends on PMIC_LP87565
  139. ---help---
  140. This enables implementation of driver-model regulator uclass
  141. features for REGULATOR LP87565 and the family of LP87565 PMICs.
  142. LP87565 series of PMICs have 4 single phase BUCKs that can also
  143. be configured in multi phase modes. The driver implements
  144. get/set api for value and enable.