xref: /linux/drivers/power/supply/Kconfig (revision 70d7dd27f6dc9bada652c3a84ba7e6688a96f8db)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig POWER_SUPPLY
3	bool "Power supply class support"
4	help
5	  Say Y here to enable power supply class support. This allows
6	  power supply (batteries, AC, USB) monitoring by userspace
7	  via sysfs and uevent (if available) and/or APM kernel interface
8	  (if selected below).
9
10if POWER_SUPPLY
11
12config POWER_SUPPLY_DEBUG
13	bool "Power supply debug"
14	help
15	  Say Y here to enable debugging messages for power supply class
16	  and drivers.
17
18config POWER_SUPPLY_HWMON
19	bool
20	prompt "Expose power supply sensors as hwmon device"
21	depends on HWMON=y || HWMON=POWER_SUPPLY
22	default y
23	help
24	  This options enables API that allows sensors found on a
25	  power supply device (current, voltage, temperature) to be
26	  exposed as a hwmon device.
27
28	  Say 'Y' here if you want power supplies to
29	  have hwmon sysfs interface too.
30
31config APM_POWER
32	tristate "APM emulation for class batteries"
33	depends on APM_EMULATION
34	help
35	  Say Y here to enable support APM status emulation using
36	  battery class devices.
37
38config ADC_BATTERY_HELPER
39	tristate
40
41config GENERIC_ADC_BATTERY
42	tristate "Generic battery support using IIO"
43	depends on IIO
44	help
45	  Say Y here to enable support for the generic battery driver
46	  which uses IIO framework to read adc.
47
48config IP5XXX_POWER
49	tristate "Injoinic IP5xxx power bank IC driver"
50	depends on I2C
51	select REGMAP_I2C
52	help
53	  Say Y to include support for Injoinic IP5xxx power bank ICs,
54	  which include a battery charger and a boost converter.
55
56config MAX8925_POWER
57	tristate "MAX8925 battery charger support"
58	depends on MFD_MAX8925
59	help
60	  Say Y here to enable support for the battery charger in the Maxim
61	  MAX8925 PMIC.
62
63config WM831X_BACKUP
64	tristate "WM831X backup battery charger support"
65	depends on MFD_WM831X
66	help
67	  Say Y here to enable support for the backup battery charger
68	  in the Wolfson Microelectronics WM831x PMICs.
69
70config WM831X_POWER
71	tristate "WM831X PMU support"
72	depends on MFD_WM831X
73	help
74	  Say Y here to enable support for the power management unit
75	  provided by Wolfson Microelectronics WM831x PMICs.
76
77config WM8350_POWER
78	tristate "WM8350 PMU support"
79	depends on MFD_WM8350
80	help
81	  Say Y here to enable support for the power management unit
82	  provided by the Wolfson Microelectronics WM8350 PMIC.
83
84config TEST_POWER
85	tristate "Test power driver"
86	help
87	  This driver is used for testing. It's safe to say M here.
88
89config BATTERY_88PM860X
90	tristate "Marvell 88PM860x battery driver"
91	depends on MFD_88PM860X
92	help
93	  Say Y here to enable battery monitor for Marvell 88PM860x chip.
94
95config CHARGER_ADP5061
96	tristate "ADP5061 battery charger driver"
97	depends on I2C
98	select REGMAP_I2C
99	help
100	  Say Y here to enable support for the ADP5061 standalone battery
101	  charger.
102
103	  This driver can be built as a module. If so, the module will be
104	  called adp5061.
105
106config BATTERY_ACT8945A
107	tristate "Active-semi ACT8945A charger driver"
108	depends on MFD_ACT8945A || COMPILE_TEST
109	help
110	  Say Y here to enable support for power supply provided by
111	  Active-semi ActivePath ACT8945A charger.
112
113config BATTERY_CHAGALL
114	tristate "Pegatron Chagall battery driver"
115	depends on I2C
116	depends on LEDS_CLASS
117	help
118	  Say Y to include support for Cypress CG7153AM IC based battery
119	  fuel gauge with custom firmware found in Pegatron Chagall based
120	  tablet line.
121
122	  This driver can also be built as a module. If so, the module will be
123	  called chagall-battery.
124
125config BATTERY_CPCAP
126	tristate "Motorola CPCAP PMIC battery driver"
127	depends on MFD_CPCAP && IIO
128	default MFD_CPCAP
129	help
130	  Say Y here to enable support for battery on Motorola
131	  phones and tablets such as droid 4.
132
133config BATTERY_CW2015
134	tristate "CW2015 Battery driver"
135	depends on I2C
136	select REGMAP_I2C
137	help
138	  Say Y here to enable support for the cellwise cw2015
139	  battery fuel gauge (used in the Pinebook Pro & others)
140
141	  This driver can also be built as a module. If so, the module will be
142	  called cw2015_battery.
143
144config BATTERY_DS2760
145	tristate "DS2760 battery driver (HP iPAQ & others)"
146	depends on W1
147	help
148	  Say Y here to enable support for batteries with ds2760 chip.
149
150config BATTERY_DS2780
151	tristate "DS2780 battery driver"
152	depends on HAS_IOMEM
153	select W1
154	select W1_SLAVE_DS2780
155	help
156	  Say Y here to enable support for batteries with ds2780 chip.
157
158config BATTERY_DS2781
159	tristate "DS2781 battery driver"
160	depends on HAS_IOMEM
161	select W1
162	select W1_SLAVE_DS2781
163	help
164	  If you enable this you will have the DS2781 battery driver support.
165
166	  The battery monitor chip is used in many batteries/devices
167	  as the one who is responsible for charging/discharging/monitoring
168	  Li+ batteries.
169
170	  If you are unsure, say N.
171
172config BATTERY_DS2782
173	tristate "DS2782/DS2786 standalone gas-gauge"
174	depends on I2C
175	help
176	  Say Y here to enable support for the DS2782/DS2786 standalone battery
177	  gas-gauge.
178
179config BATTERY_HUAWEI_GAOKUN
180	tristate "Huawei Matebook E Go power supply"
181	depends on EC_HUAWEI_GAOKUN
182	help
183	  This driver enables battery and adapter support on the Huawei Matebook
184	  E Go, which is a sc8280xp-based 2-in-1 tablet.
185
186	  To compile the driver as a module, choose M here: the module will be
187	  called huawei-gaokun-battery.
188
189config BATTERY_LEGO_EV3
190	tristate "LEGO MINDSTORMS EV3 battery"
191	depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
192	help
193	  Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
194
195config BATTERY_LENOVO_YOGA_C630
196	tristate "Lenovo Yoga C630 battery"
197	depends on EC_LENOVO_YOGA_C630
198	help
199	  This driver enables battery support on the Lenovo Yoga C630 laptop.
200
201	  To compile the driver as a module, choose M here: the module will be
202	  called lenovo_yoga_c630_battery.
203
204config BATTERY_PMU
205	tristate "Apple PMU battery"
206	depends on PPC32 && ADB_PMU
207	help
208	  Say Y here to expose battery information on Apple machines
209	  through the generic battery class.
210
211config BATTERY_QCOM_BATTMGR
212	tristate "Qualcomm PMIC GLINK battery manager support"
213	depends on QCOM_PMIC_GLINK
214	select AUXILIARY_BUS
215	help
216	  Say Y here to enable the Qualcomm PMIC GLINK power supply driver,
217	  which is used on modern Qualcomm platforms to provide battery and
218	  power supply information.
219
220config BATTERY_OLPC
221	tristate "One Laptop Per Child battery"
222	depends on OLPC_EC
223	help
224	  Say Y to enable support for the battery on the OLPC laptop.
225
226config BATTERY_SAMSUNG_SDI
227	bool "Samsung SDI batteries"
228	help
229	  Say Y to enable support for Samsung SDI battery data.
230	  These batteries are used in Samsung mobile phones.
231
232config BATTERY_COLLIE
233	tristate "Sharp SL-5500 (collie) battery"
234	depends on SA1100_COLLIE && MCP_UCB1200
235	help
236	  Say Y to enable support for the battery on the Sharp Zaurus
237	  SL-5500 (collie) models.
238
239config BATTERY_INGENIC
240	tristate "Ingenic JZ47xx SoCs battery driver"
241	depends on MIPS || COMPILE_TEST
242	depends on INGENIC_ADC
243	help
244	  Choose this option if you want to monitor battery status on
245	  Ingenic JZ47xx SoC based devices.
246
247	  This driver can also be built as a module. If so, the module will be
248	  called ingenic-battery.
249
250config BATTERY_INTEL_DC_TI
251	tristate "Intel Bay / Cherry Trail Dollar Cove TI battery driver"
252	depends on INTEL_SOC_PMIC_CHTDC_TI && INTEL_DC_TI_ADC && IIO && ACPI
253	select ADC_BATTERY_HELPER
254	help
255	  Choose this option if you want to monitor battery status on Intel
256	  Bay Trail / Cherry Trail tablets using the Dollar Cove TI PMIC's
257	  coulomb-counter as fuel-gauge.
258
259	  To compile this driver as a module, choose M here: the module will be
260	  called intel_dc_ti_battery.
261
262config BATTERY_IPAQ_MICRO
263	tristate "iPAQ Atmel Micro ASIC battery driver"
264	depends on MFD_IPAQ_MICRO
265	help
266	  Choose this option if you want to monitor battery status on
267	  Compaq/HP iPAQ h3100 and h3600.
268
269config BATTERY_WM97XX
270	bool "WM97xx generic battery driver"
271	depends on TOUCHSCREEN_WM97XX=y
272	help
273	  Say Y to enable support for battery measured by WM97xx aux port.
274
275config BATTERY_SBS
276	tristate "SBS Compliant gas gauge"
277	depends on I2C
278	help
279	  Say Y to include support for SBS battery driver for SBS-compliant
280	  gas gauges.
281
282config CHARGER_SBS
283	tristate "SBS Compliant charger"
284	depends on I2C
285	select REGMAP_I2C
286	help
287	  Say Y to include support for SBS compliant battery chargers.
288
289config MANAGER_SBS
290	tristate "Smart Battery System Manager"
291	depends on I2C && I2C_MUX && GPIOLIB
292	select I2C_SMBUS
293	help
294	  Say Y here to include support for Smart Battery System Manager
295	  ICs. The driver reports online and charging status via sysfs.
296	  It presents itself also as I2C mux which allows to bind
297	  smart battery driver to its ports.
298	  Supported is for example LTC1760.
299
300	  This driver can also be built as a module. If so, the module will be
301	  called sbs-manager.
302
303config BATTERY_BQ27XXX
304	tristate "BQ27xxx battery driver"
305	help
306	  Say Y here to enable support for batteries with BQ27xxx chips.
307
308config BATTERY_BQ27XXX_I2C
309	tristate "BQ27xxx I2C support"
310	depends on BATTERY_BQ27XXX
311	depends on I2C
312	default y
313	help
314	  Say Y here to enable support for batteries with BQ27xxx chips
315	  connected over an I2C bus.
316
317config BATTERY_BQ27XXX_HDQ
318	tristate "BQ27xxx HDQ support"
319	depends on BATTERY_BQ27XXX
320	depends on W1
321	default y
322	help
323	  Say Y here to enable support for batteries with BQ27xxx chips
324	  connected over an HDQ bus.
325
326config BATTERY_BQ27XXX_DT_UPDATES_NVM
327	bool "BQ27xxx support for update of NVM/flash data memory"
328	depends on BATTERY_BQ27XXX_I2C
329	help
330	  Say Y here to enable devicetree monitored-battery config to update
331	  NVM/flash data memory. Only enable this option for devices with a
332	  fuel gauge mounted on the circuit board, and a battery that cannot
333	  easily be replaced with one of a different type. Not for
334	  general-purpose kernels, as this can cause misconfiguration of a
335	  smart battery with embedded NVM/flash.
336
337config BATTERY_DA9030
338	tristate "DA9030 battery driver"
339	depends on PMIC_DA903X
340	help
341	  Say Y here to enable support for batteries charger integrated into
342	  DA9030 PMIC.
343
344config BATTERY_DA9052
345	tristate "Dialog DA9052 Battery"
346	depends on PMIC_DA9052
347	help
348	  Say Y here to enable support for batteries charger integrated into
349	  DA9052 PMIC.
350
351config CHARGER_DA9150
352	tristate "Dialog Semiconductor DA9150 Charger support"
353	depends on MFD_DA9150
354	depends on DA9150_GPADC
355	depends on IIO
356	help
357	  Say Y here to enable support for charger unit of the DA9150
358	  Integrated Charger & Fuel-Gauge IC.
359
360	  This driver can also be built as a module. If so, the module will be
361	  called da9150-charger.
362
363config BATTERY_DA9150
364	tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
365	depends on MFD_DA9150
366	help
367	  Say Y here to enable support for the Fuel-Gauge unit of the DA9150
368	  Integrated Charger & Fuel-Gauge IC
369
370	  This driver can also be built as a module. If so, the module will be
371	  called da9150-fg.
372
373config CHARGER_AXP20X
374	tristate "X-Powers AXP20X and AXP22X AC power supply driver"
375	depends on MFD_AXP20X
376	depends on AXP20X_ADC
377	depends on IIO
378	help
379	  Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
380	  power supply.
381
382	  This driver can also be built as a module. If so, the module will be
383	  called axp20x_ac_power.
384
385config BATTERY_AXP20X
386	tristate "X-Powers AXP20X battery driver"
387	depends on MFD_AXP20X
388	depends on AXP20X_ADC
389	depends on IIO
390	help
391	  Say Y here to enable support for X-Powers AXP20X PMICs' battery power
392	  supply.
393
394	  This driver can also be built as a module. If so, the module will be
395	  called axp20x_battery.
396
397config AXP20X_POWER
398	tristate "AXP20x power supply driver"
399	depends on MFD_AXP20X
400	depends on IIO
401	help
402	  This driver provides support for the power supply features of
403	  AXP20x PMIC.
404
405config AXP288_CHARGER
406	tristate "X-Powers AXP288 Charger"
407	depends on MFD_AXP20X && EXTCON_AXP288 && IOSF_MBI && ACPI
408	help
409	  Say yes here to have support X-Power AXP288 power management IC (PMIC)
410	  integrated charger.
411
412config AXP288_FUEL_GAUGE
413	tristate "X-Powers AXP288 Fuel Gauge"
414	depends on MFD_AXP20X && IIO && IOSF_MBI && ACPI
415	help
416	  Say yes here to have support for X-Power power management IC (PMIC)
417	  Fuel Gauge. The device provides battery statistics and status
418	  monitoring as well as alerts for battery over/under voltage and
419	  over/under temperature.
420
421config BATTERY_MAX17040
422	tristate "Maxim MAX17040/17041/17043 family Fuel Gauge"
423	depends on I2C && IIO
424	select REGMAP_I2C
425	help
426	  Driver supports Maxim fuel-gauge systems for lithium-ion (Li+)
427	  batteries used mainly in handheld and portable equipment.
428	  Supported devices: max17040, max17041, max17043, max17044, max17048,
429	  max17049, max17058, max17059, max77836.
430
431	  Driver supports reporting SOC (State of Charge, i.e capacity),
432	  voltage and configurable low-SOC wakeup interrupt.
433
434	  Driver can be build as a module (max17040_battery).
435
436config BATTERY_MAX17042
437	tristate "Maxim MAX17042/17047/17050/8997/8966 family Fuel Gauge"
438	depends on I2C
439	select REGMAP_I2C
440	help
441	  MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
442	  in handheld and portable equipment. The MAX17042 is configured
443	  to operate with a single lithium cell. MAX8997 and MAX8966 are
444	  multi-function devices that include fuel gauages that are compatible
445	  with MAX17042.
446	  Supported devices: max8966, max8997, max17042, max17047, max17050,
447	  max17055, max77693, max77849.
448
449	  Driver can be build as a module (max17042_battery).
450
451config BATTERY_MAX1720X
452	tristate "Maxim MAX17201/MAX17205 Fuel Gauge"
453	depends on I2C
454	select REGMAP_I2C
455	help
456	  MAX1720x is a family of fuel-gauge systems for lithium-ion (Li+)
457	  batteries in handheld and portable equipment. MAX17201 are
458	  configured to operate with a single lithium cell, the MAX17205
459	  can operate with multiple cells.
460
461	  Say Y to include support for the MAX17201/MAX17205 Fuel Gauges.
462
463config BATTERY_MAX1721X
464	tristate "MAX17211/MAX17215 standalone gas-gauge"
465	depends on W1
466	select REGMAP_W1
467	help
468	  MAX1721x is fuel-gauge systems for lithium-ion (Li+) batteries
469	  in handheld and portable equipment. MAX17211 used with single cell
470	  battery. MAX17215 designed for muticell battery. Both them have
471	  OneWire (W1) host interface.
472
473	  Say Y here to enable support for the MAX17211/MAX17215 standalone
474	  battery gas-gauge.
475
476config BATTERY_TWL4030_MADC
477	tristate "TWL4030 MADC battery driver"
478	depends on TWL4030_MADC
479	help
480	  Say Y here to enable this dumb driver for batteries managed
481	  through the TWL4030 MADC.
482
483config CHARGER_88PM860X
484	tristate "Marvell 88PM860x Charger driver"
485	depends on MFD_88PM860X && BATTERY_88PM860X
486	help
487	  Say Y here to enable charger for Marvell 88PM860x chip.
488
489config CHARGER_PF1550
490	tristate "NXP PF1550 battery charger driver"
491	depends on MFD_PF1550
492	help
493	  Say Y to enable support for the NXP PF1550 battery charger.
494	  The device is a single cell Li-Ion/Li-Polymer battery charger for
495	  portable application.
496
497	  This driver can also be built as a module. If so, the module will be
498	  called pf1550-charger.
499
500config BATTERY_RX51
501	tristate "Nokia RX-51 (N900) battery driver"
502	depends on TWL4030_MADC
503	help
504	  Say Y here to enable support for battery information on Nokia
505	  RX-51, also known as N900 tablet.
506
507config CHARGER_CPCAP
508	tristate "CPCAP PMIC Charger Driver"
509	depends on MFD_CPCAP && IIO
510	depends on OMAP_USB2 || (!OMAP_USB2 && COMPILE_TEST)
511	default MFD_CPCAP
512	help
513	  Say Y to enable support for CPCAP PMIC charger driver for Motorola
514	  mobile devices such as Droid 4.
515
516config CHARGER_ISP1704
517	tristate "ISP1704 USB Charger Detection"
518	depends on USB_PHY
519	depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
520	help
521	  Say Y to enable support for USB Charger Detection with
522	  ISP1707/ISP1704 USB transceivers.
523
524config CHARGER_MAX8903
525	tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
526	help
527	  Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
528	  The driver supports controlling charger-enable and current-limit
529	  pins based on the status of charger connections with interrupt
530	  handlers.
531
532config CHARGER_TWL4030
533	tristate "OMAP TWL4030 BCI charger driver"
534	depends on IIO && TWL4030_CORE
535	help
536	  Say Y here to enable support for TWL4030 Battery Charge Interface.
537
538config CHARGER_TWL6030
539	tristate "OMAP TWL6030 BCI charger driver"
540	depends on IIO && TWL4030_CORE
541	help
542	  Say Y here to enable support for TWL6030/6032 Battery Charge
543	  Interface.
544
545	  This driver can be build as a module. If so, the module will be
546	  called twl6030_charger.
547
548config CHARGER_LP8727
549	tristate "TI/National Semiconductor LP8727 charger driver"
550	depends on I2C
551	help
552	  Say Y here to enable support for LP8727 Charger Driver.
553
554config CHARGER_LP8788
555	tristate "TI LP8788 charger driver"
556	depends on MFD_LP8788
557	depends on LP8788_ADC
558	depends on IIO
559	help
560	  Say Y to enable support for the LP8788 linear charger.
561
562config CHARGER_GPIO
563	tristate "GPIO charger"
564	depends on GPIOLIB || COMPILE_TEST
565	help
566	  Say Y to include support for chargers which report their online status
567	  through a GPIO pin.
568
569	  This driver can be build as a module. If so, the module will be
570	  called gpio-charger.
571
572config CHARGER_MANAGER
573	tristate "Battery charger manager for multiple chargers"
574	depends on REGULATOR
575	select EXTCON
576	help
577	  Say Y to enable charger-manager support, which allows multiple
578	  chargers attached to a battery and multiple batteries attached to a
579	  system. The charger-manager also can monitor charging status in
580	  runtime and in suspend-to-RAM by waking up the system periodically
581	  with help of suspend_again support.
582
583config CHARGER_LT3651
584	tristate "Analog Devices LT3651 charger"
585	depends on GPIOLIB
586	help
587	  Say Y to include support for the Analog Devices (Linear Technology)
588	  LT3651 battery charger which reports its status via GPIO lines.
589
590config CHARGER_LTC4162L
591	tristate "LTC4162-L charger"
592	depends on I2C
593	select REGMAP_I2C
594	help
595	  Say Y to include support for the Analog Devices (Linear Technology)
596	  LTC4162-L battery charger connected to I2C.
597
598config CHARGER_MAX14577
599	tristate "Maxim MAX14577/77836 battery charger driver"
600	depends on MFD_MAX14577
601	help
602	  Say Y to enable support for the battery charger control sysfs and
603	  platform data of MAX14577/77836 MUICs.
604
605config CHARGER_DETECTOR_MAX14656
606	tristate "Maxim MAX14656 USB charger detector"
607	depends on I2C
608	depends on OF
609	help
610	  Say Y to enable support for the Maxim MAX14656 USB charger detector.
611	  The device is compliant with the USB Battery Charging Specification
612	  Revision 1.2 and can be found e.g. in Kindle 4/5th generation
613	  readers and certain LG devices.
614
615config CHARGER_MAX77650
616	tristate "Maxim MAX77650 battery charger driver"
617	depends on MFD_MAX77650
618	help
619	  Say Y to enable support for the battery charger control of MAX77650
620	  PMICs.
621
622config CHARGER_MAX77693
623	tristate "Maxim MAX77693 battery charger driver"
624	depends on MFD_MAX77693
625	help
626	  Say Y to enable support for the Maxim MAX77693 battery charger.
627
628config CHARGER_MAX77705
629	tristate "Maxim MAX77705 battery charger driver"
630	depends on MFD_MAX77705
631	help
632	  Say Y to enable support for the Maxim MAX77705 battery charger.
633
634config CHARGER_MAX77759
635	tristate "Maxim MAX77759 battery charger driver"
636	depends on MFD_MAX77759 && REGULATOR
637	default MFD_MAX77759
638	help
639	  Say M or Y here to enable the MAX77759 battery charger. MAX77759
640	  charger is a function of the MAX77759 PMIC. This is a dual input
641	  switch-mode charger. This driver supports buck and OTG boost modes.
642
643	  If built as a module, it will be called max77759_charger.
644
645config CHARGER_MAX77976
646	tristate "Maxim MAX77976 battery charger driver"
647	depends on I2C
648	select REGMAP_I2C
649	help
650	  The Maxim MAX77976 is a 19 Vin, 5.5A 1-Cell Li+ Battery Charger
651	  USB OTG support. It has an I2C interface for configuration.
652
653	  Say Y to enable support for the Maxim MAX77976 battery charger.
654	  This driver can also be built as a module. If so, the module will be
655	  called max77976_charger.
656
657config CHARGER_MAX8971
658	tristate "Maxim MAX8971 battery charger driver"
659	depends on I2C
660	depends on EXTCON || !EXTCON
661	select REGMAP_I2C
662	help
663	  The MAX8971 is a compact, high-frequency, high-efficiency switch-mode
664	  charger for a one-cell lithium-ion (Li+) battery. It delivers up to
665	  1.55A of current to the battery from inputs up to 7.5V and withstands
666	  transient inputs up to 22V.
667
668	  Say Y to enable support for the Maxim MAX8971 battery charger.
669	  This driver can also be built as a module. If so, the module will be
670	  called max8971_charger.
671
672config CHARGER_MAX8997
673	tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
674	depends on MFD_MAX8997 && REGULATOR_MAX8997
675	depends on EXTCON || !EXTCON
676	help
677	  Say Y to enable support for the battery charger control sysfs and
678	  platform data of MAX8997/LP3974 PMICs.
679
680config CHARGER_MAX8998
681	tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
682	depends on MFD_MAX8998 && REGULATOR_MAX8998
683	help
684	  Say Y to enable support for the battery charger control sysfs and
685	  platform data of MAX8998/LP3974 PMICs.
686
687config CHARGER_MP2629
688	tristate "Monolithic power system MP2629 Battery charger"
689	depends on MFD_MP2629
690	depends on MP2629_ADC
691	depends on IIO
692	help
693	  Select this option to enable support for Monolithic power system
694	  Battery charger. This driver provides Battery charger power management
695	  functions on the systems.
696
697config CHARGER_MT6360
698	tristate "Mediatek MT6360 Charger Driver"
699	depends on MFD_MT6360
700	depends on REGULATOR
701	select LINEAR_RANGES
702	help
703	  Say Y here to enable MT6360 Charger Part.
704	  The device supports High-Accuracy Voltage/Current Regulation,
705	  Average Input Current Regulation, Battery Temperature Sensing,
706	  Over-Temperature Protection, DPDM Detection for BC1.2.
707
708config CHARGER_MT6370
709	tristate "MediaTek MT6370 Charger Driver"
710	depends on MFD_MT6370
711	depends on REGULATOR
712	depends on IIO
713	select LINEAR_RANGES
714	help
715	  Say Y here to enable MT6370 Charger Part.
716	  The device supports High-Accuracy Voltage/Current Regulation,
717	  Average Input Current Regulation, Battery Temperature Sensing,
718	  Over-Temperature Protection, DPDM Detection for BC1.2.
719
720	  This driver can also be built as a module. If so, the module
721	  will be called "mt6370-charger".
722
723config CHARGER_QCOM_SMBB
724	tristate "Qualcomm Switch-Mode Battery Charger and Boost"
725	depends on MFD_SPMI_PMIC || COMPILE_TEST
726	depends on OF
727	depends on EXTCON
728	depends on REGULATOR
729	help
730	  Say Y to include support for the Switch-Mode Battery Charger and
731	  Boost (SMBB) hardware found in Qualcomm PM8941 PMICs.  The charger
732	  is an integrated, single-cell lithium-ion battery charger.  DT
733	  configuration is required for loading, see the devicetree
734	  documentation for more detail.  The base name for this driver is
735	  'pm8941_charger'.
736
737config BATTERY_PM8916_BMS_VM
738	tristate "Qualcomm PM8916 BMS-VM support"
739	depends on MFD_SPMI_PMIC || COMPILE_TEST
740	help
741	  Say Y to add support for Voltage Mode BMS block found in some
742	  Qualcomm PMICs such as PM8916. This hardware block provides
743	  battery voltage monitoring for the system.
744
745	  To compile this driver as module, choose M here: the
746	  module will be called pm8916_bms_vm.
747
748config CHARGER_PM8916_LBC
749	tristate "Qualcomm PM8916 Linear Battery Charger support"
750	depends on MFD_SPMI_PMIC || COMPILE_TEST
751	depends on EXTCON || !EXTCON
752	help
753	  Say Y here to add support for Linear Battery Charger block
754	  found in some Qualcomm PMICs such as PM8916. This hardware
755	  blokc provides simple CC/CV battery charger.
756
757	  To compile this driver as module, choose M here: the
758	  module will be called pm8916_lbc.
759
760config CHARGER_BQ2415X
761	tristate "TI BQ2415x battery charger driver"
762	depends on I2C
763	help
764	  Say Y to enable support for the TI BQ2415x battery charger
765	  PMICs.
766
767	  You'll need this driver to charge batteries on e.g. Nokia
768	  RX-51/N900.
769
770config CHARGER_BQ24190
771	tristate "TI BQ24190 battery charger driver"
772	depends on I2C
773	depends on EXTCON
774	depends on GPIOLIB || COMPILE_TEST
775	help
776	  Say Y to enable support for the TI BQ24190 battery charger.
777
778config CHARGER_BQ24257
779	tristate "TI BQ24250/24251/24257 battery charger driver"
780	depends on I2C
781	depends on GPIOLIB || COMPILE_TEST
782	select REGMAP_I2C
783	help
784	  Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
785	  chargers.
786
787config CHARGER_BQ24735
788	tristate "TI BQ24735 battery charger support"
789	depends on I2C
790	depends on GPIOLIB || COMPILE_TEST
791	help
792	  Say Y to enable support for the TI BQ24735 battery charger.
793
794config CHARGER_BQ2515X
795	tristate "TI BQ2515X battery charger family"
796	depends on I2C
797	depends on GPIOLIB || COMPILE_TEST
798	select REGMAP_I2C
799	help
800	  Say Y to enable support for the TI BQ2515X family of battery
801	  charging integrated circuits. The BQ2515X are highly integrated
802	  battery charge management ICs that integrate the most common
803	  functions for wearable devices, namely a charger, an output voltage
804	  rail, ADC for battery and system monitoring, and push-button
805	  controller.
806
807config CHARGER_BQ257XX
808	tristate "TI BQ257XX battery charger family"
809	depends on MFD_BQ257XX
810	help
811	  Say Y to enable support for the TI BQ257XX family of battery
812	  charging integrated circuits.
813
814config CHARGER_BQ25890
815	tristate "TI BQ25890 battery charger driver"
816	depends on I2C
817	depends on GPIOLIB || COMPILE_TEST
818	select REGMAP_I2C
819	help
820	  Say Y to enable support for the TI BQ25890 battery charger.
821
822config CHARGER_BQ25980
823	tristate "TI BQ25980 battery charger driver"
824	depends on I2C
825	depends on GPIOLIB || COMPILE_TEST
826	select REGMAP_I2C
827	help
828	  Say Y to enable support for the TI BQ25980, BQ25975 and BQ25960
829	  series of fast battery chargers.
830
831config CHARGER_BQ256XX
832	tristate "TI BQ256XX battery charger driver"
833	depends on I2C
834	depends on GPIOLIB || COMPILE_TEST
835	select REGMAP_I2C
836	help
837	  Say Y to enable support for the TI BQ256XX battery chargers. The
838	  BQ256XX family of devices are highly-integrated, switch-mode battery
839	  charge management and system power path management devices for single
840	  cell Li-ion and Li-polymer batteries.
841
842config CHARGER_RK817
843	tristate "Rockchip RK817 PMIC Battery Charger"
844	depends on MFD_RK8XX
845	help
846	  Say Y to include support for Rockchip RK817 Battery Charger.
847
848config CHARGER_SMB347
849	tristate "Summit Microelectronics SMB3XX Battery Charger"
850	depends on I2C
851	depends on REGULATOR
852	select REGMAP_I2C
853	help
854	  Say Y to include support for Summit Microelectronics SMB345,
855	  SMB347 or SMB358 Battery Charger.
856
857config CHARGER_TPS65090
858	tristate "TPS65090 battery charger driver"
859	depends on MFD_TPS65090
860	help
861	  Say Y here to enable support for battery charging with TPS65090
862	  PMIC chips.
863
864config CHARGER_TPS65217
865	tristate "TPS65217 battery charger driver"
866	depends on MFD_TPS65217
867	help
868	  Say Y here to enable support for battery charging with TPS65217
869	  PMIC chips.
870
871config BATTERY_GAUGE_LTC2941
872	tristate "LTC2941/LTC2943 Battery Gauge Driver"
873	depends on I2C
874	help
875	  Say Y here to include support for LTC2941 and LTC2943 Battery
876	  Gauge IC. The driver reports the charge count continuously, and
877	  measures the voltage and temperature every 10 seconds.
878
879config AB8500_BM
880	bool "AB8500 Battery Management Driver"
881	depends on AB8500_CORE && AB8500_GPADC && (IIO = y) && OF
882	select THERMAL
883	select THERMAL_OF
884	help
885	  Say Y to include support for AB8500 battery management.
886
887config BATTERY_GOLDFISH
888	tristate "Goldfish battery driver"
889	depends on HAS_IOMEM
890	help
891	  Say Y to enable support for the Goldfish battery and AC power
892	  driver. Originated in the Android Studio Emulator (goldfish) it is
893	  going to be used in other emulators.
894
895config BATTERY_RT5033
896	tristate "RT5033 fuel gauge support"
897	depends on I2C
898	select REGMAP_I2C
899	help
900	  This adds support for battery fuel gauge in Richtek RT5033 PMIC.
901	  The fuelgauge calculates and determines the battery state of charge
902	  according to battery open circuit voltage.
903
904config CHARGER_RT5033
905	tristate "RT5033 battery charger support"
906	depends on MFD_RT5033
907	depends on EXTCON || !EXTCON
908	help
909	  This adds support for battery charger in Richtek RT5033 PMIC.
910	  The device supports pre-charge mode, fast charge mode and
911	  constant voltage mode.
912
913config CHARGER_RT9455
914	tristate "Richtek RT9455 battery charger driver"
915	depends on I2C
916	depends on GPIOLIB || COMPILE_TEST
917	select REGMAP_I2C
918	help
919	  Say Y to enable support for Richtek RT9455 battery charger.
920
921config CHARGER_RT9467
922	tristate "Richtek RT9467 Battery Charger Driver"
923	depends on I2C && GPIOLIB && REGULATOR
924	select REGMAP_I2C
925	select REGMAP_IRQ
926	select LINEAR_RANGES
927	help
928	  Say Y here to enable RT9467 Battery Charger.
929	  RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger
930	  for portable applications. It integrates a synchronous PWM controller,
931	  power MOSFETs, input current sensing and regulation, high-accuracy
932	  voltage regulation, and charge termination. The charge current is
933	  regulated through integrated sensing resistors. It also features
934	  USB On-The-Go (OTG) support and integrates D+/D- pin for USB
935	  host/charging port detection.
936
937	  This driver can also be built as a module. If so, the module
938	  will be called "rt9467-charger".
939
940config CHARGER_RT9471
941	tristate "Richtek RT9471 battery charger driver"
942	depends on I2C && GPIOLIB && REGULATOR
943	select REGMAP_I2C
944	select REGMAP_IRQ
945	select LINEAR_RANGES
946	help
947	  This adds support for Richtek RT9471 battery charger. RT9471 is
948	  highly-integrated switch mode battery charger which is system power
949	  patch manageable device for single cell Li-Ion and Li-polymer battery.
950	  It can support BC12 detection on DPDM, and current and voltage
951	  regulation on both charging and boost mode.
952
953	  This driver can also be built as a module. If so, the module will be
954	  called rt9471.
955
956config CHARGER_RT9756
957	tristate "Richtek RT9756 smart cap divider charger driver"
958	depends on I2C
959	select REGMAP_I2C
960	select LINEAR_RANGES
961	help
962	  This adds support for Richtek RT9756 smart cap divider charger driver.
963	  It's a high efficiency and high charge current charger. the device
964	  integrates smart cap divider topology with 9-channel high speed
965	  ADCs that can provide input and output voltage, current and
966	  temperature monitoring.
967
968	  This driver can also be built as a module. If so, the module will be
969	  called rt9756.
970
971config CHARGER_CROS_USBPD
972	tristate "ChromeOS EC based USBPD charger"
973	depends on CROS_USBPD_NOTIFY
974	help
975	  Say Y here to enable ChromeOS EC based USBPD charger
976	  driver. This driver gets various bits of information about
977	  what is connected to USB PD ports from the EC and converts
978	  that into power_supply properties.
979
980config CHARGER_CROS_PCHG
981	tristate "ChromeOS EC based peripheral charger"
982	depends on MFD_CROS_EC_DEV
983	default MFD_CROS_EC_DEV
984	help
985	  Say Y here to enable ChromeOS EC based peripheral charge driver.
986	  This driver gets various information about the devices connected to
987	  the peripheral charge ports from the EC and converts that into
988	  power_supply properties.
989
990config CHARGER_CROS_CONTROL
991	tristate "ChromeOS EC based charge control"
992	depends on MFD_CROS_EC_DEV
993	depends on ACPI_BATTERY
994	default MFD_CROS_EC_DEV
995	help
996	  Say Y here to enable ChromeOS EC based battery charge control.
997	  This driver can manage charge thresholds and behaviour.
998
999	  This driver can also be built as a module. If so, the module will be
1000	  called cros_charge-control.
1001
1002config CHARGER_SC2731
1003	tristate "Spreadtrum SC2731 charger driver"
1004	depends on MFD_SC27XX_PMIC || COMPILE_TEST
1005	help
1006	  Say Y here to enable support for battery charging with SC2731
1007	  PMIC chips.
1008
1009config FUEL_GAUGE_SC27XX
1010	tristate "Spreadtrum SC27XX fuel gauge driver"
1011	depends on MFD_SC27XX_PMIC || COMPILE_TEST
1012	depends on IIO
1013	help
1014	  Say Y here to enable support for fuel gauge with SC27XX
1015	  PMIC chips.
1016
1017config FUEL_GAUGE_STC3117
1018       tristate "STMicroelectronics STC3117 fuel gauge driver"
1019       depends on CRC8
1020       depends on I2C
1021	select REGMAP_I2C
1022       help
1023         Say Y here to enable support for fuel gauge with STC3117
1024         chip.
1025
1026config CHARGER_UCS1002
1027	tristate "Microchip UCS1002 USB Port Power Controller"
1028	depends on I2C
1029	depends on OF
1030	depends on REGULATOR
1031	select REGMAP_I2C
1032	help
1033	  Say Y to enable support for Microchip UCS1002 Programmable
1034	  USB Port Power Controller with Charger Emulation.
1035
1036config CHARGER_BD71828
1037	tristate "Power-supply driver for ROHM BD71828 and BD71815 PMIC"
1038	depends on MFD_ROHM_BD71828
1039	help
1040	  Say Y here to enable support for charger and battery
1041	  in ROHM BD71815, BD71817, ROHM BD71828 power management
1042	  ICs. This driver gets various bits of information about battery
1043	  and charger states.
1044
1045config CHARGER_BD99954
1046	tristate "ROHM bd99954 charger driver"
1047	depends on I2C
1048	select LINEAR_RANGES
1049	help
1050	  Say Y here to enable support for getting battery and charger
1051	  information and altering charger configurations from the ROHM
1052	  BD99954 charger IC.
1053
1054config CHARGER_WILCO
1055	tristate "Wilco EC based charger for ChromeOS"
1056	depends on WILCO_EC
1057	help
1058	  Say Y here to enable control of the charging routines performed
1059	  by the Embedded Controller on the Chromebook named Wilco. Further
1060	  information can be found in
1061	  Documentation/ABI/testing/sysfs-class-power-wilco
1062
1063config RN5T618_POWER
1064	tristate "RN5T618 charger/fuel gauge support"
1065	depends on MFD_RN5T618
1066	depends on RN5T618_ADC
1067	depends on IIO
1068	help
1069	  Say Y here to have support for RN5T618 PMIC family fuel gauge and charger.
1070	  This driver can also be built as a module. If so, the module will be
1071	  called rn5t618_power.
1072
1073config BATTERY_ACER_A500
1074	tristate "Acer Iconia Tab A500 battery driver"
1075	depends on MFD_ACER_A500_EC
1076	help
1077	  Say Y to include support for Acer Iconia Tab A500 battery fuel gauge.
1078
1079config BATTERY_SURFACE
1080	tristate "Battery driver for 7th-generation Microsoft Surface devices"
1081	depends on SURFACE_AGGREGATOR_REGISTRY
1082	help
1083	  Driver for battery devices connected via/managed by the Surface System
1084	  Aggregator Module (SSAM).
1085
1086	  This driver provides battery-information and -status support for
1087	  Surface devices where said data is not exposed via the standard ACPI
1088	  devices. On those models (7th-generation), battery-information is
1089	  instead handled directly via SSAM client devices and this driver.
1090
1091	  Say M or Y here to include battery status support for 7th-generation
1092	  Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
1093	  Surface Book 3, and Surface Laptop Go.
1094
1095config CHARGER_SURFACE
1096	tristate "AC driver for 7th-generation Microsoft Surface devices"
1097	depends on SURFACE_AGGREGATOR_REGISTRY
1098	help
1099	  Driver for AC devices connected via/managed by the Surface System
1100	  Aggregator Module (SSAM).
1101
1102	  This driver provides AC-information and -status support for Surface
1103	  devices where said data is not exposed via the standard ACPI devices.
1104	  On those models (7th-generation), AC-information is instead handled
1105	  directly via a SSAM client device and this driver.
1106
1107	  Say M or Y here to include AC status support for 7th-generation
1108	  Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
1109	  Surface Book 3, and Surface Laptop Go.
1110
1111config BATTERY_UG3105
1112	tristate "uPI uG3105 battery monitor driver"
1113	depends on I2C
1114	select ADC_BATTERY_HELPER
1115	help
1116	  Battery monitor driver for the uPI uG3105 battery monitor.
1117
1118	  Note the uG3105 is not a full-featured autonomous fuel-gauge. Instead
1119	  it is expected to be use in combination with some always on
1120	  microcontroller reading its coulomb-counter before it can wrap
1121	  (it must be read every 400 seconds!).
1122
1123	  Since Linux does not monitor coulomb-counter changes while the
1124	  device is off or suspended, the functionality of this driver is
1125	  limited to reporting capacity only.
1126
1127config CHARGER_QCOM_SMB2
1128	tristate "Qualcomm PMI8998 PMIC charger driver"
1129	depends on MFD_SPMI_PMIC
1130	depends on IIO
1131	help
1132	  Say Y here to enable the Qualcomm PMIC Charger driver. This
1133	  adds support for the SMB2 switch mode battery charger found
1134	  in PMI8998 and related PMICs.
1135
1136config FUEL_GAUGE_MM8013
1137	tristate "Mitsumi MM8013 fuel gauge driver"
1138	depends on I2C
1139	select REGMAP_I2C
1140	help
1141	  Say Y here to enable the Mitsumi MM8013 fuel gauge driver.
1142	  It enables the monitoring of many battery parameters, including
1143	  the state of charge, temperature, cycle count, actual and design
1144	  capacity, etc.
1145
1146endif # POWER_SUPPLY
1147