xref: /openbmc/linux/drivers/power/supply/Kconfig (revision c4a7b9b5)
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
31
32config PDA_POWER
33	tristate "Generic PDA/phone power driver"
34	depends on !S390
35	help
36	  Say Y here to enable generic power driver for PDAs and phones with
37	  one or two external power supplies (AC/USB) connected to main and
38	  backup batteries, and optional builtin charger.
39
40config APM_POWER
41	tristate "APM emulation for class batteries"
42	depends on APM_EMULATION
43	help
44	  Say Y here to enable support APM status emulation using
45	  battery class devices.
46
47config GENERIC_ADC_BATTERY
48	tristate "Generic battery support using IIO"
49	depends on IIO
50	help
51	  Say Y here to enable support for the generic battery driver
52	  which uses IIO framework to read adc.
53
54config IP5XXX_POWER
55	tristate "Injoinic IP5xxx power bank IC driver"
56	depends on I2C
57	select REGMAP_I2C
58	help
59	  Say Y to include support for Injoinic IP5xxx power bank ICs,
60	  which include a battery charger and a boost converter.
61
62config MAX8925_POWER
63	tristate "MAX8925 battery charger support"
64	depends on MFD_MAX8925
65	help
66	  Say Y here to enable support for the battery charger in the Maxim
67	  MAX8925 PMIC.
68
69config WM831X_BACKUP
70	tristate "WM831X backup battery charger support"
71	depends on MFD_WM831X
72	help
73	  Say Y here to enable support for the backup battery charger
74	  in the Wolfson Microelectronics WM831x PMICs.
75
76config WM831X_POWER
77	tristate "WM831X PMU support"
78	depends on MFD_WM831X
79	help
80	  Say Y here to enable support for the power management unit
81	  provided by Wolfson Microelectronics WM831x PMICs.
82
83config WM8350_POWER
84	tristate "WM8350 PMU support"
85	depends on MFD_WM8350
86	help
87	  Say Y here to enable support for the power management unit
88	  provided by the Wolfson Microelectronics WM8350 PMIC.
89
90config TEST_POWER
91	tristate "Test power driver"
92	help
93	  This driver is used for testing. It's safe to say M here.
94
95config BATTERY_88PM860X
96	tristate "Marvell 88PM860x battery driver"
97	depends on MFD_88PM860X
98	help
99	  Say Y here to enable battery monitor for Marvell 88PM860x chip.
100
101config CHARGER_ADP5061
102	tristate "ADP5061 battery charger driver"
103	depends on I2C
104	select REGMAP_I2C
105	help
106	  Say Y here to enable support for the ADP5061 standalone battery
107	  charger.
108
109	  This driver can be built as a module. If so, the module will be
110	  called adp5061.
111
112config BATTERY_ACT8945A
113	tristate "Active-semi ACT8945A charger driver"
114	depends on MFD_ACT8945A || COMPILE_TEST
115	help
116	  Say Y here to enable support for power supply provided by
117	  Active-semi ActivePath ACT8945A charger.
118
119config BATTERY_CPCAP
120	tristate "Motorola CPCAP PMIC battery driver"
121	depends on MFD_CPCAP && IIO
122	default MFD_CPCAP
123	help
124	  Say Y here to enable support for battery on Motorola
125	  phones and tablets such as droid 4.
126
127config BATTERY_CW2015
128	tristate "CW2015 Battery driver"
129	depends on I2C
130	select REGMAP_I2C
131	help
132	  Say Y here to enable support for the cellwise cw2015
133	  battery fuel gauge (used in the Pinebook Pro & others)
134
135	  This driver can also be built as a module. If so, the module will be
136	  called cw2015_battery.
137
138config BATTERY_DS2760
139	tristate "DS2760 battery driver (HP iPAQ & others)"
140	depends on W1
141	help
142	  Say Y here to enable support for batteries with ds2760 chip.
143
144config BATTERY_DS2780
145	tristate "DS2780 battery driver"
146	depends on HAS_IOMEM
147	select W1
148	select W1_SLAVE_DS2780
149	help
150	  Say Y here to enable support for batteries with ds2780 chip.
151
152config BATTERY_DS2781
153	tristate "DS2781 battery driver"
154	depends on HAS_IOMEM
155	select W1
156	select W1_SLAVE_DS2781
157	help
158	  If you enable this you will have the DS2781 battery driver support.
159
160	  The battery monitor chip is used in many batteries/devices
161	  as the one who is responsible for charging/discharging/monitoring
162	  Li+ batteries.
163
164	  If you are unsure, say N.
165
166config BATTERY_DS2782
167	tristate "DS2782/DS2786 standalone gas-gauge"
168	depends on I2C
169	help
170	  Say Y here to enable support for the DS2782/DS2786 standalone battery
171	  gas-gauge.
172
173config BATTERY_LEGO_EV3
174	tristate "LEGO MINDSTORMS EV3 battery"
175	depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
176	help
177	  Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
178
179config BATTERY_PMU
180	tristate "Apple PMU battery"
181	depends on PPC32 && ADB_PMU
182	help
183	  Say Y here to expose battery information on Apple machines
184	  through the generic battery class.
185
186config BATTERY_OLPC
187	tristate "One Laptop Per Child battery"
188	depends on OLPC_EC
189	help
190	  Say Y to enable support for the battery on the OLPC laptop.
191
192config BATTERY_SAMSUNG_SDI
193	bool "Samsung SDI batteries"
194	help
195	  Say Y to enable support for Samsung SDI battery data.
196	  These batteries are used in Samsung mobile phones.
197
198config BATTERY_TOSA
199	tristate "Sharp SL-6000 (tosa) battery"
200	depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
201	help
202	  Say Y to enable support for the battery on the Sharp Zaurus
203	  SL-6000 (tosa) models.
204
205config BATTERY_COLLIE
206	tristate "Sharp SL-5500 (collie) battery"
207	depends on SA1100_COLLIE && MCP_UCB1200
208	help
209	  Say Y to enable support for the battery on the Sharp Zaurus
210	  SL-5500 (collie) models.
211
212config BATTERY_INGENIC
213	tristate "Ingenic JZ47xx SoCs battery driver"
214	depends on MIPS || COMPILE_TEST
215	depends on INGENIC_ADC
216	help
217	  Choose this option if you want to monitor battery status on
218	  Ingenic JZ47xx SoC based devices.
219
220	  This driver can also be built as a module. If so, the module will be
221	  called ingenic-battery.
222
223config BATTERY_IPAQ_MICRO
224	tristate "iPAQ Atmel Micro ASIC battery driver"
225	depends on MFD_IPAQ_MICRO
226	help
227	  Choose this option if you want to monitor battery status on
228	  Compaq/HP iPAQ h3100 and h3600.
229
230config BATTERY_WM97XX
231	bool "WM97xx generic battery driver"
232	depends on TOUCHSCREEN_WM97XX=y
233	help
234	  Say Y to enable support for battery measured by WM97xx aux port.
235
236config BATTERY_SBS
237	tristate "SBS Compliant gas gauge"
238	depends on I2C
239	help
240	  Say Y to include support for SBS battery driver for SBS-compliant
241	  gas gauges.
242
243config CHARGER_SBS
244	tristate "SBS Compliant charger"
245	depends on I2C
246	select REGMAP_I2C
247	help
248	  Say Y to include support for SBS compliant battery chargers.
249
250config MANAGER_SBS
251	tristate "Smart Battery System Manager"
252	depends on I2C && I2C_MUX && GPIOLIB
253	select I2C_SMBUS
254	help
255	  Say Y here to include support for Smart Battery System Manager
256	  ICs. The driver reports online and charging status via sysfs.
257	  It presents itself also as I2C mux which allows to bind
258	  smart battery driver to its ports.
259	  Supported is for example LTC1760.
260
261	  This driver can also be built as a module. If so, the module will be
262	  called sbs-manager.
263
264config BATTERY_BQ27XXX
265	tristate "BQ27xxx battery driver"
266	help
267	  Say Y here to enable support for batteries with BQ27xxx chips.
268
269config BATTERY_BQ27XXX_I2C
270	tristate "BQ27xxx I2C support"
271	depends on BATTERY_BQ27XXX
272	depends on I2C
273	default y
274	help
275	  Say Y here to enable support for batteries with BQ27xxx chips
276	  connected over an I2C bus.
277
278config BATTERY_BQ27XXX_HDQ
279	tristate "BQ27xxx HDQ support"
280	depends on BATTERY_BQ27XXX
281	depends on W1
282	default y
283	help
284	  Say Y here to enable support for batteries with BQ27xxx chips
285	  connected over an HDQ bus.
286
287config BATTERY_BQ27XXX_DT_UPDATES_NVM
288	bool "BQ27xxx support for update of NVM/flash data memory"
289	depends on BATTERY_BQ27XXX_I2C
290	help
291	  Say Y here to enable devicetree monitored-battery config to update
292	  NVM/flash data memory. Only enable this option for devices with a
293	  fuel gauge mounted on the circuit board, and a battery that cannot
294	  easily be replaced with one of a different type. Not for
295	  general-purpose kernels, as this can cause misconfiguration of a
296	  smart battery with embedded NVM/flash.
297
298config BATTERY_DA9030
299	tristate "DA9030 battery driver"
300	depends on PMIC_DA903X
301	help
302	  Say Y here to enable support for batteries charger integrated into
303	  DA9030 PMIC.
304
305config BATTERY_DA9052
306	tristate "Dialog DA9052 Battery"
307	depends on PMIC_DA9052
308	help
309	  Say Y here to enable support for batteries charger integrated into
310	  DA9052 PMIC.
311
312config CHARGER_DA9150
313	tristate "Dialog Semiconductor DA9150 Charger support"
314	depends on MFD_DA9150
315	depends on DA9150_GPADC
316	depends on IIO
317	help
318	  Say Y here to enable support for charger unit of the DA9150
319	  Integrated Charger & Fuel-Gauge IC.
320
321	  This driver can also be built as a module. If so, the module will be
322	  called da9150-charger.
323
324config BATTERY_DA9150
325	tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
326	depends on MFD_DA9150
327	help
328	  Say Y here to enable support for the Fuel-Gauge unit of the DA9150
329	  Integrated Charger & Fuel-Gauge IC
330
331	  This driver can also be built as a module. If so, the module will be
332	  called da9150-fg.
333
334config CHARGER_AXP20X
335	tristate "X-Powers AXP20X and AXP22X AC power supply driver"
336	depends on MFD_AXP20X
337	depends on AXP20X_ADC
338	depends on IIO
339	help
340	  Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
341	  power supply.
342
343	  This driver can also be built as a module. If so, the module will be
344	  called axp20x_ac_power.
345
346config BATTERY_AXP20X
347	tristate "X-Powers AXP20X battery driver"
348	depends on MFD_AXP20X
349	depends on AXP20X_ADC
350	depends on IIO
351	help
352	  Say Y here to enable support for X-Powers AXP20X PMICs' battery power
353	  supply.
354
355	  This driver can also be built as a module. If so, the module will be
356	  called axp20x_battery.
357
358config AXP20X_POWER
359	tristate "AXP20x power supply driver"
360	depends on MFD_AXP20X
361	depends on IIO
362	help
363	  This driver provides support for the power supply features of
364	  AXP20x PMIC.
365
366config AXP288_CHARGER
367	tristate "X-Powers AXP288 Charger"
368	depends on MFD_AXP20X && EXTCON_AXP288 && IOSF_MBI && ACPI
369	help
370	  Say yes here to have support X-Power AXP288 power management IC (PMIC)
371	  integrated charger.
372
373config AXP288_FUEL_GAUGE
374	tristate "X-Powers AXP288 Fuel Gauge"
375	depends on MFD_AXP20X && IIO && IOSF_MBI && ACPI
376	help
377	  Say yes here to have support for X-Power power management IC (PMIC)
378	  Fuel Gauge. The device provides battery statistics and status
379	  monitoring as well as alerts for battery over/under voltage and
380	  over/under temperature.
381
382config BATTERY_MAX17040
383	tristate "Maxim MAX17040/17041/17043 family Fuel Gauge"
384	depends on I2C
385	select REGMAP_I2C
386	help
387	  Driver supports Maxim fuel-gauge systems for lithium-ion (Li+)
388	  batteries used mainly in handheld and portable equipment.
389	  Supported devices: max17040, max17041, max17043, max17044, max17048,
390	  max17049, max17058, max17059, max77836.
391
392	  Driver supports reporting SOC (State of Charge, i.e capacity),
393	  voltage and configurable low-SOC wakeup interrupt.
394
395	  Driver can be build as a module (max17040_battery).
396
397config BATTERY_MAX17042
398	tristate "Maxim MAX17042/17047/17050/8997/8966 family Fuel Gauge"
399	depends on I2C
400	select REGMAP_I2C
401	help
402	  MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
403	  in handheld and portable equipment. The MAX17042 is configured
404	  to operate with a single lithium cell. MAX8997 and MAX8966 are
405	  multi-function devices that include fuel gauages that are compatible
406	  with MAX17042.
407	  Supported devices: max8966, max8997, max17042, max17047, max17050,
408	  max17055, max77693, max77849.
409
410	  Driver can be build as a module (max17042_battery).
411
412config BATTERY_MAX1721X
413	tristate "MAX17211/MAX17215 standalone gas-gauge"
414	depends on W1
415	select REGMAP_W1
416	help
417	  MAX1721x is fuel-gauge systems for lithium-ion (Li+) batteries
418	  in handheld and portable equipment. MAX17211 used with single cell
419	  battery. MAX17215 designed for muticell battery. Both them have
420	  OneWire (W1) host interface.
421
422	  Say Y here to enable support for the MAX17211/MAX17215 standalone
423	  battery gas-gauge.
424
425config BATTERY_Z2
426	tristate "Z2 battery driver"
427	depends on I2C && MACH_ZIPIT2
428	help
429	  Say Y to include support for the battery on the Zipit Z2.
430
431config BATTERY_S3C_ADC
432	tristate "Battery driver for Samsung ADC based monitoring"
433	depends on S3C_ADC
434	help
435	  Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
436
437config BATTERY_TWL4030_MADC
438	tristate "TWL4030 MADC battery driver"
439	depends on TWL4030_MADC
440	help
441	  Say Y here to enable this dumb driver for batteries managed
442	  through the TWL4030 MADC.
443
444config CHARGER_88PM860X
445	tristate "Marvell 88PM860x Charger driver"
446	depends on MFD_88PM860X && BATTERY_88PM860X
447	help
448	  Say Y here to enable charger for Marvell 88PM860x chip.
449
450config CHARGER_PCF50633
451	tristate "NXP PCF50633 MBC"
452	depends on MFD_PCF50633
453	help
454	  Say Y to include support for NXP PCF50633 Main Battery Charger.
455
456config BATTERY_RX51
457	tristate "Nokia RX-51 (N900) battery driver"
458	depends on TWL4030_MADC
459	help
460	  Say Y here to enable support for battery information on Nokia
461	  RX-51, also known as N900 tablet.
462
463config CHARGER_CPCAP
464	tristate "CPCAP PMIC Charger Driver"
465	depends on MFD_CPCAP && IIO
466	depends on OMAP_USB2 || (!OMAP_USB2 && COMPILE_TEST)
467	default MFD_CPCAP
468	help
469	  Say Y to enable support for CPCAP PMIC charger driver for Motorola
470	  mobile devices such as Droid 4.
471
472config CHARGER_ISP1704
473	tristate "ISP1704 USB Charger Detection"
474	depends on USB_PHY
475	depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
476	help
477	  Say Y to enable support for USB Charger Detection with
478	  ISP1707/ISP1704 USB transceivers.
479
480config CHARGER_MAX8903
481	tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
482	help
483	  Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
484	  The driver supports controlling charger-enable and current-limit
485	  pins based on the status of charger connections with interrupt
486	  handlers.
487
488config CHARGER_TWL4030
489	tristate "OMAP TWL4030 BCI charger driver"
490	depends on IIO && TWL4030_CORE
491	help
492	  Say Y here to enable support for TWL4030 Battery Charge Interface.
493
494config CHARGER_LP8727
495	tristate "TI/National Semiconductor LP8727 charger driver"
496	depends on I2C
497	help
498	  Say Y here to enable support for LP8727 Charger Driver.
499
500config CHARGER_LP8788
501	tristate "TI LP8788 charger driver"
502	depends on MFD_LP8788
503	depends on LP8788_ADC
504	depends on IIO
505	help
506	  Say Y to enable support for the LP8788 linear charger.
507
508config CHARGER_GPIO
509	tristate "GPIO charger"
510	depends on GPIOLIB || COMPILE_TEST
511	help
512	  Say Y to include support for chargers which report their online status
513	  through a GPIO pin.
514
515	  This driver can be build as a module. If so, the module will be
516	  called gpio-charger.
517
518config CHARGER_MANAGER
519	tristate "Battery charger manager for multiple chargers"
520	depends on REGULATOR
521	select EXTCON
522	help
523	  Say Y to enable charger-manager support, which allows multiple
524	  chargers attached to a battery and multiple batteries attached to a
525	  system. The charger-manager also can monitor charging status in
526	  runtime and in suspend-to-RAM by waking up the system periodically
527	  with help of suspend_again support.
528
529config CHARGER_LT3651
530	tristate "Analog Devices LT3651 charger"
531	depends on GPIOLIB
532	help
533	  Say Y to include support for the Analog Devices (Linear Technology)
534	  LT3651 battery charger which reports its status via GPIO lines.
535
536config CHARGER_LTC4162L
537	tristate "LTC4162-L charger"
538	depends on I2C
539	select REGMAP_I2C
540	help
541	  Say Y to include support for the Analog Devices (Linear Technology)
542	  LTC4162-L battery charger connected to I2C.
543
544config CHARGER_MAX14577
545	tristate "Maxim MAX14577/77836 battery charger driver"
546	depends on MFD_MAX14577
547	help
548	  Say Y to enable support for the battery charger control sysfs and
549	  platform data of MAX14577/77836 MUICs.
550
551config CHARGER_DETECTOR_MAX14656
552	tristate "Maxim MAX14656 USB charger detector"
553	depends on I2C
554	depends on OF
555	help
556	  Say Y to enable support for the Maxim MAX14656 USB charger detector.
557	  The device is compliant with the USB Battery Charging Specification
558	  Revision 1.2 and can be found e.g. in Kindle 4/5th generation
559	  readers and certain LG devices.
560
561config CHARGER_MAX77650
562	tristate "Maxim MAX77650 battery charger driver"
563	depends on MFD_MAX77650
564	help
565	  Say Y to enable support for the battery charger control of MAX77650
566	  PMICs.
567
568config CHARGER_MAX77693
569	tristate "Maxim MAX77693 battery charger driver"
570	depends on MFD_MAX77693
571	help
572	  Say Y to enable support for the Maxim MAX77693 battery charger.
573
574config CHARGER_MAX77976
575	tristate "Maxim MAX77976 battery charger driver"
576	depends on I2C
577	select REGMAP_I2C
578	help
579	  The Maxim MAX77976 is a 19 Vin, 5.5A 1-Cell Li+ Battery Charger
580	  USB OTG support. It has an I2C interface for configuration.
581
582	  Say Y to enable support for the Maxim MAX77976 battery charger.
583	  This driver can also be built as a module. If so, the module will be
584	  called max77976_charger.
585
586config CHARGER_MAX8997
587	tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
588	depends on MFD_MAX8997 && REGULATOR_MAX8997
589	depends on EXTCON || !EXTCON
590	help
591	  Say Y to enable support for the battery charger control sysfs and
592	  platform data of MAX8997/LP3974 PMICs.
593
594config CHARGER_MAX8998
595	tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
596	depends on MFD_MAX8998 && REGULATOR_MAX8998
597	help
598	  Say Y to enable support for the battery charger control sysfs and
599	  platform data of MAX8998/LP3974 PMICs.
600
601config CHARGER_MP2629
602	tristate "Monolithic power system MP2629 Battery charger"
603	depends on MFD_MP2629
604	depends on MP2629_ADC
605	depends on IIO
606	help
607	  Select this option to enable support for Monolithic power system
608	  Battery charger. This driver provides Battery charger power management
609	  functions on the systems.
610
611config CHARGER_MT6360
612	tristate "Mediatek MT6360 Charger Driver"
613	depends on MFD_MT6360
614	depends on REGULATOR
615	select LINEAR_RANGES
616	help
617	  Say Y here to enable MT6360 Charger Part.
618	  The device supports High-Accuracy Voltage/Current Regulation,
619	  Average Input Current Regulation, Battery Temperature Sensing,
620	  Over-Temperature Protection, DPDM Detection for BC1.2.
621
622config CHARGER_MT6370
623	tristate "MediaTek MT6370 Charger Driver"
624	depends on MFD_MT6370
625	depends on REGULATOR
626	depends on IIO
627	select LINEAR_RANGES
628	help
629	  Say Y here to enable MT6370 Charger Part.
630	  The device supports High-Accuracy Voltage/Current Regulation,
631	  Average Input Current Regulation, Battery Temperature Sensing,
632	  Over-Temperature Protection, DPDM Detection for BC1.2.
633
634	  This driver can also be built as a module. If so, the module
635	  will be called "mt6370-charger".
636
637config CHARGER_QCOM_SMBB
638	tristate "Qualcomm Switch-Mode Battery Charger and Boost"
639	depends on MFD_SPMI_PMIC || COMPILE_TEST
640	depends on OF
641	depends on EXTCON
642	depends on REGULATOR
643	help
644	  Say Y to include support for the Switch-Mode Battery Charger and
645	  Boost (SMBB) hardware found in Qualcomm PM8941 PMICs.  The charger
646	  is an integrated, single-cell lithium-ion battery charger.  DT
647	  configuration is required for loading, see the devicetree
648	  documentation for more detail.  The base name for this driver is
649	  'pm8941_charger'.
650
651config CHARGER_BQ2415X
652	tristate "TI BQ2415x battery charger driver"
653	depends on I2C
654	help
655	  Say Y to enable support for the TI BQ2415x battery charger
656	  PMICs.
657
658	  You'll need this driver to charge batteries on e.g. Nokia
659	  RX-51/N900.
660
661config CHARGER_BQ24190
662	tristate "TI BQ24190 battery charger driver"
663	depends on I2C
664	depends on EXTCON
665	depends on GPIOLIB || COMPILE_TEST
666	help
667	  Say Y to enable support for the TI BQ24190 battery charger.
668
669config CHARGER_BQ24257
670	tristate "TI BQ24250/24251/24257 battery charger driver"
671	depends on I2C
672	depends on GPIOLIB || COMPILE_TEST
673	select REGMAP_I2C
674	help
675	  Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
676	  chargers.
677
678config CHARGER_BQ24735
679	tristate "TI BQ24735 battery charger support"
680	depends on I2C
681	depends on GPIOLIB || COMPILE_TEST
682	help
683	  Say Y to enable support for the TI BQ24735 battery charger.
684
685config CHARGER_BQ2515X
686	tristate "TI BQ2515X battery charger family"
687	depends on I2C
688	depends on GPIOLIB || COMPILE_TEST
689	select REGMAP_I2C
690	help
691	  Say Y to enable support for the TI BQ2515X family of battery
692	  charging integrated circuits. The BQ2515X are highly integrated
693	  battery charge management ICs that integrate the most common
694	  functions for wearable devices, namely a charger, an output voltage
695	  rail, ADC for battery and system monitoring, and push-button
696	  controller.
697
698config CHARGER_BQ25890
699	tristate "TI BQ25890 battery charger driver"
700	depends on I2C
701	depends on GPIOLIB || COMPILE_TEST
702	select REGMAP_I2C
703	help
704	  Say Y to enable support for the TI BQ25890 battery charger.
705
706config CHARGER_BQ25980
707	tristate "TI BQ25980 battery charger driver"
708	depends on I2C
709	depends on GPIOLIB || COMPILE_TEST
710	select REGMAP_I2C
711	help
712	  Say Y to enable support for the TI BQ25980, BQ25975 and BQ25960
713	  series of fast battery chargers.
714
715config CHARGER_BQ256XX
716	tristate "TI BQ256XX battery charger driver"
717	depends on I2C
718	depends on GPIOLIB || COMPILE_TEST
719	select REGMAP_I2C
720	help
721	  Say Y to enable support for the TI BQ256XX battery chargers. The
722	  BQ256XX family of devices are highly-integrated, switch-mode battery
723	  charge management and system power path management devices for single
724	  cell Li-ion and Li-polymer batteries.
725
726config CHARGER_RK817
727	tristate "Rockchip RK817 PMIC Battery Charger"
728	depends on MFD_RK808
729	help
730	  Say Y to include support for Rockchip RK817 Battery Charger.
731
732config CHARGER_SMB347
733	tristate "Summit Microelectronics SMB3XX Battery Charger"
734	depends on I2C
735	depends on REGULATOR
736	select REGMAP_I2C
737	help
738	  Say Y to include support for Summit Microelectronics SMB345,
739	  SMB347 or SMB358 Battery Charger.
740
741config CHARGER_TPS65090
742	tristate "TPS65090 battery charger driver"
743	depends on MFD_TPS65090
744	help
745	  Say Y here to enable support for battery charging with TPS65090
746	  PMIC chips.
747
748config CHARGER_TPS65217
749	tristate "TPS65217 battery charger driver"
750	depends on MFD_TPS65217
751	help
752	  Say Y here to enable support for battery charging with TPS65217
753	  PMIC chips.
754
755config BATTERY_GAUGE_LTC2941
756	tristate "LTC2941/LTC2943 Battery Gauge Driver"
757	depends on I2C
758	help
759	  Say Y here to include support for LTC2941 and LTC2943 Battery
760	  Gauge IC. The driver reports the charge count continuously, and
761	  measures the voltage and temperature every 10 seconds.
762
763config AB8500_BM
764	bool "AB8500 Battery Management Driver"
765	depends on AB8500_CORE && AB8500_GPADC && (IIO = y) && OF
766	select THERMAL
767	select THERMAL_OF
768	help
769	  Say Y to include support for AB8500 battery management.
770
771config BATTERY_GOLDFISH
772	tristate "Goldfish battery driver"
773	depends on HAS_IOMEM
774	help
775	  Say Y to enable support for the Goldfish battery and AC power
776	  driver. Originated in the Android Studio Emulator (goldfish) it is
777	  going to be used in other emulators.
778
779config BATTERY_RT5033
780	tristate "RT5033 fuel gauge support"
781	depends on I2C
782	select REGMAP_I2C
783	help
784	  This adds support for battery fuel gauge in Richtek RT5033 PMIC.
785	  The fuelgauge calculates and determines the battery state of charge
786	  according to battery open circuit voltage.
787
788config CHARGER_RT9455
789	tristate "Richtek RT9455 battery charger driver"
790	depends on I2C
791	depends on GPIOLIB || COMPILE_TEST
792	select REGMAP_I2C
793	help
794	  Say Y to enable support for Richtek RT9455 battery charger.
795
796config CHARGER_CROS_USBPD
797	tristate "ChromeOS EC based USBPD charger"
798	depends on CROS_USBPD_NOTIFY
799	help
800	  Say Y here to enable ChromeOS EC based USBPD charger
801	  driver. This driver gets various bits of information about
802	  what is connected to USB PD ports from the EC and converts
803	  that into power_supply properties.
804
805config CHARGER_CROS_PCHG
806	tristate "ChromeOS EC based peripheral charger"
807	depends on MFD_CROS_EC_DEV
808	default MFD_CROS_EC_DEV
809	help
810	  Say Y here to enable ChromeOS EC based peripheral charge driver.
811	  This driver gets various information about the devices connected to
812	  the peripheral charge ports from the EC and converts that into
813	  power_supply properties.
814
815config CHARGER_SC2731
816	tristate "Spreadtrum SC2731 charger driver"
817	depends on MFD_SC27XX_PMIC || COMPILE_TEST
818	help
819	  Say Y here to enable support for battery charging with SC2731
820	  PMIC chips.
821
822config FUEL_GAUGE_SC27XX
823	tristate "Spreadtrum SC27XX fuel gauge driver"
824	depends on MFD_SC27XX_PMIC || COMPILE_TEST
825	depends on IIO
826	help
827	  Say Y here to enable support for fuel gauge with SC27XX
828	  PMIC chips.
829
830config CHARGER_UCS1002
831	tristate "Microchip UCS1002 USB Port Power Controller"
832	depends on I2C
833	depends on OF
834	depends on REGULATOR
835	select REGMAP_I2C
836	help
837	  Say Y to enable support for Microchip UCS1002 Programmable
838	  USB Port Power Controller with Charger Emulation.
839
840config CHARGER_BD99954
841	tristate "ROHM bd99954 charger driver"
842	depends on I2C
843	select LINEAR_RANGES
844	help
845	  Say Y here to enable support for getting battery and charger
846	  information and altering charger configurations from the ROHM
847	  BD99954 charger IC.
848
849config CHARGER_WILCO
850	tristate "Wilco EC based charger for ChromeOS"
851	depends on WILCO_EC
852	help
853	  Say Y here to enable control of the charging routines performed
854	  by the Embedded Controller on the Chromebook named Wilco. Further
855	  information can be found in
856	  Documentation/ABI/testing/sysfs-class-power-wilco
857
858config RN5T618_POWER
859	tristate "RN5T618 charger/fuel gauge support"
860	depends on MFD_RN5T618
861	depends on RN5T618_ADC
862	depends on IIO
863	help
864	  Say Y here to have support for RN5T618 PMIC family fuel gauge and charger.
865	  This driver can also be built as a module. If so, the module will be
866	  called rn5t618_power.
867
868config BATTERY_ACER_A500
869	tristate "Acer Iconia Tab A500 battery driver"
870	depends on MFD_ACER_A500_EC
871	help
872	  Say Y to include support for Acer Iconia Tab A500 battery fuel gauge.
873
874config BATTERY_SURFACE
875	tristate "Battery driver for 7th-generation Microsoft Surface devices"
876	depends on SURFACE_AGGREGATOR_REGISTRY
877	help
878	  Driver for battery devices connected via/managed by the Surface System
879	  Aggregator Module (SSAM).
880
881	  This driver provides battery-information and -status support for
882	  Surface devices where said data is not exposed via the standard ACPI
883	  devices. On those models (7th-generation), battery-information is
884	  instead handled directly via SSAM client devices and this driver.
885
886	  Say M or Y here to include battery status support for 7th-generation
887	  Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
888	  Surface Book 3, and Surface Laptop Go.
889
890config CHARGER_SURFACE
891	tristate "AC driver for 7th-generation Microsoft Surface devices"
892	depends on SURFACE_AGGREGATOR_REGISTRY
893	help
894	  Driver for AC devices connected via/managed by the Surface System
895	  Aggregator Module (SSAM).
896
897	  This driver provides AC-information and -status support for Surface
898	  devices where said data is not exposed via the standard ACPI devices.
899	  On those models (7th-generation), AC-information is instead handled
900	  directly via a SSAM client device and this driver.
901
902	  Say M or Y here to include AC status support for 7th-generation
903	  Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
904	  Surface Book 3, and Surface Laptop Go.
905
906config BATTERY_UG3105
907	tristate "uPI uG3105 battery monitor driver"
908	depends on I2C
909	help
910	  Battery monitor driver for the uPI uG3105 battery monitor.
911
912	  Note the uG3105 is not a full-featured autonomous fuel-gauge. Instead
913	  it is expected to be use in combination with some always on
914	  microcontroller reading its coulomb-counter before it can wrap
915	  (it must be read every 400 seconds!).
916
917	  Since Linux does not monitor coulomb-counter changes while the
918	  device is off or suspended, the functionality of this driver is
919	  limited to reporting capacity only.
920
921endif # POWER_SUPPLY
922