.. | .. |
---|
| 1 | +# SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | menuconfig POWER_SUPPLY |
---|
2 | 3 | bool "Power supply class support" |
---|
3 | 4 | help |
---|
.. | .. |
---|
13 | 14 | help |
---|
14 | 15 | Say Y here to enable debugging messages for power supply class |
---|
15 | 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 | + |
---|
16 | 31 | |
---|
17 | 32 | config PDA_POWER |
---|
18 | 33 | tristate "Generic PDA/phone power driver" |
---|
.. | .. |
---|
58 | 73 | provided by Wolfson Microelectronics WM831x PMICs. |
---|
59 | 74 | |
---|
60 | 75 | config WM8350_POWER |
---|
61 | | - tristate "WM8350 PMU support" |
---|
62 | | - depends on MFD_WM8350 |
---|
63 | | - help |
---|
64 | | - Say Y here to enable support for the power management unit |
---|
| 76 | + tristate "WM8350 PMU support" |
---|
| 77 | + depends on MFD_WM8350 |
---|
| 78 | + help |
---|
| 79 | + Say Y here to enable support for the power management unit |
---|
65 | 80 | provided by the Wolfson Microelectronics WM8350 PMIC. |
---|
66 | 81 | |
---|
67 | 82 | config TEST_POWER |
---|
.. | .. |
---|
101 | 116 | Say Y here to enable support for battery on Motorola |
---|
102 | 117 | phones and tablets such as droid 4. |
---|
103 | 118 | |
---|
| 119 | +config BATTERY_CW2015 |
---|
| 120 | + tristate "CW2015 Battery driver" |
---|
| 121 | + depends on I2C |
---|
| 122 | + select REGMAP_I2C |
---|
| 123 | + help |
---|
| 124 | + Say Y here to enable support for the cellwise cw2015 |
---|
| 125 | + battery fuel gauge (used in the Pinebook Pro & others) |
---|
| 126 | + |
---|
| 127 | + This driver can also be built as a module. If so, the module will be |
---|
| 128 | + called cw2015_battery. |
---|
| 129 | + |
---|
| 130 | +config BATTERY_CW2017 |
---|
| 131 | + tristate "CW2017 Battery driver" |
---|
| 132 | + depends on I2C |
---|
| 133 | + select REGMAP_I2C |
---|
| 134 | + help |
---|
| 135 | + Say Y here to enable support for the cellwise cw2017 |
---|
| 136 | + battery fuel gauge (used in the Pinebook Pro & others) |
---|
| 137 | + |
---|
| 138 | + This driver can also be built as a module. If so, the module will be |
---|
| 139 | + called cw2017_battery. |
---|
| 140 | + |
---|
| 141 | +config BATTERY_CW221X |
---|
| 142 | + tristate "CW221x Battery driver" |
---|
| 143 | + depends on I2C |
---|
| 144 | + select REGMAP_I2C |
---|
| 145 | + help |
---|
| 146 | + Say Y hereto enable support for the cellwise cw221x |
---|
| 147 | + battery fuel gauge (used in the Pinebook Pro & others) |
---|
| 148 | + This driver can also be built as a module. If so, the module will be |
---|
| 149 | + called cw221x_battery. |
---|
| 150 | + |
---|
104 | 151 | config BATTERY_DS2760 |
---|
105 | 152 | tristate "DS2760 battery driver (HP iPAQ & others)" |
---|
106 | 153 | depends on W1 |
---|
.. | .. |
---|
138 | 185 | |
---|
139 | 186 | config BATTERY_LEGO_EV3 |
---|
140 | 187 | tristate "LEGO MINDSTORMS EV3 battery" |
---|
141 | | - depends on OF && IIO && GPIOLIB |
---|
| 188 | + depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST) |
---|
142 | 189 | help |
---|
143 | 190 | Say Y here to enable support for the LEGO MINDSTORMS EV3 battery. |
---|
144 | 191 | |
---|
.. | .. |
---|
151 | 198 | |
---|
152 | 199 | config BATTERY_OLPC |
---|
153 | 200 | tristate "One Laptop Per Child battery" |
---|
154 | | - depends on X86_32 && OLPC |
---|
| 201 | + depends on OLPC_EC |
---|
155 | 202 | help |
---|
156 | 203 | Say Y to enable support for the battery on the OLPC laptop. |
---|
157 | 204 | |
---|
.. | .. |
---|
169 | 216 | Say Y to enable support for the battery on the Sharp Zaurus |
---|
170 | 217 | SL-5500 (collie) models. |
---|
171 | 218 | |
---|
| 219 | +config BATTERY_INGENIC |
---|
| 220 | + tristate "Ingenic JZ47xx SoCs battery driver" |
---|
| 221 | + depends on MIPS || COMPILE_TEST |
---|
| 222 | + depends on INGENIC_ADC |
---|
| 223 | + help |
---|
| 224 | + Choose this option if you want to monitor battery status on |
---|
| 225 | + Ingenic JZ47xx SoC based devices. |
---|
| 226 | + |
---|
| 227 | + This driver can also be built as a module. If so, the module will be |
---|
| 228 | + called ingenic-battery. |
---|
| 229 | + |
---|
172 | 230 | config BATTERY_IPAQ_MICRO |
---|
173 | 231 | tristate "iPAQ Atmel Micro ASIC battery driver" |
---|
174 | 232 | depends on MFD_IPAQ_MICRO |
---|
.. | .. |
---|
183 | 241 | Say Y to enable support for battery measured by WM97xx aux port. |
---|
184 | 242 | |
---|
185 | 243 | config BATTERY_SBS |
---|
186 | | - tristate "SBS Compliant gas gauge" |
---|
187 | | - depends on I2C |
---|
188 | | - help |
---|
| 244 | + tristate "SBS Compliant gas gauge" |
---|
| 245 | + depends on I2C |
---|
| 246 | + help |
---|
189 | 247 | Say Y to include support for SBS battery driver for SBS-compliant |
---|
190 | 248 | gas gauges. |
---|
191 | 249 | |
---|
192 | 250 | config CHARGER_SBS |
---|
193 | | - tristate "SBS Compliant charger" |
---|
194 | | - depends on I2C |
---|
195 | | - help |
---|
| 251 | + tristate "SBS Compliant charger" |
---|
| 252 | + depends on I2C |
---|
| 253 | + select REGMAP_I2C |
---|
| 254 | + help |
---|
196 | 255 | Say Y to include support for SBS compliant battery chargers. |
---|
197 | 256 | |
---|
198 | 257 | config MANAGER_SBS |
---|
.. | .. |
---|
330 | 389 | config BATTERY_MAX17040 |
---|
331 | 390 | tristate "Maxim MAX17040 Fuel Gauge" |
---|
332 | 391 | depends on I2C |
---|
| 392 | + select REGMAP_I2C |
---|
333 | 393 | help |
---|
334 | | - MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries |
---|
335 | | - in handheld and portable equipment. The MAX17040 is configured |
---|
336 | | - to operate with a single lithium cell |
---|
| 394 | + Maxim models with ModelGauge are fuel-gauge systems for lithium-ion |
---|
| 395 | + (Li+) batteries in handheld and portable equipment, including |
---|
| 396 | + max17040, max17041, max17043, max17044, max17048, max17049, max17058, |
---|
| 397 | + max17059. It is also included in some batteries like max77836. |
---|
| 398 | + |
---|
| 399 | + Driver supports reporting SOC (State of Charge, i.e capacity), |
---|
| 400 | + voltage and configurable low-SOC wakeup interrupt. |
---|
337 | 401 | |
---|
338 | 402 | config BATTERY_MAX17042 |
---|
339 | 403 | tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge" |
---|
.. | .. |
---|
389 | 453 | tristate "NXP PCF50633 MBC" |
---|
390 | 454 | depends on MFD_PCF50633 |
---|
391 | 455 | help |
---|
392 | | - Say Y to include support for NXP PCF50633 Main Battery Charger. |
---|
393 | | - |
---|
394 | | -config BATTERY_JZ4740 |
---|
395 | | - tristate "Ingenic JZ4740 battery" |
---|
396 | | - depends on MACH_JZ4740 |
---|
397 | | - depends on MFD_JZ4740_ADC |
---|
398 | | - help |
---|
399 | | - Say Y to enable support for the battery on Ingenic JZ4740 based |
---|
400 | | - boards. |
---|
401 | | - |
---|
402 | | - This driver can be build as a module. If so, the module will be |
---|
403 | | - called jz4740-battery. |
---|
| 456 | + Say Y to include support for NXP PCF50633 Main Battery Charger. |
---|
404 | 457 | |
---|
405 | 458 | config BATTERY_RX51 |
---|
406 | 459 | tristate "Nokia RX-51 (N900) battery driver" |
---|
.. | .. |
---|
465 | 518 | called gpio-charger. |
---|
466 | 519 | |
---|
467 | 520 | config CHARGER_MANAGER |
---|
468 | | - bool "Battery charger manager for multiple chargers" |
---|
| 521 | + tristate "Battery charger manager for multiple chargers" |
---|
469 | 522 | depends on REGULATOR |
---|
470 | 523 | select EXTCON |
---|
471 | 524 | help |
---|
472 | | - Say Y to enable charger-manager support, which allows multiple |
---|
473 | | - chargers attached to a battery and multiple batteries attached to a |
---|
474 | | - system. The charger-manager also can monitor charging status in |
---|
475 | | - runtime and in suspend-to-RAM by waking up the system periodically |
---|
476 | | - with help of suspend_again support. |
---|
| 525 | + Say Y to enable charger-manager support, which allows multiple |
---|
| 526 | + chargers attached to a battery and multiple batteries attached to a |
---|
| 527 | + system. The charger-manager also can monitor charging status in |
---|
| 528 | + runtime and in suspend-to-RAM by waking up the system periodically |
---|
| 529 | + with help of suspend_again support. |
---|
477 | 530 | |
---|
478 | | -config CHARGER_LTC3651 |
---|
479 | | - tristate "LTC3651 charger" |
---|
| 531 | +config ROCKCHIP_CHARGER_MANAGER |
---|
| 532 | + tristate "rockchip battery charger manager" |
---|
| 533 | + select EXTCON |
---|
| 534 | + help |
---|
| 535 | + Say Y to enable charger manager support, which allows multiple |
---|
| 536 | + chargers attached to a battery. |
---|
| 537 | + |
---|
| 538 | +config CHARGER_LT3651 |
---|
| 539 | + tristate "Analog Devices LT3651 charger" |
---|
480 | 540 | depends on GPIOLIB |
---|
481 | 541 | help |
---|
482 | | - Say Y to include support for the LTC3651 battery charger which reports |
---|
483 | | - its status via GPIO lines. |
---|
| 542 | + Say Y to include support for the Analog Devices (Linear Technology) |
---|
| 543 | + LT3651 battery charger which reports its status via GPIO lines. |
---|
| 544 | + |
---|
| 545 | +config CHARGER_SC8551 |
---|
| 546 | + tristate "SC8551 battery charger pump driver" |
---|
| 547 | + depends on I2C |
---|
| 548 | + select REGMAP_I2C |
---|
| 549 | + help |
---|
| 550 | + Say Y to enable support for the SC8551 battery pump charger. |
---|
| 551 | + |
---|
| 552 | +config CHARGER_SC89890 |
---|
| 553 | + tristate "SC89890 battery charger driver" |
---|
| 554 | + depends on I2C |
---|
| 555 | + depends on GPIOLIB || COMPILE_TEST |
---|
| 556 | + select REGMAP_I2C |
---|
| 557 | + help |
---|
| 558 | + Say Y to enable support for the SC89890 battery charger. |
---|
484 | 559 | |
---|
485 | 560 | config CHARGER_MAX14577 |
---|
486 | 561 | tristate "Maxim MAX14577/77836 battery charger driver" |
---|
.. | .. |
---|
498 | 573 | The device is compliant with the USB Battery Charging Specification |
---|
499 | 574 | Revision 1.2 and can be found e.g. in Kindle 4/5th generation |
---|
500 | 575 | readers and certain LG devices. |
---|
| 576 | + |
---|
| 577 | +config CHARGER_MAX77650 |
---|
| 578 | + tristate "Maxim MAX77650 battery charger driver" |
---|
| 579 | + depends on MFD_MAX77650 |
---|
| 580 | + help |
---|
| 581 | + Say Y to enable support for the battery charger control of MAX77650 |
---|
| 582 | + PMICs. |
---|
501 | 583 | |
---|
502 | 584 | config CHARGER_MAX77693 |
---|
503 | 585 | tristate "Maxim MAX77693 battery charger driver" |
---|
.. | .. |
---|
518 | 600 | help |
---|
519 | 601 | Say Y to enable support for the battery charger control sysfs and |
---|
520 | 602 | platform data of MAX8998/LP3974 PMICs. |
---|
| 603 | + |
---|
| 604 | +config CHARGER_MP2629 |
---|
| 605 | + tristate "Monolithic power system MP2629 Battery charger" |
---|
| 606 | + depends on MFD_MP2629 |
---|
| 607 | + depends on MP2629_ADC |
---|
| 608 | + depends on IIO |
---|
| 609 | + help |
---|
| 610 | + Select this option to enable support for Monolithic power system |
---|
| 611 | + Battery charger. This driver provides Battery charger power management |
---|
| 612 | + functions on the systems. |
---|
521 | 613 | |
---|
522 | 614 | config CHARGER_QCOM_SMBB |
---|
523 | 615 | tristate "Qualcomm Switch-Mode Battery Charger and Boost" |
---|
.. | .. |
---|
567 | 659 | help |
---|
568 | 660 | Say Y to enable support for the TI BQ24735 battery charger. |
---|
569 | 661 | |
---|
| 662 | +config CHARGER_BQ2515X |
---|
| 663 | + tristate "TI BQ2515X battery charger family" |
---|
| 664 | + depends on I2C |
---|
| 665 | + depends on GPIOLIB || COMPILE_TEST |
---|
| 666 | + select REGMAP_I2C |
---|
| 667 | + help |
---|
| 668 | + Say Y to enable support for the TI BQ2515X family of battery |
---|
| 669 | + charging integrated circuits. The BQ2515X are highly integrated |
---|
| 670 | + battery charge management ICs that integrate the most common |
---|
| 671 | + functions for wearable devices, namely a charger, an output voltage |
---|
| 672 | + rail, ADC for battery and system monitoring, and push-button |
---|
| 673 | + controller. |
---|
| 674 | + |
---|
570 | 675 | config CHARGER_BQ25700 |
---|
571 | 676 | tristate "TI BQ25700 battery charger driver" |
---|
572 | 677 | depends on REGMAP_I2C |
---|
.. | .. |
---|
581 | 686 | help |
---|
582 | 687 | Say Y to enable support for the TI BQ25890 battery charger. |
---|
583 | 688 | |
---|
| 689 | +config CHARGER_BQ25980 |
---|
| 690 | + tristate "TI BQ25980 battery charger driver" |
---|
| 691 | + depends on I2C |
---|
| 692 | + depends on GPIOLIB || COMPILE_TEST |
---|
| 693 | + select REGMAP_I2C |
---|
| 694 | + help |
---|
| 695 | + Say Y to enable support for the TI BQ25980, BQ25975 and BQ25960 |
---|
| 696 | + series of fast battery chargers. |
---|
| 697 | + |
---|
584 | 698 | config CHARGER_SMB347 |
---|
585 | | - tristate "Summit Microelectronics SMB347 Battery Charger" |
---|
| 699 | + tristate "Summit Microelectronics SMB3XX Battery Charger" |
---|
586 | 700 | depends on I2C |
---|
587 | 701 | select REGMAP_I2C |
---|
588 | 702 | help |
---|
589 | | - Say Y to include support for Summit Microelectronics SMB347 |
---|
590 | | - Battery Charger. |
---|
| 703 | + Say Y to include support for Summit Microelectronics SMB345, |
---|
| 704 | + SMB347 or SMB358 Battery Charger. |
---|
591 | 705 | |
---|
592 | 706 | config CHARGER_TPS65090 |
---|
593 | 707 | tristate "TPS65090 battery charger driver" |
---|
594 | 708 | depends on MFD_TPS65090 |
---|
595 | 709 | help |
---|
596 | | - Say Y here to enable support for battery charging with TPS65090 |
---|
597 | | - PMIC chips. |
---|
| 710 | + Say Y here to enable support for battery charging with TPS65090 |
---|
| 711 | + PMIC chips. |
---|
598 | 712 | |
---|
599 | 713 | config CHARGER_TPS65217 |
---|
600 | 714 | tristate "TPS65217 battery charger driver" |
---|
601 | 715 | depends on MFD_TPS65217 |
---|
602 | 716 | help |
---|
603 | | - Say Y here to enable support for battery charging with TPS65217 |
---|
604 | | - PMIC chips. |
---|
| 717 | + Say Y here to enable support for battery charging with TPS65217 |
---|
| 718 | + PMIC chips. |
---|
605 | 719 | |
---|
606 | 720 | config BATTERY_GAUGE_LTC2941 |
---|
607 | 721 | tristate "LTC2941/LTC2943 Battery Gauge Driver" |
---|
.. | .. |
---|
613 | 727 | |
---|
614 | 728 | config AB8500_BM |
---|
615 | 729 | bool "AB8500 Battery Management Driver" |
---|
616 | | - depends on AB8500_CORE && AB8500_GPADC |
---|
| 730 | + depends on AB8500_CORE && AB8500_GPADC && (IIO = y) |
---|
617 | 731 | help |
---|
618 | 732 | Say Y to include support for AB8500 battery management. |
---|
619 | 733 | |
---|
.. | .. |
---|
644 | 758 | |
---|
645 | 759 | config CHARGER_CROS_USBPD |
---|
646 | 760 | tristate "ChromeOS EC based USBPD charger" |
---|
647 | | - depends on MFD_CROS_EC |
---|
648 | | - default n |
---|
| 761 | + depends on CROS_USBPD_NOTIFY |
---|
649 | 762 | help |
---|
650 | 763 | Say Y here to enable ChromeOS EC based USBPD charger |
---|
651 | 764 | driver. This driver gets various bits of information about |
---|
652 | 765 | what is connected to USB PD ports from the EC and converts |
---|
653 | 766 | that into power_supply properties. |
---|
654 | 767 | |
---|
655 | | -config BATTERY_CW2015 |
---|
656 | | - bool "CW2015 Battery driver" |
---|
657 | | - default n |
---|
| 768 | +config CHARGER_SC2731 |
---|
| 769 | + tristate "Spreadtrum SC2731 charger driver" |
---|
| 770 | + depends on MFD_SC27XX_PMIC || COMPILE_TEST |
---|
658 | 771 | help |
---|
659 | | - If you say yes here you will get support for the battery of CW2015. |
---|
660 | | - This driver can give support for CW2015 Battery Interface. |
---|
| 772 | + Say Y here to enable support for battery charging with SC2731 |
---|
| 773 | + PMIC chips. |
---|
| 774 | + |
---|
| 775 | +config FUEL_GAUGE_SC27XX |
---|
| 776 | + tristate "Spreadtrum SC27XX fuel gauge driver" |
---|
| 777 | + depends on MFD_SC27XX_PMIC || COMPILE_TEST |
---|
| 778 | + depends on IIO |
---|
| 779 | + help |
---|
| 780 | + Say Y here to enable support for fuel gauge with SC27XX |
---|
| 781 | + PMIC chips. |
---|
| 782 | + |
---|
| 783 | +config CHARGER_UCS1002 |
---|
| 784 | + tristate "Microchip UCS1002 USB Port Power Controller" |
---|
| 785 | + depends on I2C |
---|
| 786 | + depends on OF |
---|
| 787 | + depends on REGULATOR |
---|
| 788 | + select REGMAP_I2C |
---|
| 789 | + help |
---|
| 790 | + Say Y to enable support for Microchip UCS1002 Programmable |
---|
| 791 | + USB Port Power Controller with Charger Emulation. |
---|
| 792 | + |
---|
| 793 | +config CHARGER_BD70528 |
---|
| 794 | + tristate "ROHM bd70528 charger driver" |
---|
| 795 | + depends on MFD_ROHM_BD70528 |
---|
| 796 | + select LINEAR_RANGES |
---|
| 797 | + help |
---|
| 798 | + Say Y here to enable support for getting battery status |
---|
| 799 | + information and altering charger configurations from charger |
---|
| 800 | + block of the ROHM BD70528 Power Management IC. |
---|
| 801 | + |
---|
| 802 | +config CHARGER_BD99954 |
---|
| 803 | + tristate "ROHM bd99954 charger driver" |
---|
| 804 | + depends on I2C |
---|
| 805 | + select LINEAR_RANGES |
---|
| 806 | + help |
---|
| 807 | + Say Y here to enable support for getting battery and charger |
---|
| 808 | + information and altering charger configurations from the ROHM |
---|
| 809 | + BD99954 charger IC. |
---|
| 810 | + |
---|
| 811 | +config CHARGER_WILCO |
---|
| 812 | + tristate "Wilco EC based charger for ChromeOS" |
---|
| 813 | + depends on WILCO_EC |
---|
| 814 | + help |
---|
| 815 | + Say Y here to enable control of the charging routines performed |
---|
| 816 | + by the Embedded Controller on the Chromebook named Wilco. Further |
---|
| 817 | + information can be found in |
---|
| 818 | + Documentation/ABI/testing/sysfs-class-power-wilco |
---|
| 819 | + |
---|
| 820 | +config RN5T618_POWER |
---|
| 821 | + tristate "RN5T618 charger/fuel gauge support" |
---|
| 822 | + depends on MFD_RN5T618 |
---|
| 823 | + help |
---|
| 824 | + Say Y here to have support for RN5T618 PMIC family fuel gauge and charger. |
---|
| 825 | + This driver can also be built as a module. If so, the module will be |
---|
| 826 | + called rn5t618_power. |
---|
661 | 827 | |
---|
662 | 828 | config BATTERY_RK816 |
---|
663 | 829 | tristate "RK816 Battery driver" |
---|
.. | .. |
---|
696 | 862 | If you say yes here you will get support for the charger of RK818 PMIC. |
---|
697 | 863 | This driver can give support for Rk818 Charger Interface. |
---|
698 | 864 | |
---|
| 865 | +config CHARGER_SGM41542 |
---|
| 866 | + tristate "SGM41542 charger driver" |
---|
| 867 | + depends on I2C |
---|
| 868 | + depends on GPIOLIB || COMPILE_TEST |
---|
| 869 | + select REGMAP_I2C |
---|
| 870 | + help |
---|
| 871 | + Say Y to enable support for the SGM41542 battery charger. |
---|
| 872 | + |
---|
699 | 873 | endif # POWER_SUPPLY |
---|