diff options
author | faqiang.zhu <faqiang.zhu@nxp.com> | 2019-12-26 22:02:11 +0800 |
---|---|---|
committer | faqiang.zhu <faqiang.zhu@nxp.com> | 2019-12-27 11:51:35 +0800 |
commit | 278c6e3c713144b8e911cd3ac1e1e3320c01b27f (patch) | |
tree | 610dd42d281bf495e914f4ef74ce6e03a98d44db /arch/arm | |
parent | 0e207921e9a0db4d1dff27fee8b9a22a43a8fcc9 (diff) |
MA-16095 set evk_8mm/evk_8mn usb dr_mode to "otg"
When trying to remove "CONFIG_USB_TCPC=y" to avoid ramdom issue of
synchronous abort when enter fastboot, evk_8mm and evk_8mn can't
enter fastboot mode, it's because init_type of the usb udevice private
data is host if tcpc configuration is removed, if this init_type is
host/peripheral, then the usb is forced to be this mode, can not be
initialized as another.
init_type of the usb udevice private data is firstly set based on the
"dr_mode" in dtb, if "dr_mode" is not set, it will be set by other ways.
here set the "dr_mode" property for the usb device to be "otg", then the
device can be configured as either host or peripheral.
Change-Id: Idadab7bb07e74bfc1f8768490c07127a35a02572
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/dts/fsl-imx8mm-evk.dts | 1 | ||||
-rw-r--r-- | arch/arm/dts/fsl-imx8mn-ddr4-evk.dts | 1 | ||||
-rw-r--r-- | arch/arm/dts/fsl-imx8mn-evk.dts | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/dts/fsl-imx8mm-evk.dts b/arch/arm/dts/fsl-imx8mm-evk.dts index 8c9cec0c5d1..d33b2dde390 100644 --- a/arch/arm/dts/fsl-imx8mm-evk.dts +++ b/arch/arm/dts/fsl-imx8mm-evk.dts @@ -516,6 +516,7 @@ &usbotg1 { status = "okay"; extcon = <&typec_ptn5110_1>; + dr_mode = "otg"; }; &usbotg2 { diff --git a/arch/arm/dts/fsl-imx8mn-ddr4-evk.dts b/arch/arm/dts/fsl-imx8mn-ddr4-evk.dts index a67e28792be..a2b1c5c0fc9 100644 --- a/arch/arm/dts/fsl-imx8mn-ddr4-evk.dts +++ b/arch/arm/dts/fsl-imx8mn-ddr4-evk.dts @@ -514,6 +514,7 @@ &usbotg1 { status = "okay"; extcon = <&typec_ptn5110_1>; + dr_mode = "otg"; }; &usbotg2 { diff --git a/arch/arm/dts/fsl-imx8mn-evk.dts b/arch/arm/dts/fsl-imx8mn-evk.dts index 5d5943421f6..7a453f5a785 100644 --- a/arch/arm/dts/fsl-imx8mn-evk.dts +++ b/arch/arm/dts/fsl-imx8mn-evk.dts @@ -489,6 +489,7 @@ &usbotg1 { status = "okay"; extcon = <&typec_ptn5110_1>; + dr_mode = "otg"; }; &usbotg2 { |