[PATCH 0/2] Enable USB BC detection to raise AXP813 Vbus current

From: Icenowy Zheng
Date: Wed Oct 02 2019 - 07:27:05 EST


Unlike previous AXP PMICs, the AXP813 PMIC (and AXP803) supports port
detection defined in USB Battery Charging Specification 1.2, and sets
the real Vbus current based on a pre-defined value (which is the
original Vbus current limitation field) and the port status. However,
the detection needs manual activision. If it's not active, the PMIC will
assume a SDP and limit the Vbus current to 500mA.

This patchset contains two patches, one enables the USB BC 1.2
detection, the other exports the real applied Vbus limitation.

Icenowy Zheng (2):
power: supply: axp20x_usb_power: enable USB BC detection on AXP813
power: supply: axp20x_usb_power: add applied max Vbus support for
AXP813

drivers/power/supply/axp20x_usb_power.c | 140 +++++++++++++++++++++++-
1 file changed, 137 insertions(+), 3 deletions(-)

--
2.21.0