mbox series

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

Message ID 20191002112545.58481-1-icenowy@aosc.io (mailing list archive)
Headers show
Series Enable USB BC detection to raise AXP813 Vbus current | expand

Message

Icenowy Zheng Oct. 2, 2019, 11:25 a.m. UTC
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(-)