Re: [PATCH] power: supply: cpcap-charger: Enable vbus boost voltage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Pavel Machek <pavel@xxxxxx> [190902 08:00]:
> Hi!
> 
> > We are currently not enabling VBUS boost for cpcap when in host mode.
> > This means the VBUS is fed at the battery voltage level, which can cause
> > flakeyness enumerating devices.
> > 
> > Looks like the boost control for VBUS is CPCAP_BIT_VBUS_SWITCH that we
> > must enable in the charger for nice 4.92 V VBUS output. And looks like
> > we must not use the STBY pin enabling but must instead use manual VBUS
> > control in phy-cpcap-usb.
> > 
> > We want to do this in cpcap_charger_vbus_work() and also set a flag for
> > feeding_vbus to avoid races between USB detection and charger detection,
> > and disable charging if feeding_vbus is set.
> 
> I did not know phone is supposed to provide voltage on USB. USB mouse
> works for me.. in stock android, provided I conect USB hub and
> external power.

Yup that's standard USB OTG feature when ID pin is grounded.

> This does not seem to work for me.. and it does not even work on stock
> kernel. What is going on here?

Sounds like you're missing a USB micro-B cable with ID pin grounded
and trying to use debugfs/sysfs instead to force the host mode.

> Is there some kind of debug ineterface where I could test just the
> vbus switch? I do have voltmeter for the usb port...

Yeah well.. just ground the ID pin :) No debug interface should be
needed here.

If you really wanted to add some kind of debugfs interface for forcing
host mode without ID pin grounded, you could try to have the USB phy
driver enable ID pin pull-down via sysfs. That's the cpcap PMIC in this
case, I think some combination of CPCAP_BIT_ID* bits might do the
trick.

Regards,

Tony




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux