arm: dts: qcom: db410c: Enable USB OTG support
authorLoic Poulain <loic.poulain@linaro.org>
Wed, 11 Dec 2019 16:50:14 +0000 (17:50 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 12 Dec 2019 06:48:37 +0000 (22:48 -0800)
commit4868f573a754f992a06f30f5f860bb57e3739ffb
tree29200ccf457bbf4fe48bb394e69795d8ec1c821a
parent741a5ea7a69717ea1368ed98e431fbd6f5629a88
arm: dts: qcom: db410c: Enable USB OTG support

The Dragonboard-410c is able to act either as USB Host or Device.
The role can be determined at runtime via the USB_HS_ID pin which is
derived from the micro-usb port VBUS pin.

In Host role, SoC USB D+/D- are routed to the onboard USB 2.0 HUB.
In Device role, SoC USB D+/D- are routed to the USB 2.0 micro B port.
Routing is selected via USB_SW_SEL_PM gpio.

In device role USB HUB can be held in reset.

chipidea driver expects two extcon device pointers, one for the
EXTCON_USB event and one for the EXTCON_USB_HOST event. Since
the extcon-usb-gpio device is capable of generating both these
events, point two times to this extcon device.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1576083014-5842-1-git-send-email-loic.poulain@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi