• Hans de Goede's avatar
    usb: dwc3: pci: Set "linux,phy_charger_detect" property on some Bay Trail boards · 582ab24e
    Hans de Goede authored
    Some Android x86 tablets with a Bay Trail (BYT) SoC and a Crystal Cove
    PMIC, which does not support charger-detection, rely on the TUSB1211 phy
    for charger-detection.
    
    Windows tablets with the same SoC + PMIC often use an extra chip for
    charger-detection like the FSA831A. But since on Android tablets
    the designers already need to add a TUSB1211 phy to support device/gadget
    mode the phy is used to do charger-detection instead.
    
    These Android x86 tablets can be identified by the unique combination of
    a Bay Trail SoC (already checked for by PCI-ids) + a Crystal Cove PMIC +
    not using the standard ACPI battery and ac drivers. Where as on Windows
    tablets the standard ACPI battery and ac drivers will be used on BYT
    boards with a Crystal Cove PMIC.
    
    Set a special kernel-internal (so not part of the dt-bindings)
    "linux,phy_charger_detect" property on these boards, which tells the
    tusb1210 driver to enable charger-detection.
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Link: https://lore.kernel.org/r/20220213130524.18748-5-hdegoede@redhat.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    582ab24e
dwc3-pci.c 14.7 KB