]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: qcom: sdm845-mtp: Make USB1 peripheral
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 26 Apr 2019 19:10:25 +0000 (12:10 -0700)
committerAndy Gross <agross@kernel.org>
Thu, 30 May 2019 02:36:46 +0000 (21:36 -0500)
The MTP is a "mobile reference device", as such the default operation is
to use fastboot to boot/flash software onto it and the common case is
thereby that we boot with a USB cable connected downstream from a PC or
a hub.  And without support for the PMI8998 charger block VBUS will not
be driven by the device.

Switch to peripheral until we can enable OTG.

Reviewed-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Andy Gross <agross@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-mtp.dts

index 02b8357c8ce81ed7290eb2c25e80e13de2dd48cb..2e78638eb73bb4dbf1e119a662611b64e8792fc6 100644 (file)
@@ -404,8 +404,8 @@ &usb_1 {
 };
 
 &usb_1_dwc3 {
-       /* Until we have Type C hooked up we'll force this as host. */
-       dr_mode = "host";
+       /* Until we have Type C hooked up we'll force this as peripheral. */
+       dr_mode = "peripheral";
 };
 
 &usb_1_hsphy {