From: Fabio Estevam <fabio.estevam@freescale.com>
Date: Thu, 30 Apr 2015 22:55:30 +0000 (-0300)
Subject: ARM: dts: imx6sl-warp: Fix OTG roles
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0c1e18963d49bf41ea13c80ca17dd1e703c49739;p=linux.git

ARM: dts: imx6sl-warp: Fix OTG roles

USBOTG1 always work on peripheral mode and USBOTG in host mode, so fix
their roles accordingly.

Tested by mounting the MMC card as a storage device:

modprobe g_mass_storage file=/dev/mmcblk0p2

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---

diff --git a/arch/arm/boot/dts/imx6sl-warp.dts b/arch/arm/boot/dts/imx6sl-warp.dts
index cec189a16352f..0da906bd8df2d 100644
--- a/arch/arm/boot/dts/imx6sl-warp.dts
+++ b/arch/arm/boot/dts/imx6sl-warp.dts
@@ -87,12 +87,13 @@
 };
 
 &usbotg1 {
-	dr_mode = "host";
+	dr_mode = "peripheral";
 	disable-over-current;
 	status = "okay";
 };
 
 &usbotg2 {
+	dr_mode = "host";
 	disable-over-current;
 	status = "okay";
 };