]> Git Repo - linux.git/commit
usb: dwc3: pci: Set "linux,phy_charger_detect" property on some Bay Trail boards
authorHans de Goede <[email protected]>
Sun, 13 Feb 2022 13:05:19 +0000 (14:05 +0100)
committerGreg Kroah-Hartman <[email protected]>
Thu, 17 Feb 2022 15:30:18 +0000 (16:30 +0100)
commit582ab24e096fd591026de6f1bbae104e45fecf0f
treed1bb6f66f18422a561df88eeac4da7e83b26bf29
parente285cb403994419e997749c9a52b9370884ae0c8
usb: dwc3: pci: Set "linux,phy_charger_detect" property on some Bay Trail boards

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: Hans de Goede <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/dwc3/dwc3-pci.c
This page took 0.055495 seconds and 4 git commands to generate.