]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64: dts: qcom: Force host mode for USB on apq8016-sbc
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 14 Jul 2017 02:20:42 +0000 (19:20 -0700)
committerAndy Gross <andy.gross@linaro.org>
Tue, 8 Aug 2017 21:29:48 +0000 (16:29 -0500)
commit2691cb4e42063ff3960d4f502b6031914aad38bf
tree1ab7a1f81896dd0057589e8b1ff796f079097548
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
arm64: dts: qcom: Force host mode for USB on apq8016-sbc

Commit ed75d6a96905 ("arm64: dts: qcom: Collapse usb support into
one node") breaks host mode support on apq8016-sbc boards. This
is because the mux driver (tc7usb40mu) hasn't been merged.
Without that driver, we can't toggle the GPIO going to the mux to
route out the D+/D- lines to the USB hub that's on the board.

One solution would be to totally revert this change, but that
opens us up to other problems when two USB drivers are operating
the same hardware block at the same time. Let's modify the DT so
that the USB controller is always in host mode and connected to
the hub so that things like USB keyboards and mouses work. This
is the mode that most people prefer anyway with these devices. We
also delete the usb-switch node because the binding was never
accepted upstream.

In the future, we can add muxing support and then update the DT
to support both modes at runtime. Patches to support this are
already on the mailing list.

Fixes: ed75d6a96905 ("arm64: dts: qcom: Collapse usb support into one node")
Reported-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi