[PATCH v2 0/9] usb/dwc3 / phy/tusb1210: Add TUSB1211 charger detection
Greg Kroah-Hartman
gregkh at linuxfoundation.org
Thu Feb 17 07:31:13 PST 2022
On Sun, Feb 13, 2022 at 02:05:15PM +0100, Hans de Goede wrote:
> Hi All,
>
> Here is v2 of the patchs-series to add support for USB charger-type
> (SDP/DCP) detection using a tusb1210 phy connected to a dwc3 controller.
>
> Changes in v2:
> [PATCH v2 9/9] phy: ti: tusb1210: Add charger detection:
> - Add an online attribute to the registered power_supply class device,
> otherwise upower thinks it is an extra system battery
> - Add tusb1210_remove_charger_detect() function to properly unregister
> the tusb->psy_nb notifier and to cancel tusb->chg_det_work
>
> v1 cover-letter:
>
> Some Android x86 tablets with a Bay Trail (BYT) SoC (with DWC3 UDC)
> and a Crystal Cove PMIC, which does not support charger-detection,
> rely on a TUSB1211 phy for charger-detection.
>
> This series adds support for this, it starts with some dwc3 bug-fixes
> for issues hit while developing this, as well as adding support to
> the dwc3 code to set a special property checked by the tusb1210 driver
> to signal that it needs to enable charger-detection.
>
> The 2nd half of the series does some refactoring / fixes to the
> tusb1210 driver and adds the charger-detection support.
The first 4 are all in my usb trees now, thanks.
greg k-h
More information about the linux-phy
mailing list