linux_dsm_epyc7002/Documentation/devicetree/bindings/power
Tony Lindgren d4ee021c41 power: supply: cpcap-charger: Limit voltage to 4.2V for battery
There have been some cases of droid4 battery bulging that seem to be
related to being left connected to the charger for several weeks.

It is suspected that the 4.35V charge voltage configured for the battery
is too much in the long run, so lets limit the charge voltage to 4.2V.
It could also be that the batteries are just getting old.

We don't really want to just change the charge voltage to 4.2V as Android
may have charged the battery to 4.35V as pointed out by Pavel Machek.

To add checks for battery voltage, the driver needs to understand the
voltage it's charging at, and also needs to better understand it's
charger state. Right now it only understands connect and disconnect,
while now we need to know also a connected state but not charging.

So let's add better charger state handling with help of chrgcurr2 interrupt
for detecting charge full and retry, and add a check for battery voltage
before we start charging. And then we finally can lower the charge voltage
to 4.2V.

Note that we've been using the same register values as the Android distros
on droid4, so it is suspected that the same problem also exists in Android.

Cc: Pavel Machek <pavel@ucw.cz>
Cc: Rob Herring <robh+dt@kernel.org>
Reported-by: Merlijn Wajer <merlijn@wizzup.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2019-10-20 19:10:39 +02:00
..
reset dt-bindings: mfd: mediatek: Add MT6323 Power Controller 2019-09-02 11:20:40 +01:00
supply power: supply: cpcap-charger: Limit voltage to 4.2V for battery 2019-10-20 19:10:39 +02:00
actions,owl-sps.txt dt-bindings: power: Add Actions Semi S900 SPS 2018-09-30 16:22:50 +02:00
amlogic,meson-ee-pwrc.yaml dt-bindings: power: add Amlogic Everything-Else power domains bindings 2019-08-29 16:05:01 -07:00
amlogic,meson-gx-pwrc.txt dt-bindings: power: amlogic, meson-gx-pwrc: Add G12A compatible 2019-04-15 15:24:52 -07:00
domain-idle-state.txt PM / Domains: Fix compatible for domain idle state 2016-12-06 22:05:38 +01:00
fsl,imx-gpc.txt docs: Fix more broken references 2018-06-15 18:11:26 -03:00
fsl,imx-gpcv2.txt soc: imx: gpcv2: handle reset clocks 2019-01-11 15:12:59 +08:00
mti,mips-cpc.txt dt-bindings: Document mti,mips-cpc binding 2018-02-08 14:02:01 +00:00
pd-samsung.txt soc: samsung: pm_domains: Deprecate support for clocks 2018-04-17 17:25:42 +02:00
power_domain.txt Merge branches 'pm-core', 'pm-domains', 'pm-sleep', 'acpi-pm' and 'pm-cpuidle' 2018-08-14 09:48:10 +02:00
power-controller.txt dt-bindings: Remove "status" from examples 2017-09-05 10:03:06 -05:00
qcom,rpmpd.txt dt-bindings: power: Add rpm power domain bindings for msm8998 2019-05-29 21:40:43 -05:00
renesas,apmu.txt dt-bindings: apmu: Document r8a7744 support 2018-09-24 17:21:12 +02:00
renesas,rcar-sysc.txt dt-bindings: power: rcar-sysc: Document r8a7744 SYSC binding 2018-09-17 10:29:13 +02:00
renesas,sysc-rmobile.txt PM / Domains: R-Mobile SYSC: Document R-Mobile APE6 (r8a73a4) binding 2015-02-24 06:38:27 +09:00
rockchip-io-domain.txt PM / AVS: rockchip-io: add io selectors and supplies for PX30 2018-05-17 12:40:12 +02:00
ti-smartreflex.txt ARM: dts: Fix smartreflex compatible for omap3 shared mpu-iva instance 2018-01-12 15:15:56 -08:00
wakeup-source.txt docs: Fix more broken references 2018-06-15 18:11:26 -03:00
xlnx,zynqmp-genpd.txt dt-bindings: power: Add ZynqMP power domain bindings 2019-02-12 13:36:26 +01:00