1 # SPDX-License-Identifier: GPL-2.0-only
2 menuconfig POWER_SUPPLY
3 bool "Power supply class support"
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
12 config POWER_SUPPLY_DEBUG
13 bool "Power supply debug"
15 Say Y here to enable debugging messages for power supply class
18 config POWER_SUPPLY_HWMON
20 prompt "Expose power supply sensors as hwmon device"
21 depends on HWMON=y || HWMON=POWER_SUPPLY
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.
28 Say 'Y' here if you want power supplies to
29 have hwmon sysfs interface too.
33 tristate "Generic PDA/phone power driver"
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.
41 tristate "APM emulation for class batteries"
42 depends on APM_EMULATION
44 Say Y here to enable support APM status emulation using
45 battery class devices.
47 config GENERIC_ADC_BATTERY
48 tristate "Generic battery support using IIO"
51 Say Y here to enable support for the generic battery driver
52 which uses IIO framework to read adc.
55 tristate "MAX8925 battery charger support"
56 depends on MFD_MAX8925
58 Say Y here to enable support for the battery charger in the Maxim
62 tristate "WM831X backup battery charger support"
65 Say Y here to enable support for the backup battery charger
66 in the Wolfson Microelectronics WM831x PMICs.
69 tristate "WM831X PMU support"
72 Say Y here to enable support for the power management unit
73 provided by Wolfson Microelectronics WM831x PMICs.
76 tristate "WM8350 PMU support"
79 Say Y here to enable support for the power management unit
80 provided by the Wolfson Microelectronics WM8350 PMIC.
83 tristate "Test power driver"
85 This driver is used for testing. It's safe to say M here.
87 config BATTERY_88PM860X
88 tristate "Marvell 88PM860x battery driver"
89 depends on MFD_88PM860X
91 Say Y here to enable battery monitor for Marvell 88PM860x chip.
93 config CHARGER_ADP5061
94 tristate "ADP5061 battery charger driver"
98 Say Y here to enable support for the ADP5061 standalone battery
101 This driver can be built as a module. If so, the module will be
104 config BATTERY_ACT8945A
105 tristate "Active-semi ACT8945A charger driver"
106 depends on MFD_ACT8945A || COMPILE_TEST
108 Say Y here to enable support for power supply provided by
109 Active-semi ActivePath ACT8945A charger.
112 tristate "Motorola CPCAP PMIC battery driver"
113 depends on MFD_CPCAP && IIO
116 Say Y here to enable support for battery on Motorola
117 phones and tablets such as droid 4.
119 config BATTERY_CW2015
120 tristate "CW2015 Battery driver"
124 Say Y here to enable support for the cellwise cw2015
125 battery fuel gauge (used in the Pinebook Pro & others)
127 This driver can also be built as a module. If so, the module will be
128 called cw2015_battery.
130 config BATTERY_DS2760
131 tristate "DS2760 battery driver (HP iPAQ & others)"
134 Say Y here to enable support for batteries with ds2760 chip.
136 config BATTERY_DS2780
137 tristate "DS2780 battery driver"
140 select W1_SLAVE_DS2780
142 Say Y here to enable support for batteries with ds2780 chip.
144 config BATTERY_DS2781
145 tristate "DS2781 battery driver"
148 select W1_SLAVE_DS2781
150 If you enable this you will have the DS2781 battery driver support.
152 The battery monitor chip is used in many batteries/devices
153 as the one who is responsible for charging/discharging/monitoring
156 If you are unsure, say N.
158 config BATTERY_DS2782
159 tristate "DS2782/DS2786 standalone gas-gauge"
162 Say Y here to enable support for the DS2782/DS2786 standalone battery
165 config BATTERY_LEGO_EV3
166 tristate "LEGO MINDSTORMS EV3 battery"
167 depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
169 Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
172 tristate "Apple PMU battery"
173 depends on PPC32 && ADB_PMU
175 Say Y here to expose battery information on Apple machines
176 through the generic battery class.
179 tristate "One Laptop Per Child battery"
182 Say Y to enable support for the battery on the OLPC laptop.
185 tristate "Sharp SL-6000 (tosa) battery"
186 depends on MACH_TOSA && MFD_TC6393XB && TOUCHSCREEN_WM97XX
188 Say Y to enable support for the battery on the Sharp Zaurus
189 SL-6000 (tosa) models.
191 config BATTERY_COLLIE
192 tristate "Sharp SL-5500 (collie) battery"
193 depends on SA1100_COLLIE && MCP_UCB1200
195 Say Y to enable support for the battery on the Sharp Zaurus
196 SL-5500 (collie) models.
198 config BATTERY_INGENIC
199 tristate "Ingenic JZ47xx SoCs battery driver"
200 depends on MIPS || COMPILE_TEST
201 depends on INGENIC_ADC
203 Choose this option if you want to monitor battery status on
204 Ingenic JZ47xx SoC based devices.
206 This driver can also be built as a module. If so, the module will be
207 called ingenic-battery.
209 config BATTERY_IPAQ_MICRO
210 tristate "iPAQ Atmel Micro ASIC battery driver"
211 depends on MFD_IPAQ_MICRO
213 Choose this option if you want to monitor battery status on
214 Compaq/HP iPAQ h3100 and h3600.
216 config BATTERY_WM97XX
217 bool "WM97xx generic battery driver"
218 depends on TOUCHSCREEN_WM97XX=y
220 Say Y to enable support for battery measured by WM97xx aux port.
223 tristate "SBS Compliant gas gauge"
226 Say Y to include support for SBS battery driver for SBS-compliant
230 tristate "SBS Compliant charger"
234 Say Y to include support for SBS compliant battery chargers.
237 tristate "Smart Battery System Manager"
238 depends on I2C && I2C_MUX && GPIOLIB
241 Say Y here to include support for Smart Battery System Manager
242 ICs. The driver reports online and charging status via sysfs.
243 It presents itself also as I2C mux which allows to bind
244 smart battery driver to its ports.
245 Supported is for example LTC1760.
247 This driver can also be built as a module. If so, the module will be
250 config BATTERY_BQ27XXX
251 tristate "BQ27xxx battery driver"
253 Say Y here to enable support for batteries with BQ27xxx chips.
255 config BATTERY_BQ27XXX_I2C
256 tristate "BQ27xxx I2C support"
257 depends on BATTERY_BQ27XXX
261 Say Y here to enable support for batteries with BQ27xxx chips
262 connected over an I2C bus.
264 config BATTERY_BQ27XXX_HDQ
265 tristate "BQ27xxx HDQ support"
266 depends on BATTERY_BQ27XXX
270 Say Y here to enable support for batteries with BQ27xxx chips
271 connected over an HDQ bus.
273 config BATTERY_BQ27XXX_DT_UPDATES_NVM
274 bool "BQ27xxx support for update of NVM/flash data memory"
275 depends on BATTERY_BQ27XXX_I2C
277 Say Y here to enable devicetree monitored-battery config to update
278 NVM/flash data memory. Only enable this option for devices with a
279 fuel gauge mounted on the circuit board, and a battery that cannot
280 easily be replaced with one of a different type. Not for
281 general-purpose kernels, as this can cause misconfiguration of a
282 smart battery with embedded NVM/flash.
284 config BATTERY_DA9030
285 tristate "DA9030 battery driver"
286 depends on PMIC_DA903X
288 Say Y here to enable support for batteries charger integrated into
291 config BATTERY_DA9052
292 tristate "Dialog DA9052 Battery"
293 depends on PMIC_DA9052
295 Say Y here to enable support for batteries charger integrated into
298 config CHARGER_DA9150
299 tristate "Dialog Semiconductor DA9150 Charger support"
300 depends on MFD_DA9150
301 depends on DA9150_GPADC
304 Say Y here to enable support for charger unit of the DA9150
305 Integrated Charger & Fuel-Gauge IC.
307 This driver can also be built as a module. If so, the module will be
308 called da9150-charger.
310 config BATTERY_DA9150
311 tristate "Dialog Semiconductor DA9150 Fuel Gauge support"
312 depends on MFD_DA9150
314 Say Y here to enable support for the Fuel-Gauge unit of the DA9150
315 Integrated Charger & Fuel-Gauge IC
317 This driver can also be built as a module. If so, the module will be
320 config CHARGER_AXP20X
321 tristate "X-Powers AXP20X and AXP22X AC power supply driver"
322 depends on MFD_AXP20X
323 depends on AXP20X_ADC
326 Say Y here to enable support for X-Powers AXP20X and AXP22X PMICs' AC
329 This driver can also be built as a module. If so, the module will be
330 called axp20x_ac_power.
332 config BATTERY_AXP20X
333 tristate "X-Powers AXP20X battery driver"
334 depends on MFD_AXP20X
335 depends on AXP20X_ADC
338 Say Y here to enable support for X-Powers AXP20X PMICs' battery power
341 This driver can also be built as a module. If so, the module will be
342 called axp20x_battery.
345 tristate "AXP20x power supply driver"
346 depends on MFD_AXP20X
349 This driver provides support for the power supply features of
352 config AXP288_CHARGER
353 tristate "X-Powers AXP288 Charger"
354 depends on MFD_AXP20X && EXTCON_AXP288
356 Say yes here to have support X-Power AXP288 power management IC (PMIC)
359 config AXP288_FUEL_GAUGE
360 tristate "X-Powers AXP288 Fuel Gauge"
361 depends on MFD_AXP20X && IIO
363 Say yes here to have support for X-Power power management IC (PMIC)
364 Fuel Gauge. The device provides battery statistics and status
365 monitoring as well as alerts for battery over/under voltage and
366 over/under temperature.
368 config BATTERY_MAX17040
369 tristate "Maxim MAX17040 Fuel Gauge"
373 Maxim models with ModelGauge are fuel-gauge systems for lithium-ion
374 (Li+) batteries in handheld and portable equipment, including
375 max17040, max17041, max17043, max17044, max17048, max17049, max17058,
376 max17059. It is also included in some batteries like max77836.
378 Driver supports reporting SOC (State of Charge, i.e capacity),
379 voltage and configurable low-SOC wakeup interrupt.
381 config BATTERY_MAX17042
382 tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge"
386 MAX17042 is fuel-gauge systems for lithium-ion (Li+) batteries
387 in handheld and portable equipment. The MAX17042 is configured
388 to operate with a single lithium cell. MAX8997 and MAX8966 are
389 multi-function devices that include fuel gauages that are compatible
390 with MAX17042. This driver also supports max17047/50 chips which are
391 improved version of max17042.
393 config BATTERY_MAX1721X
394 tristate "MAX17211/MAX17215 standalone gas-gauge"
398 MAX1721x is fuel-gauge systems for lithium-ion (Li+) batteries
399 in handheld and portable equipment. MAX17211 used with single cell
400 battery. MAX17215 designed for muticell battery. Both them have
401 OneWire (W1) host interface.
403 Say Y here to enable support for the MAX17211/MAX17215 standalone
407 tristate "Z2 battery driver"
408 depends on I2C && MACH_ZIPIT2
410 Say Y to include support for the battery on the Zipit Z2.
412 config BATTERY_S3C_ADC
413 tristate "Battery driver for Samsung ADC based monitoring"
416 Say Y here to enable support for iPAQ h1930/h1940/rx1950 battery
418 config BATTERY_TWL4030_MADC
419 tristate "TWL4030 MADC battery driver"
420 depends on TWL4030_MADC
422 Say Y here to enable this dumb driver for batteries managed
423 through the TWL4030 MADC.
425 config CHARGER_88PM860X
426 tristate "Marvell 88PM860x Charger driver"
427 depends on MFD_88PM860X && BATTERY_88PM860X
429 Say Y here to enable charger for Marvell 88PM860x chip.
431 config CHARGER_PCF50633
432 tristate "NXP PCF50633 MBC"
433 depends on MFD_PCF50633
435 Say Y to include support for NXP PCF50633 Main Battery Charger.
438 tristate "Nokia RX-51 (N900) battery driver"
439 depends on TWL4030_MADC
441 Say Y here to enable support for battery information on Nokia
442 RX-51, also known as N900 tablet.
445 tristate "CPCAP PMIC Charger Driver"
446 depends on MFD_CPCAP && IIO
447 depends on OMAP_USB2 || (!OMAP_USB2 && COMPILE_TEST)
450 Say Y to enable support for CPCAP PMIC charger driver for Motorola
451 mobile devices such as Droid 4.
453 config CHARGER_ISP1704
454 tristate "ISP1704 USB Charger Detection"
456 depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y'
458 Say Y to enable support for USB Charger Detection with
459 ISP1707/ISP1704 USB transceivers.
461 config CHARGER_MAX8903
462 tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
464 Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
465 The driver supports controlling charger-enable and current-limit
466 pins based on the status of charger connections with interrupt
469 config CHARGER_TWL4030
470 tristate "OMAP TWL4030 BCI charger driver"
471 depends on IIO && TWL4030_CORE
473 Say Y here to enable support for TWL4030 Battery Charge Interface.
475 config CHARGER_LP8727
476 tristate "TI/National Semiconductor LP8727 charger driver"
479 Say Y here to enable support for LP8727 Charger Driver.
481 config CHARGER_LP8788
482 tristate "TI LP8788 charger driver"
483 depends on MFD_LP8788
484 depends on LP8788_ADC
487 Say Y to enable support for the LP8788 linear charger.
490 tristate "GPIO charger"
491 depends on GPIOLIB || COMPILE_TEST
493 Say Y to include support for chargers which report their online status
496 This driver can be build as a module. If so, the module will be
499 config CHARGER_MANAGER
500 tristate "Battery charger manager for multiple chargers"
504 Say Y to enable charger-manager support, which allows multiple
505 chargers attached to a battery and multiple batteries attached to a
506 system. The charger-manager also can monitor charging status in
507 runtime and in suspend-to-RAM by waking up the system periodically
508 with help of suspend_again support.
510 config CHARGER_LT3651
511 tristate "Analog Devices LT3651 charger"
514 Say Y to include support for the Analog Devices (Linear Technology)
515 LT3651 battery charger which reports its status via GPIO lines.
517 config CHARGER_LTC4162L
518 tristate "LTC4162-L charger"
522 Say Y to include support for the Analog Devices (Linear Technology)
523 LTC4162-L battery charger connected to I2C.
525 config CHARGER_MAX14577
526 tristate "Maxim MAX14577/77836 battery charger driver"
527 depends on MFD_MAX14577
529 Say Y to enable support for the battery charger control sysfs and
530 platform data of MAX14577/77836 MUICs.
532 config CHARGER_DETECTOR_MAX14656
533 tristate "Maxim MAX14656 USB charger detector"
537 Say Y to enable support for the Maxim MAX14656 USB charger detector.
538 The device is compliant with the USB Battery Charging Specification
539 Revision 1.2 and can be found e.g. in Kindle 4/5th generation
540 readers and certain LG devices.
542 config CHARGER_MAX77650
543 tristate "Maxim MAX77650 battery charger driver"
544 depends on MFD_MAX77650
546 Say Y to enable support for the battery charger control of MAX77650
549 config CHARGER_MAX77693
550 tristate "Maxim MAX77693 battery charger driver"
551 depends on MFD_MAX77693
553 Say Y to enable support for the Maxim MAX77693 battery charger.
555 config CHARGER_MAX8997
556 tristate "Maxim MAX8997/MAX8966 PMIC battery charger driver"
557 depends on MFD_MAX8997 && REGULATOR_MAX8997
558 depends on EXTCON || !EXTCON
560 Say Y to enable support for the battery charger control sysfs and
561 platform data of MAX8997/LP3974 PMICs.
563 config CHARGER_MAX8998
564 tristate "Maxim MAX8998/LP3974 PMIC battery charger driver"
565 depends on MFD_MAX8998 && REGULATOR_MAX8998
567 Say Y to enable support for the battery charger control sysfs and
568 platform data of MAX8998/LP3974 PMICs.
570 config CHARGER_MP2629
571 tristate "Monolithic power system MP2629 Battery charger"
572 depends on MFD_MP2629
573 depends on MP2629_ADC
576 Select this option to enable support for Monolithic power system
577 Battery charger. This driver provides Battery charger power management
578 functions on the systems.
580 config CHARGER_QCOM_SMBB
581 tristate "Qualcomm Switch-Mode Battery Charger and Boost"
582 depends on MFD_SPMI_PMIC || COMPILE_TEST
587 Say Y to include support for the Switch-Mode Battery Charger and
588 Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger
589 is an integrated, single-cell lithium-ion battery charger. DT
590 configuration is required for loading, see the devicetree
591 documentation for more detail. The base name for this driver is
594 config CHARGER_BQ2415X
595 tristate "TI BQ2415x battery charger driver"
598 Say Y to enable support for the TI BQ2415x battery charger
601 You'll need this driver to charge batteries on e.g. Nokia
604 config CHARGER_BQ24190
605 tristate "TI BQ24190 battery charger driver"
608 depends on GPIOLIB || COMPILE_TEST
610 Say Y to enable support for the TI BQ24190 battery charger.
612 config CHARGER_BQ24257
613 tristate "TI BQ24250/24251/24257 battery charger driver"
615 depends on GPIOLIB || COMPILE_TEST
618 Say Y to enable support for the TI BQ24250, BQ24251, and BQ24257 battery
621 config CHARGER_BQ24735
622 tristate "TI BQ24735 battery charger support"
624 depends on GPIOLIB || COMPILE_TEST
626 Say Y to enable support for the TI BQ24735 battery charger.
628 config CHARGER_BQ2515X
629 tristate "TI BQ2515X battery charger family"
631 depends on GPIOLIB || COMPILE_TEST
634 Say Y to enable support for the TI BQ2515X family of battery
635 charging integrated circuits. The BQ2515X are highly integrated
636 battery charge management ICs that integrate the most common
637 functions for wearable devices, namely a charger, an output voltage
638 rail, ADC for battery and system monitoring, and push-button
641 config CHARGER_BQ25890
642 tristate "TI BQ25890 battery charger driver"
644 depends on GPIOLIB || COMPILE_TEST
647 Say Y to enable support for the TI BQ25890 battery charger.
649 config CHARGER_BQ25980
650 tristate "TI BQ25980 battery charger driver"
652 depends on GPIOLIB || COMPILE_TEST
655 Say Y to enable support for the TI BQ25980, BQ25975 and BQ25960
656 series of fast battery chargers.
658 config CHARGER_BQ256XX
659 tristate "TI BQ256XX battery charger driver"
661 depends on GPIOLIB || COMPILE_TEST
664 Say Y to enable support for the TI BQ256XX battery chargers. The
665 BQ256XX family of devices are highly-integrated, switch-mode battery
666 charge management and system power path management devices for single
667 cell Li-ion and Li-polymer batteries.
669 config CHARGER_SMB347
670 tristate "Summit Microelectronics SMB3XX Battery Charger"
674 Say Y to include support for Summit Microelectronics SMB345,
675 SMB347 or SMB358 Battery Charger.
677 config CHARGER_TPS65090
678 tristate "TPS65090 battery charger driver"
679 depends on MFD_TPS65090
681 Say Y here to enable support for battery charging with TPS65090
684 config CHARGER_TPS65217
685 tristate "TPS65217 battery charger driver"
686 depends on MFD_TPS65217
688 Say Y here to enable support for battery charging with TPS65217
691 config BATTERY_GAUGE_LTC2941
692 tristate "LTC2941/LTC2943 Battery Gauge Driver"
695 Say Y here to include support for LTC2941 and LTC2943 Battery
696 Gauge IC. The driver reports the charge count continuously, and
697 measures the voltage and temperature every 10 seconds.
700 bool "AB8500 Battery Management Driver"
701 depends on AB8500_CORE && AB8500_GPADC && (IIO = y) && OF
703 Say Y to include support for AB8500 battery management.
705 config BATTERY_GOLDFISH
706 tristate "Goldfish battery driver"
709 Say Y to enable support for the Goldfish battery and AC power
710 driver. Originated in the Android Studio Emulator (goldfish) it is
711 going to be used in other emulators.
713 config BATTERY_RT5033
714 tristate "RT5033 fuel gauge support"
718 This adds support for battery fuel gauge in Richtek RT5033 PMIC.
719 The fuelgauge calculates and determines the battery state of charge
720 according to battery open circuit voltage.
722 config CHARGER_RT9455
723 tristate "Richtek RT9455 battery charger driver"
725 depends on GPIOLIB || COMPILE_TEST
728 Say Y to enable support for Richtek RT9455 battery charger.
730 config CHARGER_CROS_USBPD
731 tristate "ChromeOS EC based USBPD charger"
732 depends on CROS_USBPD_NOTIFY
734 Say Y here to enable ChromeOS EC based USBPD charger
735 driver. This driver gets various bits of information about
736 what is connected to USB PD ports from the EC and converts
737 that into power_supply properties.
739 config CHARGER_SC2731
740 tristate "Spreadtrum SC2731 charger driver"
741 depends on MFD_SC27XX_PMIC || COMPILE_TEST
743 Say Y here to enable support for battery charging with SC2731
746 config FUEL_GAUGE_SC27XX
747 tristate "Spreadtrum SC27XX fuel gauge driver"
748 depends on MFD_SC27XX_PMIC || COMPILE_TEST
751 Say Y here to enable support for fuel gauge with SC27XX
754 config CHARGER_UCS1002
755 tristate "Microchip UCS1002 USB Port Power Controller"
761 Say Y to enable support for Microchip UCS1002 Programmable
762 USB Port Power Controller with Charger Emulation.
764 config CHARGER_BD99954
765 tristate "ROHM bd99954 charger driver"
769 Say Y here to enable support for getting battery and charger
770 information and altering charger configurations from the ROHM
774 tristate "Wilco EC based charger for ChromeOS"
777 Say Y here to enable control of the charging routines performed
778 by the Embedded Controller on the Chromebook named Wilco. Further
779 information can be found in
780 Documentation/ABI/testing/sysfs-class-power-wilco
783 tristate "RN5T618 charger/fuel gauge support"
784 depends on MFD_RN5T618
786 Say Y here to have support for RN5T618 PMIC family fuel gauge and charger.
787 This driver can also be built as a module. If so, the module will be
788 called rn5t618_power.
790 config BATTERY_ACER_A500
791 tristate "Acer Iconia Tab A500 battery driver"
792 depends on MFD_ACER_A500_EC
794 Say Y to include support for Acer Iconia Tab A500 battery fuel gauge.
796 config BATTERY_SURFACE
797 tristate "Battery driver for 7th-generation Microsoft Surface devices"
798 depends on SURFACE_AGGREGATOR_REGISTRY
800 Driver for battery devices connected via/managed by the Surface System
801 Aggregator Module (SSAM).
803 This driver provides battery-information and -status support for
804 Surface devices where said data is not exposed via the standard ACPI
805 devices. On those models (7th-generation), battery-information is
806 instead handled directly via SSAM client devices and this driver.
808 Say M or Y here to include battery status support for 7th-generation
809 Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
810 Surface Book 3, and Surface Laptop Go.
812 config CHARGER_SURFACE
813 tristate "AC driver for 7th-generation Microsoft Surface devices"
814 depends on SURFACE_AGGREGATOR_REGISTRY
816 Driver for AC devices connected via/managed by the Surface System
817 Aggregator Module (SSAM).
819 This driver provides AC-information and -status support for Surface
820 devices where said data is not exposed via the standard ACPI devices.
821 On those models (7th-generation), AC-information is instead handled
822 directly via a SSAM client device and this driver.
824 Say M or Y here to include AC status support for 7th-generation
825 Microsoft Surface devices, i.e. Surface Pro 7, Surface Laptop 3,
826 Surface Book 3, and Surface Laptop Go.