Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. menu "Power"
  2. source "drivers/power/acpi_pmc/Kconfig"
  3. source "drivers/power/domain/Kconfig"
  4. source "drivers/power/pmic/Kconfig"
  5. source "drivers/power/regulator/Kconfig"
  6. choice
  7. prompt "Select Sunxi PMIC Variant"
  8. depends on ARCH_SUNXI
  9. default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
  10. default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
  11. default AXP305_POWER if MACH_SUN50I_H616
  12. default AXP818_POWER if MACH_SUN8I_A83T
  13. default SUNXI_NO_PMIC if MACH_SUNXI_H3_H5 || MACH_SUN50I || MACH_SUN8I_V3S
  14. config SUNXI_NO_PMIC
  15. bool "board without a pmic"
  16. ---help---
  17. Select this for boards which do not use a PMIC.
  18. config AXP152_POWER
  19. bool "axp152 pmic support"
  20. depends on MACH_SUN5I
  21. select AXP_PMIC_BUS
  22. select CMD_POWEROFF
  23. ---help---
  24. Select this to enable support for the axp152 pmic found on most
  25. A10s boards.
  26. config AXP209_POWER
  27. bool "axp209 pmic support"
  28. depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || MACH_SUN8I_V3S
  29. select AXP_PMIC_BUS
  30. select CMD_POWEROFF
  31. ---help---
  32. Select this to enable support for the axp209 pmic found on most
  33. A10, A13 and A20 boards.
  34. config AXP221_POWER
  35. bool "axp221 / axp223 pmic support"
  36. depends on MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33 || MACH_SUN8I_R40
  37. select AXP_PMIC_BUS
  38. select CMD_POWEROFF
  39. ---help---
  40. Select this to enable support for the axp221/axp223 pmic found on most
  41. A23 and A31 boards.
  42. config AXP305_POWER
  43. bool "axp305 pmic support"
  44. depends on MACH_SUN50I_H616
  45. select AXP_PMIC_BUS
  46. select CMD_POWEROFF
  47. ---help---
  48. Select this to enable support for the axp305 pmic found on most
  49. H616 boards.
  50. config AXP809_POWER
  51. bool "axp809 pmic support"
  52. depends on MACH_SUN9I
  53. select AXP_PMIC_BUS
  54. select CMD_POWEROFF
  55. ---help---
  56. Say y here to enable support for the axp809 pmic found on A80 boards.
  57. config AXP818_POWER
  58. bool "axp818 pmic support"
  59. depends on MACH_SUN8I_A83T
  60. select AXP_PMIC_BUS
  61. select CMD_POWEROFF
  62. ---help---
  63. Say y here to enable support for the axp818 pmic found on
  64. A83T dev board.
  65. config SY8106A_POWER
  66. bool "SY8106A pmic support"
  67. depends on MACH_SUNXI_H3_H5
  68. ---help---
  69. Select this to enable support for the SY8106A pmic found on some
  70. H3 boards.
  71. endchoice
  72. config AXP_DCDC1_VOLT
  73. int "axp pmic dcdc1 voltage"
  74. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  75. default 3300 if AXP818_POWER || MACH_SUN8I_R40
  76. default 3000 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
  77. ---help---
  78. Set the voltage (mV) to program the axp pmic dcdc1 at, set to 0 to
  79. disable dcdc1. On A23 / A31 / A33 (axp221) boards dcdc1 is used for
  80. generic 3.3V IO voltage for external devices like the lcd-panal and
  81. sdcard interfaces, etc. On most boards dcdc1 is undervolted to 3.0V to
  82. save battery. On A31 devices dcdc1 is also used for VCC-IO. On A83T
  83. dcdc1 is used for VCC-IO, nand, usb0, sd , etc. On A80 dcdc1 normally
  84. powers some of the pingroups, NAND/eMMC, SD/MMC, and USB OTG.
  85. config AXP_DCDC2_VOLT
  86. int "axp pmic dcdc2 voltage"
  87. depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
  88. default 900 if AXP818_POWER
  89. default 1400 if AXP152_POWER || AXP209_POWER
  90. default 1200 if MACH_SUN6I
  91. default 1100 if MACH_SUN8I
  92. default 0 if MACH_SUN9I
  93. ---help---
  94. Set the voltage (mV) to program the axp pmic dcdc2 at, set to 0 to
  95. disable dcdc2.
  96. On A10(s) / A13 / A20 boards dcdc2 is VDD-CPU and should be 1.4V.
  97. On A31 boards dcdc2 is used for VDD-GPU and should be 1.2V.
  98. On A23/A33 boards dcdc2 is used for VDD-SYS and should be 1.1V.
  99. On A80 boards dcdc2 powers the GPU and can be left off.
  100. On A83T boards dcdc2 is used for VDD-CPUA(cluster 0) and should be 0.9V.
  101. On R40 boards dcdc2 is VDD-CPU and should be 1.1V
  102. config AXP_DCDC3_VOLT
  103. int "axp pmic dcdc3 voltage"
  104. depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
  105. default 900 if AXP809_POWER || AXP818_POWER
  106. default 1500 if AXP152_POWER
  107. default 1250 if AXP209_POWER
  108. default 1100 if MACH_SUN8I_R40
  109. default 1200 if MACH_SUN6I || MACH_SUN8I
  110. ---help---
  111. Set the voltage (mV) to program the axp pmic dcdc3 at, set to 0 to
  112. disable dcdc3.
  113. On A10(s) / A13 / A20 boards with an axp209 dcdc3 is VDD-INT-DLL and
  114. should be 1.25V.
  115. On A10s boards with an axp152 dcdc3 is VCC-DRAM and should be 1.5V.
  116. On A23 / A31 / A33 boards dcdc3 is VDD-CPU and should be 1.2V.
  117. On A80 boards dcdc3 is used for VDD-CPUA(cluster 0) and should be 0.9V.
  118. On A83T boards dcdc3 is used for VDD-CPUB(cluster 1) and should be 0.9V.
  119. On R40 boards dcdc3 is VDD-SYS and VDD-GPU and should be 1.1V.
  120. config AXP_DCDC4_VOLT
  121. int "axp pmic dcdc4 voltage"
  122. depends on AXP152_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER || AXP305_POWER
  123. default 1250 if AXP152_POWER
  124. default 1200 if MACH_SUN6I
  125. default 0 if MACH_SUN8I
  126. default 900 if MACH_SUN9I
  127. default 1500 if AXP305_POWER
  128. ---help---
  129. Set the voltage (mV) to program the axp pmic dcdc4 at, set to 0 to
  130. disable dcdc4.
  131. On A10s boards with an axp152 dcdc4 is VDD-INT-DLL and should be 1.25V.
  132. On A31 boards dcdc4 is used for VDD-SYS and should be 1.2V.
  133. On A23 / A33 boards dcdc4 is unused and should be disabled.
  134. On A80 boards dcdc4 powers VDD-SYS, HDMI, USB OTG and should be 0.9V.
  135. On A83T boards dcdc4 is used for VDD-GPU.
  136. On H616 boards dcdcd is used for VCC-DRAM.
  137. config AXP_DCDC5_VOLT
  138. int "axp pmic dcdc5 voltage"
  139. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  140. default 1500 if MACH_SUN6I || MACH_SUN8I || MACH_SUN9I
  141. ---help---
  142. Set the voltage (mV) to program the axp pmic dcdc5 at, set to 0 to
  143. disable dcdc5.
  144. On A23 / A31 / A33 / A80 / A83T / R40 boards dcdc5 is VCC-DRAM and
  145. should be 1.5V, 1.35V if DDR3L is used.
  146. config AXP_ALDO1_VOLT
  147. int "axp pmic (a)ldo1 voltage"
  148. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  149. default 0 if MACH_SUN6I || MACH_SUN8I_R40
  150. default 1800 if MACH_SUN8I_A83T
  151. default 3000 if MACH_SUN8I || MACH_SUN9I
  152. ---help---
  153. Set the voltage (mV) to program the axp pmic aldo1 at, set to 0 to
  154. disable aldo1.
  155. On A31 boards aldo1 is often used to power the wifi module.
  156. On A23 / A33 boards aldo1 is used for VCC-IO and should be 3.0V.
  157. On A80 boards aldo1 powers the USB hosts and should be 3.0V.
  158. On A83T / H8 boards aldo1 is used for MIPI CSI, DSI, HDMI, EFUSE, and
  159. should be 1.8V.
  160. config AXP_ALDO2_VOLT
  161. int "axp pmic (a)ldo2 voltage"
  162. depends on AXP152_POWER || AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
  163. default 3000 if AXP152_POWER || AXP209_POWER
  164. default 0 if MACH_SUN6I || MACH_SUN9I
  165. default 1800 if MACH_SUN8I_A83T
  166. default 2500 if MACH_SUN8I
  167. ---help---
  168. Set the voltage (mV) to program the axp pmic aldo2 at, set to 0 to
  169. disable aldo2.
  170. On A10(s) / A13 / A20 boards aldo2 is AVCC and should be 3.0V.
  171. On A31 boards aldo2 is typically unused and should be disabled.
  172. On A31 boards aldo2 may be used for LPDDR2 then it should be 1.8V.
  173. On A23 / A33 boards aldo2 is used for VDD-DLL and should be 2.5V.
  174. On A80 boards aldo2 powers PB pingroup and camera IO and can be left off.
  175. On A83T / H8 boards aldo2 powers VDD-DLL, VCC18-PLL, CPVDD, VDD18-ADC,
  176. LPDDR2, and the codec. It should be 1.8V.
  177. config AXP_ALDO3_VOLT
  178. int "axp pmic (a)ldo3 voltage"
  179. depends on AXP209_POWER || AXP221_POWER || AXP809_POWER || AXP818_POWER
  180. default 0 if AXP209_POWER || MACH_SUN9I
  181. default 3000 if MACH_SUN6I || MACH_SUN8I
  182. ---help---
  183. Set the voltage (mV) to program the axp pmic aldo3 at, set to 0 to
  184. disable aldo3.
  185. On A10(s) / A13 / A20 boards aldo3 should be 2.8V.
  186. On A23 / A31 / A33 / R40 boards aldo3 is VCC-PLL and AVCC and should
  187. be 3.0V.
  188. On A80 boards aldo3 is normally not used.
  189. On A83T / H8 boards aldo3 is AVCC, VCC-PL, and VCC-LED, and should be
  190. 3.0V.
  191. choice
  192. prompt "axp pmic (a)ldo3 voltage rate control"
  193. depends on AXP209_POWER
  194. default AXP_ALDO3_VOLT_SLOPE_NONE
  195. ---help---
  196. The AXP can slowly ramp up voltage to reduce the inrush current when
  197. changing voltages.
  198. Note, this does not apply when enabling/disabling LDO3. See
  199. "axp pmic (a)ldo3 inrush quirk" below to enable a slew rate to limit
  200. inrush current on broken board designs.
  201. config AXP_ALDO3_VOLT_SLOPE_NONE
  202. bool "No voltage slope"
  203. ---help---
  204. Tries to reach the next voltage setting near instantaneously. Measurements
  205. indicate that this is about 0.0167 V/uS.
  206. config AXP_ALDO3_VOLT_SLOPE_16
  207. bool "1.6 mV per uS"
  208. ---help---
  209. Increases the voltage by 1.6 mV per uS until the final voltage has
  210. been reached. Note that the scaling is in 25 mV steps and thus
  211. the slew rate in reality is about 25 mV/31.250 uS.
  212. config AXP_ALDO3_VOLT_SLOPE_08
  213. bool "0.8 mV per uS"
  214. ---help---
  215. Increases the voltage by 0.8 mV per uS until the final voltage has
  216. been reached. Note that the scaling is in 25 mV steps however and thus
  217. the slew rate in reality is about 25 mV/15.625 uS.
  218. This is the slowest supported rate.
  219. endchoice
  220. config AXP_ALDO3_INRUSH_QUIRK
  221. bool "axp pmic (a)ldo3 inrush quirk"
  222. depends on AXP209_POWER
  223. ---help---
  224. The reference design denotes a value of 4.7 uF for the output capacitor
  225. of LDO3. Some boards have too high capacitance causing an inrush current
  226. and resulting an AXP209 shutdown.
  227. config AXP_ALDO4_VOLT
  228. int "axp pmic (a)ldo4 voltage"
  229. depends on AXP209_POWER
  230. default 0 if AXP209_POWER
  231. ---help---
  232. Set the voltage (mV) to program the axp pmic aldo4 at, set to 0 to
  233. disable aldo4.
  234. On A10(s) / A13 / A20 boards aldo4 should be 2.8V.
  235. config AXP_DLDO1_VOLT
  236. int "axp pmic dldo1 voltage"
  237. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  238. default 0
  239. ---help---
  240. Set the voltage (mV) to program the axp pmic dldo1 at, set to 0 to
  241. disable dldo1. On sun6i (A31) boards with ethernet dldo1 is often used
  242. to power the ethernet phy. On A23, A33 and A80 boards this is often
  243. used to power the wifi.
  244. config AXP_DLDO2_VOLT
  245. int "axp pmic dldo2 voltage"
  246. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  247. default 3000 if MACH_SUN9I
  248. default 0
  249. ---help---
  250. Set the voltage (mV) to program the axp pmic dldo2 at, set to 0 to
  251. disable dldo2.
  252. On A80 boards dldo2 normally powers the PL pins and should be 3.0V.
  253. config AXP_DLDO3_VOLT
  254. int "axp pmic dldo3 voltage"
  255. depends on AXP221_POWER || AXP818_POWER
  256. default 0
  257. ---help---
  258. Set the voltage (mV) to program the axp pmic dldo3 at, set to 0 to
  259. disable dldo3.
  260. config AXP_DLDO4_VOLT
  261. int "axp pmic dldo4 voltage"
  262. depends on AXP221_POWER || AXP818_POWER
  263. default 0
  264. ---help---
  265. Set the voltage (mV) to program the axp pmic dldo4 at, set to 0 to
  266. disable dldo4.
  267. config AXP_ELDO1_VOLT
  268. int "axp pmic eldo1 voltage"
  269. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  270. default 0
  271. ---help---
  272. Set the voltage (mV) to program the axp pmic eldo1 at, set to 0 to
  273. disable eldo1.
  274. config AXP_ELDO2_VOLT
  275. int "axp pmic eldo2 voltage"
  276. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  277. default 0
  278. ---help---
  279. Set the voltage (mV) to program the axp pmic eldo2 at, set to 0 to
  280. disable eldo2.
  281. config AXP_ELDO3_VOLT
  282. int "axp pmic eldo3 voltage"
  283. depends on AXP221_POWER || AXP809_POWER || AXP818_POWER
  284. default 3000 if MACH_SUN9I
  285. default 0
  286. ---help---
  287. Set the voltage (mV) to program the axp pmic eldo3 at, set to 0 to
  288. disable eldo3. On some A31(s) tablets it might be used to supply
  289. 1.2V for the SSD2828 chip (converter of parallel LCD interface
  290. into MIPI DSI).
  291. On A80 boards it powers the PM pingroup and should be 3.0V.
  292. config AXP_FLDO1_VOLT
  293. int "axp pmic fldo1 voltage"
  294. depends on AXP818_POWER
  295. default 0 if MACH_SUN8I_A83T
  296. ---help---
  297. Set the voltage (mV) to program the axp pmic fldo1 at, set to 0 to
  298. disable fldo1.
  299. On A83T / H8 boards fldo1 is VCC-HSIC and should be 1.2V if HSIC is
  300. used.
  301. config AXP_FLDO2_VOLT
  302. int "axp pmic fldo2 voltage"
  303. depends on AXP818_POWER
  304. default 900 if MACH_SUN8I_A83T
  305. ---help---
  306. Set the voltage (mV) to program the axp pmic fldo2 at, set to 0 to
  307. disable fldo2.
  308. On A83T / H8 boards fldo2 is VCC-CPUS and should be 0.9V.
  309. config AXP_FLDO3_VOLT
  310. int "axp pmic fldo3 voltage"
  311. depends on AXP818_POWER
  312. default 0
  313. ---help---
  314. Set the voltage (mV) to program the axp pmic fldo3 at, set to 0 to
  315. disable fldo3.
  316. config AXP_SW_ON
  317. bool "axp pmic sw on"
  318. depends on AXP809_POWER || AXP818_POWER
  319. ---help---
  320. Enable to turn on axp pmic sw.
  321. config SY8106A_VOUT1_VOLT
  322. int "SY8106A pmic VOUT1 voltage"
  323. depends on SY8106A_POWER
  324. default 1200
  325. ---help---
  326. Set the voltage (mV) to program the SY8106A pmic VOUT1. This
  327. is typically used to power the VDD-CPU and should be 1200mV.
  328. Values can range from 680mV till 1950mV.
  329. config TWL4030_POWER
  330. depends on OMAP34XX
  331. bool "Enable driver for TI TWL4030 power management chip"
  332. imply CMD_POWEROFF
  333. ---help---
  334. The TWL4030 in a combination audio CODEC/power management with
  335. GPIO and it is commonly used with the OMAP3 family of processors
  336. config POWER_MT6323
  337. bool "Poweroff driver for mediatek mt6323"
  338. select CMD_POWEROFF
  339. help
  340. This adds poweroff driver for mt6323
  341. this pmic is used on mt7623 / Bananapi R2
  342. endmenu