hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/power/supply/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 menuconfig POWER_SUPPLY
23 bool "Power supply class support"
34 help
....@@ -13,6 +14,20 @@
1314 help
1415 Say Y here to enable debugging messages for power supply class
1516 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
+
1631
1732 config PDA_POWER
1833 tristate "Generic PDA/phone power driver"
....@@ -58,10 +73,10 @@
5873 provided by Wolfson Microelectronics WM831x PMICs.
5974
6075 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
6580 provided by the Wolfson Microelectronics WM8350 PMIC.
6681
6782 config TEST_POWER
....@@ -101,6 +116,38 @@
101116 Say Y here to enable support for battery on Motorola
102117 phones and tablets such as droid 4.
103118
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
+
104151 config BATTERY_DS2760
105152 tristate "DS2760 battery driver (HP iPAQ & others)"
106153 depends on W1
....@@ -138,7 +185,7 @@
138185
139186 config BATTERY_LEGO_EV3
140187 tristate "LEGO MINDSTORMS EV3 battery"
141
- depends on OF && IIO && GPIOLIB
188
+ depends on OF && IIO && GPIOLIB && (ARCH_DAVINCI_DA850 || COMPILE_TEST)
142189 help
143190 Say Y here to enable support for the LEGO MINDSTORMS EV3 battery.
144191
....@@ -151,7 +198,7 @@
151198
152199 config BATTERY_OLPC
153200 tristate "One Laptop Per Child battery"
154
- depends on X86_32 && OLPC
201
+ depends on OLPC_EC
155202 help
156203 Say Y to enable support for the battery on the OLPC laptop.
157204
....@@ -169,6 +216,17 @@
169216 Say Y to enable support for the battery on the Sharp Zaurus
170217 SL-5500 (collie) models.
171218
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
+
172230 config BATTERY_IPAQ_MICRO
173231 tristate "iPAQ Atmel Micro ASIC battery driver"
174232 depends on MFD_IPAQ_MICRO
....@@ -183,16 +241,17 @@
183241 Say Y to enable support for battery measured by WM97xx aux port.
184242
185243 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
189247 Say Y to include support for SBS battery driver for SBS-compliant
190248 gas gauges.
191249
192250 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
196255 Say Y to include support for SBS compliant battery chargers.
197256
198257 config MANAGER_SBS
....@@ -330,10 +389,15 @@
330389 config BATTERY_MAX17040
331390 tristate "Maxim MAX17040 Fuel Gauge"
332391 depends on I2C
392
+ select REGMAP_I2C
333393 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.
337401
338402 config BATTERY_MAX17042
339403 tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge"
....@@ -389,18 +453,7 @@
389453 tristate "NXP PCF50633 MBC"
390454 depends on MFD_PCF50633
391455 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.
404457
405458 config BATTERY_RX51
406459 tristate "Nokia RX-51 (N900) battery driver"
....@@ -465,22 +518,44 @@
465518 called gpio-charger.
466519
467520 config CHARGER_MANAGER
468
- bool "Battery charger manager for multiple chargers"
521
+ tristate "Battery charger manager for multiple chargers"
469522 depends on REGULATOR
470523 select EXTCON
471524 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.
477530
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"
480540 depends on GPIOLIB
481541 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.
484559
485560 config CHARGER_MAX14577
486561 tristate "Maxim MAX14577/77836 battery charger driver"
....@@ -498,6 +573,13 @@
498573 The device is compliant with the USB Battery Charging Specification
499574 Revision 1.2 and can be found e.g. in Kindle 4/5th generation
500575 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.
501583
502584 config CHARGER_MAX77693
503585 tristate "Maxim MAX77693 battery charger driver"
....@@ -518,6 +600,16 @@
518600 help
519601 Say Y to enable support for the battery charger control sysfs and
520602 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.
521613
522614 config CHARGER_QCOM_SMBB
523615 tristate "Qualcomm Switch-Mode Battery Charger and Boost"
....@@ -567,6 +659,19 @@
567659 help
568660 Say Y to enable support for the TI BQ24735 battery charger.
569661
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
+
570675 config CHARGER_BQ25700
571676 tristate "TI BQ25700 battery charger driver"
572677 depends on REGMAP_I2C
....@@ -581,27 +686,36 @@
581686 help
582687 Say Y to enable support for the TI BQ25890 battery charger.
583688
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
+
584698 config CHARGER_SMB347
585
- tristate "Summit Microelectronics SMB347 Battery Charger"
699
+ tristate "Summit Microelectronics SMB3XX Battery Charger"
586700 depends on I2C
587701 select REGMAP_I2C
588702 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.
591705
592706 config CHARGER_TPS65090
593707 tristate "TPS65090 battery charger driver"
594708 depends on MFD_TPS65090
595709 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.
598712
599713 config CHARGER_TPS65217
600714 tristate "TPS65217 battery charger driver"
601715 depends on MFD_TPS65217
602716 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.
605719
606720 config BATTERY_GAUGE_LTC2941
607721 tristate "LTC2941/LTC2943 Battery Gauge Driver"
....@@ -613,7 +727,7 @@
613727
614728 config AB8500_BM
615729 bool "AB8500 Battery Management Driver"
616
- depends on AB8500_CORE && AB8500_GPADC
730
+ depends on AB8500_CORE && AB8500_GPADC && (IIO = y)
617731 help
618732 Say Y to include support for AB8500 battery management.
619733
....@@ -644,20 +758,72 @@
644758
645759 config CHARGER_CROS_USBPD
646760 tristate "ChromeOS EC based USBPD charger"
647
- depends on MFD_CROS_EC
648
- default n
761
+ depends on CROS_USBPD_NOTIFY
649762 help
650763 Say Y here to enable ChromeOS EC based USBPD charger
651764 driver. This driver gets various bits of information about
652765 what is connected to USB PD ports from the EC and converts
653766 that into power_supply properties.
654767
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
658771 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.
661827
662828 config BATTERY_RK816
663829 tristate "RK816 Battery driver"
....@@ -696,4 +862,12 @@
696862 If you say yes here you will get support for the charger of RK818 PMIC.
697863 This driver can give support for Rk818 Charger Interface.
698864
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
+
699873 endif # POWER_SUPPLY