]> git.baikalelectronics.ru Git - kernel.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:02:11 +0000 (11:02 +0200)
commitf828ab0a35f7e9a9d7681584f41bb55b12e9bc3f
tree8b533a6ca746ddefa9b71f7b376113b10190a50c
parentc5edfb90087062bf1ce5ddba68a05f7c292357dd
ARM: dts: sun8i-a83t-tbs-a711: Fix USB OTG mode detection

commit b24f74991fbc2c18c2237b926359bc0e4dd963c8 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: 957e7f51bc3105ec ("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