blob: b9fda428df98e46eec6a42f7b366e50ed62e57dc [file] [log] [blame]
Przemyslaw Marczak9a8bc952015-04-20 20:07:41 +02001config DM_PMIC
2 bool "Enable Driver Model for PMIC drivers (UCLASS_PMIC)"
3 depends on DM
4 ---help---
5 This config enables the driver-model PMIC support.
6 UCLASS_PMIC - designed to provide an I/O interface for PMIC devices.
7 For the multi-function PMIC devices, this can be used as parent I/O
8 device for each IC's interface. Then, each children uses its parent
9 for read/write. For detailed description, please refer to the files:
10 - 'drivers/power/pmic/pmic-uclass.c'
11 - 'include/power/pmic.h'
Przemyslaw Marczak58ea76f2015-04-20 20:07:46 +020012
Samuel Hollandaad02792021-10-08 00:17:14 -050013if DM_PMIC
14
Simon Glass6343ffb2021-08-08 12:20:25 -060015config SPL_DM_PMIC
16 bool "Enable Driver Model for PMIC drivers (UCLASS_PMIC) in SPL"
17 depends on SPL_DM
Samuel Hollandaad02792021-10-08 00:17:14 -050018 default y
Simon Glass6343ffb2021-08-08 12:20:25 -060019 ---help---
20 This config enables the driver-model PMIC support in SPL.
21 UCLASS_PMIC - designed to provide an I/O interface for PMIC devices.
22 For the multi-function PMIC devices, this can be used as parent I/O
23 device for each IC's interface. Then, each children uses its parent
24 for read/write. For detailed description, please refer to the files:
25 - 'drivers/power/pmic/pmic-uclass.c'
26 - 'include/power/pmic.h'
27
Simon Glassc8db7b42016-01-21 19:43:55 -070028config PMIC_CHILDREN
29 bool "Allow child devices for PMICs"
Simon Glassc8db7b42016-01-21 19:43:55 -070030 default y
31 ---help---
32 This allows PMICs to support child devices (such as regulators) in
33 SPL. This adds quite a bit of code so if you are not using this
34 feature you can turn it off. Most likely you should turn it on for
35 U-Boot proper.
36
37config SPL_PMIC_CHILDREN
38 bool "Allow child devices for PMICs in SPL"
Samuel Hollanda0a21592021-10-08 00:17:15 -050039 depends on SPL_DM_PMIC
Simon Glassc8db7b42016-01-21 19:43:55 -070040 default y
41 ---help---
42 This allows PMICs to support child devices (such as regulators) in
43 SPL. This adds quite a bit of code so if you are not using this
44 feature you can turn it off. In this case you may need a 'back door'
Jacob Chen614704b2017-05-02 14:54:52 +080045 to call your regulator code (e.g. see rk8xx.c for direct functions
Simon Glassc8db7b42016-01-21 19:43:55 -070046 for use in SPL).
47
Stephan Gerholdcb9589f2021-07-08 20:33:48 +020048config PMIC_AB8500
49 bool "Enable driver for ST-Ericsson AB8500 PMIC via PRCMU"
Stephan Gerholdcb9589f2021-07-08 20:33:48 +020050 select REGMAP
51 select SYSCON
52 help
53 Enable support for the ST-Ericsson AB8500 (Analog Baseband) PMIC.
54 It connects with the ST-Ericsson DB8500 SoC via an I2C bus managed by
55 the power/reset/clock management unit (PRCMU) firmware.
56
Simon Glassb08ce892015-08-30 16:55:29 -060057config PMIC_ACT8846
58 bool "Enable support for the active-semi 8846 PMIC"
Samuel Hollandaad02792021-10-08 00:17:14 -050059 depends on DM_I2C
Simon Glassb08ce892015-08-30 16:55:29 -060060 ---help---
61 This PMIC includes 4 DC/DC step-down buck regulators and 8 low-dropout
62 regulators (LDOs). It also provides some GPIO, reset and battery
63 functions. It uses an I2C interface and is designed for use with
64 tablets and smartphones.
65
Samuel Holland3f902612021-10-08 00:17:16 -050066config PMIC_AXP
67 bool "Enable Driver Model for X-Powers AXP PMICs"
68 depends on DM_I2C
Samuel Holland5afa5cd2021-10-24 21:00:10 -050069 select SYSRESET_CMD_POWEROFF if SYSRESET && CMD_POWEROFF
70 imply CMD_POWEROFF if SYSRESET
Samuel Holland3f902612021-10-08 00:17:16 -050071 help
72 This config enables driver-model PMIC uclass features for
73 X-Powers AXP152, AXP2xx, and AXP8xx PMICs.
74
75config SPL_PMIC_AXP
76 bool "Enable Driver Model for X-Powers AXP PMICs in SPL"
77 depends on SPL_DM_I2C && SPL_DM_PMIC
78 help
79 This config enables driver-model PMIC uclass features in the SPL for
80 X-Powers AXP152, AXP2xx, and AXP8xx PMICs.
81
Martin Fuzzeya99472e2020-01-14 15:56:16 +000082config DM_PMIC_DA9063
83 bool "Enable Driver Model for the Dialog DA9063 PMIC"
Martin Fuzzeya99472e2020-01-14 15:56:16 +000084 help
85 This config enables implementation of driver-model pmic uclass features
86 for PMIC DA9063. The driver implements read/write operations.
87
88config SPL_DM_PMIC_DA9063
89 bool "Enable Driver Model for the Dialog DA9063 PMIC in SPL"
Samuel Hollanda0a21592021-10-08 00:17:15 -050090 depends on SPL_DM_PMIC
Martin Fuzzeya99472e2020-01-14 15:56:16 +000091 help
92 This config enables implementation of driver-model pmic uclass features
93 for PMIC DA9063. The driver implements read/write operations.
94
Simon Glass52222b12017-04-26 22:27:46 -060095config PMIC_AS3722
96 bool "Enable support for the Austria Micro Systems (AMS) AS7322 PMIC"
97 help
98 The AS3722 includes 7 DC/DC buck convertors, 11 low-noise LDOs, a
99 real-time clock, GPIOs, ADC and a few other features. It uses an I2C
100 interface and is designs to cover most of the power managementment
101 required for a tablets or laptop.
102
Matti Vaittinen1cf7f1d2019-05-07 10:43:39 +0300103config DM_PMIC_BD71837
104 bool "Enable Driver Model for PMIC BD71837"
Matti Vaittinen1cf7f1d2019-05-07 10:43:39 +0300105 help
106 This config enables implementation of driver-model pmic uclass features
107 for PMIC BD71837. The driver implements read/write operations.
108
Peng Fan9c3193b2019-10-16 10:24:36 +0000109config SPL_DM_PMIC_BD71837
110 bool "Enable Driver Model for PMIC BD71837 in SPL stage"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500111 depends on SPL_DM_PMIC
Peng Fan9c3193b2019-10-16 10:24:36 +0000112 help
113 This config enables implementation of driver-model pmic uclass
114 features for PMIC BD71837. The driver implements read/write
115 operations.
116
Philipp Tomsichb7f57e12018-11-30 20:00:08 +0100117config DM_PMIC_FAN53555
118 bool "Enable support for OnSemi FAN53555"
Samuel Hollandaad02792021-10-08 00:17:14 -0500119 depends on DM_REGULATOR && DM_I2C
Philipp Tomsichb7f57e12018-11-30 20:00:08 +0100120 select DM_REGULATOR_FAN53555
121 help
122 This config enables implementation of driver-model PMIC
123 uclass features for the FAN53555 regulator. The FAN53555 is
124 a (family of) single-output regulators that supports
125 transitioning between two different output voltages based on
126 an voltage selection pin.
127
128 The driver implements read/write operations for use with the FAN53555
129 regulator driver and binds the regulator driver to its node.
130
Tim Harvey338588e2020-12-21 08:19:39 -0800131config DM_PMIC_MP5416
132 bool "Enable Driver Model for PMIC MP5416"
Tim Harvey338588e2020-12-21 08:19:39 -0800133 help
134 This config enables implementation of driver-model pmic uclass features
135 for PMIC MP5416. The driver implements read/write operations.
136
137config SPL_DM_PMIC_MP5416
138 bool "Enable Driver Model for PMIC MP5416 in SPL stage"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500139 depends on SPL_DM_PMIC
Tim Harvey338588e2020-12-21 08:19:39 -0800140 help
141 This config enables implementation of driver-model pmic uclass
142 features for PMIC MP5416. The driver implements read/write
143 operations.
144
Ye Lic3ee9092019-10-15 02:15:18 -0700145config DM_PMIC_PCA9450
146 bool "Enable Driver Model for PMIC PCA9450"
Ye Lic3ee9092019-10-15 02:15:18 -0700147 help
148 This config enables implementation of driver-model pmic uclass features
149 for PMIC PCA9450. The driver implements read/write operations.
150
Igor Opaniukdb8fef22020-10-28 11:58:10 +0200151config SPL_DM_PMIC_PCA9450
152 bool "Enable Driver Model for PMIC PCA9450"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500153 depends on SPL_DM_PMIC
Igor Opaniukdb8fef22020-10-28 11:58:10 +0200154 help
155 This config enables implementation of driver-model pmic uclass features
156 for PMIC PCA9450 in SPL. The driver implements read/write operations.
157
Peng Fan6f4f6d22015-08-14 11:36:16 +0200158config DM_PMIC_PFUZE100
159 bool "Enable Driver Model for PMIC PFUZE100"
Peng Fan6f4f6d22015-08-14 11:36:16 +0200160 ---help---
161 This config enables implementation of driver-model pmic uclass features
162 for PMIC PFUZE100. The driver implements read/write operations.
163
Marek Vasut16189d62020-05-29 19:22:41 +0200164config SPL_DM_PMIC_PFUZE100
165 bool "Enable Driver Model for PMIC PFUZE100 in SPL"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500166 depends on SPL_DM_PMIC
Marek Vasut16189d62020-05-29 19:22:41 +0200167 ---help---
168 This config enables implementation of driver-model pmic uclass features
169 for PMIC PFUZE100 in SPL. The driver implements read/write operations.
170
Przemyslaw Marczak58ea76f2015-04-20 20:07:46 +0200171config DM_PMIC_MAX77686
172 bool "Enable Driver Model for PMIC MAX77686"
Przemyslaw Marczak58ea76f2015-04-20 20:07:46 +0200173 ---help---
174 This config enables implementation of driver-model pmic uclass features
Przemyslaw Marczak10314982015-05-13 13:38:26 +0200175 for PMIC MAX77686. The driver implements read/write operations.
Przemyslaw Marczakd5175dc2015-05-13 13:38:32 +0200176
Jaehoon Chung42b5d882016-12-15 18:21:10 +0900177config DM_PMIC_MAX8998
178 bool "Enable Driver Model for PMIC MAX8998"
Jaehoon Chung42b5d882016-12-15 18:21:10 +0900179 ---help---
180 This config enables implementation of driver-model pmic uclass features
181 for PMIC MAX8998. The driver implements read/write operations.
182
Lukasz Majewski9c65b792018-05-15 16:26:37 +0200183config DM_PMIC_MC34708
184 bool "Enable Driver Model for PMIC MC34708"
Lukasz Majewski9c65b792018-05-15 16:26:37 +0200185 help
186 This config enables implementation of driver-model pmic uclass features
187 for PMIC MC34708. The driver implements read/write operations.
188
Jaehoon Chung4997f6e2017-02-02 17:04:09 +0900189config PMIC_MAX8997
190 bool "Enable Driver Model for PMIC MAX8997"
Jaehoon Chung4997f6e2017-02-02 17:04:09 +0900191 ---help---
192 This config enables implementation of driver-model pmic uclass features
193 for PMIC MAX8997. The driver implements read/write operations.
194 This is a Power Management IC with RTC, Fuel Gauge, MUIC control on Chip.
195 - 21x LDOs
196 - 12x GPIOs
197 - Haptic Motor driver
198 - RTC with two alarms
199 - Fueal Gauge and One backup battery charger
200 - MUIC
201 - Others
202
Mateusz Kulikowski0be548f2016-03-31 23:12:30 +0200203config PMIC_PM8916
204 bool "Enable Driver Model for Qualcomm PM8916 PMIC"
Mateusz Kulikowski0be548f2016-03-31 23:12:30 +0200205 ---help---
206 The PM8916 is a PMIC connected to one (or several) processors
207 with SPMI bus. It has 2 slaves with several peripherals:
208 - 18x LDO
209 - 4x GPIO
210 - Power and Reset buttons
211 - Watchdog
212 - RTC
213 - Vibrator drivers
214 - Others
215
216 Driver binding info: doc/device-tree-bindings/pmic/pm8916.txt
217
Jacob Chen614704b2017-05-02 14:54:52 +0800218config PMIC_RK8XX
219 bool "Enable support for Rockchip PMIC RK8XX"
Simon Glassa8bd2ac2016-01-21 19:43:29 -0700220 ---help---
221 The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs,
222 an RTC and two low Rds (resistance (drain to source)) switches. It is
223 accessed via an I2C interface. The device is used with Rockchip SoCs.
224 This driver implements register read/write operations.
225
Simon Glass6343ffb2021-08-08 12:20:25 -0600226config SPL_PMIC_RK8XX
227 bool "Enable support for Rockchip PMIC RK8XX"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500228 depends on SPL_DM_PMIC
Simon Glass6343ffb2021-08-08 12:20:25 -0600229 ---help---
230 The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs,
231 an RTC and two low Rds (resistance (drain to source)) switches. It is
232 accessed via an I2C interface. The device is used with Rockchip SoCs.
233 This driver implements register read/write operations.
234
Przemyslaw Marczak91815122015-10-27 13:07:58 +0100235config PMIC_S2MPS11
236 bool "Enable Driver Model for PMIC Samsung S2MPS11"
Przemyslaw Marczak91815122015-10-27 13:07:58 +0100237 ---help---
238 The Samsung S2MPS11 PMIC provides:
239 - 38 adjustable LDO regulators
240 - 9 High-Efficiency Buck Converters
241 - 1 BuckBoost Converter
242 - RTC with two alarms
243 - Backup battery charger
244 - I2C Configuration Interface
245 This driver provides access to I/O interface only.
246 Binding info: doc/device-tree-bindings/pmic/s2mps11.txt
247
Przemyslaw Marczakd5175dc2015-05-13 13:38:32 +0200248config DM_PMIC_SANDBOX
Michal Simekc7df3a22018-07-23 08:38:56 +0200249 bool "Enable Driver Model for emulated Sandbox PMIC"
Przemyslaw Marczakd5175dc2015-05-13 13:38:32 +0200250 ---help---
251 Enable the driver for Sandbox PMIC emulation. The emulated PMIC device
252 depends on two drivers:
253 - sandbox PMIC I/O driver - implements dm pmic operations
254 - sandbox PMIC i2c emul driver - emulates the PMIC's I2C transmission
255
256 A detailed information can be found in header: '<power/sandbox_pmic.h>'
257
258 The Sandbox PMIC info:
259 * I/O interface:
260 - I2C chip address: 0x40
261 - first register address: 0x0
262 - register count: 0x10
263 * Adjustable outputs:
264 - 2x LDO
265 - 2x BUCK
266 - Each, with a different operating conditions (header).
267 * Reset values:
268 - set by i2c emul driver's probe() (defaults in header)
269
270 Driver binding info: doc/device-tree-bindings/pmic/sandbox.txt
Simon Glassc0871112015-07-02 18:15:58 -0600271
Simon Glass01651492015-07-02 18:16:00 -0600272config PMIC_S5M8767
273 bool "Enable Driver Model for the Samsung S5M8767 PMIC"
Simon Glass01651492015-07-02 18:16:00 -0600274 ---help---
275 The S5M8767 PMIC provides a large array of LDOs and BUCKs for use
276 as a SoC power controller. It also provides 32KHz clock outputs. This
277 driver provides basic register access and sets up the attached
278 regulators if regulator support is enabled.
279
Stefan Agnerb084ddd2016-10-05 15:27:09 -0700280config PMIC_RN5T567
281 bool "Enable driver for Ricoh RN5T567 PMIC"
Stefan Agnerb084ddd2016-10-05 15:27:09 -0700282 ---help---
283 The RN5T567 is a PMIC with 4 step-down DC/DC converters, 5 LDO
284 regulators Real-Time Clock and 4 GPIOs. This driver provides
285 register access only.
286
Simon Glassc0871112015-07-02 18:15:58 -0600287config PMIC_TPS65090
288 bool "Enable driver for Texas Instruments TPS65090 PMIC"
Simon Glassc0871112015-07-02 18:15:58 -0600289 ---help---
290 The TPS65090 is a PMIC containing several LDOs, DC to DC convertors,
291 FETs and a battery charger. This driver provides register access
292 only, and you can enable the regulator/charger drivers separately if
293 required.
Keerthyf0df1b12016-09-30 09:20:43 +0530294
295config PMIC_PALMAS
296 bool "Enable driver for Texas Instruments PALMAS PMIC"
Keerthyf0df1b12016-09-30 09:20:43 +0530297 ---help---
298 The PALMAS is a PMIC containing several LDOs, SMPS.
299 This driver binds the pmic children.
Keerthy662797b2016-09-30 09:34:02 +0530300
301config PMIC_LP873X
302 bool "Enable driver for Texas Instruments LP873X PMIC"
Keerthy662797b2016-09-30 09:34:02 +0530303 ---help---
304 The LP873X is a PMIC containing couple of LDOs and couple of SMPS.
305 This driver binds the pmic children.
Hou Zhiqiang6d6e5ee2016-12-09 16:08:57 +0800306
Keerthy3006c922017-06-07 19:08:28 +0530307config PMIC_LP87565
308 bool "Enable driver for Texas Instruments LP87565 PMIC"
Keerthy3006c922017-06-07 19:08:28 +0530309 ---help---
310 The LP87565 is a PMIC containing a bunch of SMPS.
311 This driver binds the pmic children.
312
Felix Brack9493f0e2017-11-30 13:52:37 +0100313config DM_PMIC_TPS65910
314 bool "Enable driver for Texas Instruments TPS65910 PMIC"
Felix Brack9493f0e2017-11-30 13:52:37 +0100315 ---help---
316 The TPS65910 is a PMIC containing 3 buck DC-DC converters, one boost
317 DC-DC converter, 8 LDOs and a RTC. This driver binds the SMPS and LDO
318 pmic children.
Patrick Delaunay3cba4512018-03-12 10:46:12 +0100319
Patrick Delaunayd79218f2019-02-04 11:26:17 +0100320config PMIC_STPMIC1
321 bool "Enable support for STMicroelectronics STPMIC1 PMIC"
Samuel Hollandaad02792021-10-08 00:17:14 -0500322 depends on DM_I2C
Urja Rannikkoe008ebf2019-05-16 21:48:42 +0000323 select SYSRESET_CMD_POWEROFF if CMD_POWEROFF && !ARM_PSCI_FW
Patrick Delaunay3cba4512018-03-12 10:46:12 +0100324 ---help---
Patrick Delaunayd79218f2019-02-04 11:26:17 +0100325 The STPMIC1 PMIC provides 4 BUCKs, 6 LDOs, 1 VREF and 2 power switches.
Patrick Delaunay3cba4512018-03-12 10:46:12 +0100326 It is accessed via an I2C interface. The device is used with STM32MP1
327 SoCs. This driver implements register read/write operations.
Keerthya23e47e2019-06-06 16:06:55 +0530328
329config SPL_PMIC_PALMAS
330 bool "Enable driver for Texas Instruments PALMAS PMIC"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500331 depends on SPL_DM_PMIC
Keerthya23e47e2019-06-06 16:06:55 +0530332 help
333 The PALMAS is a PMIC containing several LDOs, SMPS.
334 This driver binds the pmic children in SPL.
335
336config SPL_PMIC_LP873X
337 bool "Enable driver for Texas Instruments LP873X PMIC"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500338 depends on SPL_DM_PMIC
Keerthya23e47e2019-06-06 16:06:55 +0530339 help
340 The LP873X is a PMIC containing couple of LDOs and couple of SMPS.
341 This driver binds the pmic children in SPL.
342
343config SPL_PMIC_LP87565
344 bool "Enable driver for Texas Instruments LP87565 PMIC"
Samuel Hollanda0a21592021-10-08 00:17:15 -0500345 depends on SPL_DM_PMIC
Keerthya23e47e2019-06-06 16:06:55 +0530346 help
347 The LP87565 is a PMIC containing a bunch of SMPS.
348 This driver binds the pmic children in SPL.
Keerthya36bb3c2019-10-24 15:00:50 +0530349
350config PMIC_TPS65941
351 bool "Enable driver for Texas Instruments TPS65941 PMIC"
Keerthya36bb3c2019-10-24 15:00:50 +0530352 help
353 The TPS65941 is a PMIC containing a bunch of SMPS & LDOs.
354 This driver binds the pmic children.
Samuel Hollandaad02792021-10-08 00:17:14 -0500355
356endif
Tom Rini97e96f22021-10-12 08:58:58 -0400357
358config POWER_MC34VR500
359 bool "Enable driver for Freescale MC34VR500 PMIC"
360 depends on !DM_PMIC
361 ---help---
362 The MC34VR500 is used in conjunction with the FSL T1 and LS1 series
363 SoC. It provides 4 buck DC-DC convertors and 5 LDOs, and it is accessed
364 via an I2C interface.