]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: dts: sun8i-a83t-tbs-a711: Fix USB OTG mode detection
authorOndrej Jirman <megous@megous.com>
Sat, 22 Feb 2020 22:31:53 +0000 (23:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:00:20 +0000 (11:00 +0200)
commit273d30a0add12f09886d97dd533fb212bc1e679b
tree221888fc9bbd01832cd67db8957fef86602e2d55
parent8e29f2bde2470fd98fda78775811eb894516f690
ARM: dts: sun8i-a83t-tbs-a711: Fix USB OTG mode detection

commit b642d4825441bf30c72b72deb739bd2d5f53af08 upstream.

USB-ID signal has a pullup on the schematic, but in reality it's not
pulled up, so add a GPIO pullup. And we also need a usb0_vbus_power-supply
for VBUS detection.

This fixes OTG mode detection and charging issues on TBS A711 tablet.
The issues came from ID pin reading 0, causing host mode to be enabled,
when it should not be, leading to DRVVBUS being enabled, which disabled
the charger.

Fixes: f2f221c7810b824e ("ARM: dts: sun8i: a711: Enable USB OTG")
Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts