Add Raspberry Pi PoE+ HAT support
[platform/kernel/linux-rpi.git] / drivers / power / supply / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 menuconfig 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
10 if POWER_SUPPLY
11
12 config 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
18 config 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 config RPI_POE_POWER
32         tristate "Raspberry Pi PoE+ HAT power supply driver"
33         depends on RASPBERRYPI_FIRMWARE
34         help
35           Say Y here to enable support for Raspberry Pi PoE+ (Power over Ethernet
36           Plus) HAT current measurement.
37
38 config APM_POWER
39         tristate "APM emulation for class batteries"
40         depends on APM_EMULATION
41         help
42           Say Y here to enable support APM status emulation using
43           battery class devices.
44
45 config GENERIC_ADC_BATTERY
46         tristate "Generic battery support using IIO"
47         depends on IIO
48         help
49           Say Y here to enable support for the generic battery driver
50           which uses IIO framework to read adc.
51
52 config IP5XXX_POWER
53         tristate "Injoinic IP5xxx power bank IC driver"
54         depends on I2C
55         select REGMAP_I2C
56         help
57           Say Y to include support for Injoinic IP5xxx power bank ICs,
58           which include a battery charger and a boost converter.
59
60 config MAX8925_POWER
61         tristate "MAX8925 battery charger support"
62         depends on MFD_MAX8925
63         help
64           Say Y here to enable support for the battery charger in the Maxim
65           MAX8925 PMIC.
66
67 config WM831X_BACKUP
68         tristate "WM831X backup battery charger support"
69         depends on MFD_WM831X
70         help
71           Say Y here to enable support for the backup battery charger
72           in the Wolfson Microelectronics WM831x PMICs.
73
74 config WM831X_POWER
75         tristate "WM831X PMU support"
76         depends on MFD_WM831X
77         help
78           Say Y here to enable support for the power management unit
79           provided by Wolfson Microelectronics WM831x PMICs.
80
81 config WM8350_POWER
82         tristate "WM8350 PMU support"
83         depends on MFD_WM8350
84         help
85           Say Y here to enable support for the power management unit
86           provided by the Wolfson Microelectronics WM8350 PMIC.
87
88 config TEST_POWER
89         tristate "Test power driver"
90         help
91           This driver is used for testing. It's safe to say M here.
92
93 config BATTERY_88PM860X
94         tristate "Marvell 88PM860x battery driver"
95         depends on MFD_88PM860X
96         help
97           Say Y here to enable battery monitor for Marvell 88PM860x chip.
98
99 config CHARGER_ADP5061
100         tristate "ADP5061 battery charger driver"
101         depends on I2C
102         select REGMAP_I2C
103         help
104           Say Y here to enable support for the ADP5061 standalone battery
105           charger.
106
107           This driver can be built as a module. If so, the module will be
108           called adp5061.
109
110 config BATTERY_ACT8945A
111         tristate "Active-semi ACT8945A charger driver"
112         depends on MFD_ACT8945A || COMPILE_TEST
113         help
114           Say Y here to enable support for power supply provided by
115           Active-semi ActivePath ACT8945A charger.
116
117 config BATTERY_CPCAP
118         tristate "Motorola CPCAP PMIC battery driver"
119         depends on MFD_CPCAP && IIO
120         default MFD_CPCAP
121         help
122           Say Y here to enable support for battery on Motorola
123           phones and tablets such as droid 4.
124
125 config BATTERY_CW2015
126         tristate "CW2015 Battery driver"
127         depends on I2C
128         select REGMAP_I2C
129         help
130           Say Y here to enable support for the cellwise cw2015
131           battery fuel gauge (used in the Pinebook Pro & others)
132
133           This driver can also be built as a module. If so, the module will be
134           called cw2015_battery.
135
136 config BATTERY_DS2760
137         tristate "DS2760 battery driver (HP iPAQ & others)"
138         depends on W1
139         help
140           Say Y here to enable support for batteries with ds2760 chip.
141
142 config BATTERY_DS2780
143         tristate "DS2780 battery driver"
144         depends on HAS_IOMEM
145         select W1
146         select W1_SLAVE_DS2780
147         help
148           Say Y here to enable support for batteries with ds2780 chip.
149
150 config BATTERY_DS2781
151         tristate "DS2781 battery driver"
152         depends on HAS_IOMEM
153         select W1
154         select W1_SLAVE_DS2781
155         help
156           If you enable this you will have the DS2781 battery driver support.
157
158           The battery monitor chip is used in many batteries/devices
159           as the one who is responsible for charging/discharging/monitoring
160           Li+ batteries.
161
162           If you are unsure, say N.
163
164 config BATTERY_DS2782
165         tristate "DS2782/DS2786 standalone gas-gauge"
166         depends on I2C
167         help
168           Say Y here to enable support for the DS2782/DS2786 standalone battery
169           gas-gauge.
170
171 config BATTERY_LEGO_EV3
172         tristate "LEGO MINDSTORMS EV3 battery"
173         depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
174         help
175           Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
176
177 config BATTERY_PMU
178         tristate "Apple PMU battery"
179         depends on PPC32 && ADB_PMU
180         help
181           Say Y here to expose battery information on Apple machines
182           through the generic battery class.
183
184 config BATTERY_QCOM_BATTMGR
185         tristate "Qualcomm PMIC GLINK battery manager support"
186         depends on QCOM_PMIC_GLINK
187         select AUXILIARY_BUS
188         help
189           Say Y here to enable the Qualcomm PMIC GLINK power supply driver,
190           which is used on modern Qualcomm platforms to provide battery and
191           power supply information.
192
193 config BATTERY_OLPC
194         tristate "One Laptop Per Child battery"
195         depends on OLPC_EC
196         help
197           Say Y to enable support for the battery on the OLPC laptop.
198
199 config BATTERY_SAMSUNG_SDI
200         bool "Samsung SDI batteries"
201         help
202           Say Y to enable support for Samsung SDI battery data.
203           These batteries are used in Samsung mobile phones.
204
205 config 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
212 config 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
223 config 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
230 config 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
236 config 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
243 config 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
250 config 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
264 config BATTERY_BQ27XXX
265         tristate "BQ27xxx battery driver"
266         help
267           Say Y here to enable support for batteries with BQ27xxx chips.
268
269 config 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
278 config 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
287 config 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
298 config 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
305 config 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
312 config 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
324 config 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
334 config 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
346 config 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
358 config 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
366 config 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
373 config 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
382 config 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
397 config 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
412 config 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
425 config BATTERY_TWL4030_MADC
426         tristate "TWL4030 MADC battery driver"
427         depends on TWL4030_MADC
428         help
429           Say Y here to enable this dumb driver for batteries managed
430           through the TWL4030 MADC.
431
432 config CHARGER_88PM860X
433         tristate "Marvell 88PM860x Charger driver"
434         depends on MFD_88PM860X && BATTERY_88PM860X
435         help
436           Say Y here to enable charger for Marvell 88PM860x chip.
437
438 config CHARGER_PCF50633
439         tristate "NXP PCF50633 MBC"
440         depends on MFD_PCF50633
441         help
442           Say Y to include support for NXP PCF50633 Main Battery Charger.
443
444 config BATTERY_RX51
445         tristate "Nokia RX-51 (N900) battery driver"
446         depends on TWL4030_MADC
447         help
448           Say Y here to enable support for battery information on Nokia
449           RX-51, also known as N900 tablet.
450
451 config CHARGER_CPCAP
452         tristate "CPCAP PMIC Charger Driver"
453         depends on MFD_CPCAP && IIO
454         depends on OMAP_USB2 || (!OMAP_USB2 && COMPILE_TEST)
455         default MFD_CPCAP
456         help
457           Say Y to enable support for CPCAP PMIC charger driver for Motorola
458           mobile devices such as Droid 4.
459
460 config CHARGER_ISP1704
461         tristate "ISP1704 USB Charger Detection"
462         depends on USB_PHY
463         depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
464         help
465           Say Y to enable support for USB Charger Detection with
466           ISP1707/ISP1704 USB transceivers.
467
468 config CHARGER_MAX8903
469         tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
470         help
471           Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
472           The driver supports controlling charger-enable and current-limit
473           pins based on the status of charger connections with interrupt
474           handlers.
475
476 config CHARGER_TWL4030
477         tristate "OMAP TWL4030 BCI charger driver"
478         depends on IIO && TWL4030_CORE
479         help
480           Say Y here to enable support for TWL4030 Battery Charge Interface.
481
482 config CHARGER_LP8727
483         tristate "TI/National Semiconductor LP8727 charger driver"
484         depends on I2C
485         help
486           Say Y here to enable support for LP8727 Charger Driver.
487
488 config CHARGER_LP8788
489         tristate "TI LP8788 charger driver"
490         depends on MFD_LP8788
491         depends on LP8788_ADC
492         depends on IIO
493         help
494           Say Y to enable support for the LP8788 linear charger.
495
496 config CHARGER_GPIO
497         tristate "GPIO charger"
498         depends on GPIOLIB || COMPILE_TEST
499         help
500           Say Y to include support for chargers which report their online status
501           through a GPIO pin.
502
503           This driver can be build as a module. If so, the module will be
504           called gpio-charger.
505
506 config CHARGER_MANAGER
507         tristate "Battery charger manager for multiple chargers"
508         depends on REGULATOR
509         select EXTCON
510         help
511           Say Y to enable charger-manager support, which allows multiple
512           chargers attached to a battery and multiple batteries attached to a
513           system. The charger-manager also can monitor charging status in
514           runtime and in suspend-to-RAM by waking up the system periodically
515           with help of suspend_again support.
516
517 config CHARGER_LT3651
518         tristate "Analog Devices LT3651 charger"
519         depends on GPIOLIB
520         help
521           Say Y to include support for the Analog Devices (Linear Technology)
522           LT3651 battery charger which reports its status via GPIO lines.
523
524 config CHARGER_LTC4162L
525         tristate "LTC4162-L charger"
526         depends on I2C
527         select REGMAP_I2C
528         help
529           Say Y to include support for the Analog Devices (Linear Technology)
530           LTC4162-L battery charger connected to I2C.
531
532 config CHARGER_MAX14577
533         tristate "Maxim MAX14577/77836 battery charger driver"
534         depends on MFD_MAX14577
535         help
536           Say Y to enable support for the battery charger control sysfs and
537           platform data of MAX14577/77836 MUICs.
538
539 config CHARGER_DETECTOR_MAX14656
540         tristate "Maxim MAX14656 USB charger detector"
541         depends on I2C
542         depends on OF
543         help
544           Say Y to enable support for the Maxim MAX14656 USB charger detector.
545           The device is compliant with the USB Battery Charging Specification
546           Revision 1.2 and can be found e.g. in Kindle 4/5th generation
547           readers and certain LG devices.
548
549 config CHARGER_MAX77650
550         tristate "Maxim MAX77650 battery charger driver"
551         depends on MFD_MAX77650
552         help
553           Say Y to enable support for the battery charger control of MAX77650
554           PMICs.
555
556 config CHARGER_MAX77693
557         tristate "Maxim MAX77693 battery charger driver"
558         depends on MFD_MAX77693
559         help
560           Say Y to enable support for the Maxim MAX77693 battery charger.
561
562 config CHARGER_MAX77976
563         tristate "Maxim MAX77976 battery charger driver"
564         depends on I2C
565         select REGMAP_I2C
566         help
567           The Maxim MAX77976 is a 19 Vin, 5.5A 1-Cell Li+ Battery Charger
568           USB OTG support. It has an I2C interface for configuration.
569
570           Say Y to enable support for the Maxim MAX77976 battery charger.
571           This driver can also be built as a module. If so, the module will be
572           called max77976_charger.
573
574 config CHARGER_MAX8997
575         tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
576         depends on MFD_MAX8997 && REGULATOR_MAX8997
577         depends on EXTCON || !EXTCON
578         help
579           Say Y to enable support for the battery charger control sysfs and
580           platform data of MAX8997/LP3974 PMICs.
581
582 config CHARGER_MAX8998
583         tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
584         depends on MFD_MAX8998 && REGULATOR_MAX8998
585         help
586           Say Y to enable support for the battery charger control sysfs and
587           platform data of MAX8998/LP3974 PMICs.
588
589 config CHARGER_MP2629
590         tristate "Monolithic power system MP2629 Battery charger"
591         depends on MFD_MP2629
592         depends on MP2629_ADC
593         depends on IIO
594         help
595           Select this option to enable support for Monolithic power system
596           Battery charger. This driver provides Battery charger power management
597           functions on the systems.
598
599 config CHARGER_MT6360
600         tristate "Mediatek MT6360 Charger Driver"
601         depends on MFD_MT6360
602         depends on REGULATOR
603         select LINEAR_RANGES
604         help
605           Say Y here to enable MT6360 Charger Part.
606           The device supports High-Accuracy Voltage/Current Regulation,
607           Average Input Current Regulation, Battery Temperature Sensing,
608           Over-Temperature Protection, DPDM Detection for BC1.2.
609
610 config CHARGER_MT6370
611         tristate "MediaTek MT6370 Charger Driver"
612         depends on MFD_MT6370
613         depends on REGULATOR
614         depends on IIO
615         select LINEAR_RANGES
616         help
617           Say Y here to enable MT6370 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
622           This driver can also be built as a module. If so, the module
623           will be called "mt6370-charger".
624
625 config CHARGER_QCOM_SMBB
626         tristate "Qualcomm Switch-Mode Battery Charger and Boost"
627         depends on MFD_SPMI_PMIC || COMPILE_TEST
628         depends on OF
629         depends on EXTCON
630         depends on REGULATOR
631         help
632           Say Y to include support for the Switch-Mode Battery Charger and
633           Boost (SMBB) hardware found in Qualcomm PM8941 PMICs.  The charger
634           is an integrated, single-cell lithium-ion battery charger.  DT
635           configuration is required for loading, see the devicetree
636           documentation for more detail.  The base name for this driver is
637           'pm8941_charger'.
638
639 config CHARGER_BQ2415X
640         tristate "TI BQ2415x battery charger driver"
641         depends on I2C
642         help
643           Say Y to enable support for the TI BQ2415x battery charger
644           PMICs.
645
646           You'll need this driver to charge batteries on e.g. Nokia
647           RX-51/N900.
648
649 config CHARGER_BQ24190
650         tristate "TI BQ24190 battery charger driver"
651         depends on I2C
652         depends on EXTCON
653         depends on GPIOLIB || COMPILE_TEST
654         help
655           Say Y to enable support for the TI BQ24190 battery charger.
656
657 config CHARGER_BQ24257
658         tristate "TI BQ24250/24251/24257 battery charger driver"
659         depends on I2C
660         depends on GPIOLIB || COMPILE_TEST
661         select REGMAP_I2C
662         help
663           Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
664           chargers.
665
666 config CHARGER_BQ24735
667         tristate "TI BQ24735 battery charger support"
668         depends on I2C
669         depends on GPIOLIB || COMPILE_TEST
670         help
671           Say Y to enable support for the TI BQ24735 battery charger.
672
673 config CHARGER_BQ2515X
674         tristate "TI BQ2515X battery charger family"
675         depends on I2C
676         depends on GPIOLIB || COMPILE_TEST
677         select REGMAP_I2C
678         help
679           Say Y to enable support for the TI BQ2515X family of battery
680           charging integrated circuits. The BQ2515X are highly integrated
681           battery charge management ICs that integrate the most common
682           functions for wearable devices, namely a charger, an output voltage
683           rail, ADC for battery and system monitoring, and push-button
684           controller.
685
686 config CHARGER_BQ25890
687         tristate "TI BQ25890 battery charger driver"
688         depends on I2C
689         depends on GPIOLIB || COMPILE_TEST
690         select REGMAP_I2C
691         help
692           Say Y to enable support for the TI BQ25890 battery charger.
693
694 config CHARGER_BQ25980
695         tristate "TI BQ25980 battery charger driver"
696         depends on I2C
697         depends on GPIOLIB || COMPILE_TEST
698         select REGMAP_I2C
699         help
700           Say Y to enable support for the TI BQ25980, BQ25975 and BQ25960
701           series of fast battery chargers.
702
703 config CHARGER_BQ256XX
704         tristate "TI BQ256XX battery charger driver"
705         depends on I2C
706         depends on GPIOLIB || COMPILE_TEST
707         select REGMAP_I2C
708         help
709           Say Y to enable support for the TI BQ256XX battery chargers. The
710           BQ256XX family of devices are highly-integrated, switch-mode battery
711           charge management and system power path management devices for single
712           cell Li-ion and Li-polymer batteries.
713
714 config CHARGER_RK817
715         tristate "Rockchip RK817 PMIC Battery Charger"
716         depends on MFD_RK8XX
717         help
718           Say Y to include support for Rockchip RK817 Battery Charger.
719
720 config CHARGER_SMB347
721         tristate "Summit Microelectronics SMB3XX Battery Charger"
722         depends on I2C
723         depends on REGULATOR
724         select REGMAP_I2C
725         help
726           Say Y to include support for Summit Microelectronics SMB345,
727           SMB347 or SMB358 Battery Charger.
728
729 config CHARGER_TPS65090
730         tristate "TPS65090 battery charger driver"
731         depends on MFD_TPS65090
732         help
733           Say Y here to enable support for battery charging with TPS65090
734           PMIC chips.
735
736 config CHARGER_TPS65217
737         tristate "TPS65217 battery charger driver"
738         depends on MFD_TPS65217
739         help
740           Say Y here to enable support for battery charging with TPS65217
741           PMIC chips.
742
743 config BATTERY_GAUGE_LTC2941
744         tristate "LTC2941/LTC2943 Battery Gauge Driver"
745         depends on I2C
746         help
747           Say Y here to include support for LTC2941 and LTC2943 Battery
748           Gauge IC. The driver reports the charge count continuously, and
749           measures the voltage and temperature every 10 seconds.
750
751 config AB8500_BM
752         bool "AB8500 Battery Management Driver"
753         depends on AB8500_CORE && AB8500_GPADC && (IIO = y) && OF
754         select THERMAL
755         select THERMAL_OF
756         help
757           Say Y to include support for AB8500 battery management.
758
759 config BATTERY_GOLDFISH
760         tristate "Goldfish battery driver"
761         depends on HAS_IOMEM
762         help
763           Say Y to enable support for the Goldfish battery and AC power
764           driver. Originated in the Android Studio Emulator (goldfish) it is
765           going to be used in other emulators.
766
767 config BATTERY_RT5033
768         tristate "RT5033 fuel gauge support"
769         depends on I2C
770         select REGMAP_I2C
771         help
772           This adds support for battery fuel gauge in Richtek RT5033 PMIC.
773           The fuelgauge calculates and determines the battery state of charge
774           according to battery open circuit voltage.
775
776 config CHARGER_RT5033
777         tristate "RT5033 battery charger support"
778         depends on MFD_RT5033
779         depends on EXTCON || !EXTCON
780         help
781           This adds support for battery charger in Richtek RT5033 PMIC.
782           The device supports pre-charge mode, fast charge mode and
783           constant voltage mode.
784
785 config CHARGER_RT9455
786         tristate "Richtek RT9455 battery charger driver"
787         depends on I2C
788         depends on GPIOLIB || COMPILE_TEST
789         select REGMAP_I2C
790         help
791           Say Y to enable support for Richtek RT9455 battery charger.
792
793 config CHARGER_RT9467
794         tristate "Richtek RT9467 Battery Charger Driver"
795         depends on I2C && GPIOLIB && REGULATOR
796         select REGMAP_I2C
797         select REGMAP_IRQ
798         select LINEAR_RANGES
799         help
800           Say Y here to enable RT9467 Battery Charger.
801           RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger
802           for portable applications. It integrates a synchronous PWM controller,
803           power MOSFETs, input current sensing and regulation, high-accuracy
804           voltage regulation, and charge termination. The charge current is
805           regulated through integrated sensing resistors. It also features
806           USB On-The-Go (OTG) support and integrates D+/D- pin for USB
807           host/charging port detection.
808
809           This driver can also be built as a module. If so, the module
810           will be called "rt9467-charger".
811
812 config CHARGER_RT9471
813         tristate "Richtek RT9471 battery charger driver"
814         depends on I2C && GPIOLIB && REGULATOR
815         select REGMAP_I2C
816         select REGMAP_IRQ
817         select LINEAR_RANGES
818         help
819           This adds support for Richtek RT9471 battery charger. RT9471 is
820           highly-integrated switch mode battery charger which is system power
821           patch manageable device for single cell Li-Ion and Li-polymer battery.
822           It can support BC12 detection on DPDM, and current and voltage
823           regulation on both charging and boost mode.
824
825           This driver can also be built as a module. If so, the module will be
826           called rt9471.
827
828 config CHARGER_CROS_USBPD
829         tristate "ChromeOS EC based USBPD charger"
830         depends on CROS_USBPD_NOTIFY
831         help
832           Say Y here to enable ChromeOS EC based USBPD charger
833           driver. This driver gets various bits of information about
834           what is connected to USB PD ports from the EC and converts
835           that into power_supply properties.
836
837 config CHARGER_CROS_PCHG
838         tristate "ChromeOS EC based peripheral charger"
839         depends on MFD_CROS_EC_DEV
840         default MFD_CROS_EC_DEV
841         help
842           Say Y here to enable ChromeOS EC based peripheral charge driver.
843           This driver gets various information about the devices connected to
844           the peripheral charge ports from the EC and converts that into
845           power_supply properties.
846
847 config CHARGER_SC2731
848         tristate "Spreadtrum SC2731 charger driver"
849         depends on MFD_SC27XX_PMIC || COMPILE_TEST
850         help
851           Say Y here to enable support for battery charging with SC2731
852           PMIC chips.
853
854 config FUEL_GAUGE_SC27XX
855         tristate "Spreadtrum SC27XX fuel gauge driver"
856         depends on MFD_SC27XX_PMIC || COMPILE_TEST
857         depends on IIO
858         help
859           Say Y here to enable support for fuel gauge with SC27XX
860           PMIC chips.
861
862 config CHARGER_UCS1002
863         tristate "Microchip UCS1002 USB Port Power Controller"
864         depends on I2C
865         depends on OF
866         depends on REGULATOR
867         select REGMAP_I2C
868         help
869           Say Y to enable support for Microchip UCS1002 Programmable
870           USB Port Power Controller with Charger Emulation.
871
872 config CHARGER_BD99954
873         tristate "ROHM bd99954 charger driver"
874         depends on I2C
875         select LINEAR_RANGES
876         help
877           Say Y here to enable support for getting battery and charger
878           information and altering charger configurations from the ROHM
879           BD99954 charger IC.
880
881 config CHARGER_WILCO
882         tristate "Wilco EC based charger for ChromeOS"
883         depends on WILCO_EC
884         help
885           Say Y here to enable control of the charging routines performed
886           by the Embedded Controller on the Chromebook named Wilco. Further
887           information can be found in
888           Documentation/ABI/testing/sysfs-class-power-wilco
889
890 config RN5T618_POWER
891         tristate "RN5T618 charger/fuel gauge support"
892         depends on MFD_RN5T618
893         depends on RN5T618_ADC
894         depends on IIO
895         help
896           Say Y here to have support for RN5T618 PMIC family fuel gauge and charger.
897           This driver can also be built as a module. If so, the module will be
898           called rn5t618_power.
899
900 config BATTERY_ACER_A500
901         tristate "Acer Iconia Tab A500 battery driver"
902         depends on MFD_ACER_A500_EC
903         help
904           Say Y to include support for Acer Iconia Tab A500 battery fuel gauge.
905
906 config BATTERY_SURFACE
907         tristate "Battery driver for 7th-generation Microsoft Surface devices"
908         depends on SURFACE_AGGREGATOR_REGISTRY
909         help
910           Driver for battery devices connected via/managed by the Surface System
911           Aggregator Module (SSAM).
912
913           This driver provides battery-information and -status support for
914           Surface devices where said data is not exposed via the standard ACPI
915           devices. On those models (7th-generation), battery-information is
916           instead handled directly via SSAM client devices and this driver.
917
918           Say M or Y here to include battery status support for 7th-generation
919           Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
920           Surface Book 3, and Surface Laptop Go.
921
922 config CHARGER_SURFACE
923         tristate "AC driver for 7th-generation Microsoft Surface devices"
924         depends on SURFACE_AGGREGATOR_REGISTRY
925         help
926           Driver for AC devices connected via/managed by the Surface System
927           Aggregator Module (SSAM).
928
929           This driver provides AC-information and -status support for Surface
930           devices where said data is not exposed via the standard ACPI devices.
931           On those models (7th-generation), AC-information is instead handled
932           directly via a SSAM client device and this driver.
933
934           Say M or Y here to include AC status support for 7th-generation
935           Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
936           Surface Book 3, and Surface Laptop Go.
937
938 config BATTERY_UG3105
939         tristate "uPI uG3105 battery monitor driver"
940         depends on I2C
941         help
942           Battery monitor driver for the uPI uG3105 battery monitor.
943
944           Note the uG3105 is not a full-featured autonomous fuel-gauge. Instead
945           it is expected to be use in combination with some always on
946           microcontroller reading its coulomb-counter before it can wrap
947           (it must be read every 400 seconds!).
948
949           Since Linux does not monitor coulomb-counter changes while the
950           device is off or suspended, the functionality of this driver is
951           limited to reporting capacity only.
952
953 config CHARGER_QCOM_SMB2
954         tristate "Qualcomm PMI8998 PMIC charger driver"
955         depends on MFD_SPMI_PMIC
956         depends on IIO
957         help
958           Say Y here to enable the Qualcomm PMIC Charger driver. This
959           adds support for the SMB2 switch mode battery charger found
960           in PMI8998 and related PMICs.
961
962 endif # POWER_SUPPLY