[PATCH 5/7] ARM: mx53-qsrb: enable USB OTG in host mode

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 10 03:16:17 EST 2014


On Sat, Feb 08, 2014 at 03:16:10PM +0100, Eric Bénard wrote:
> tested on i.MX53 START-R :
> barebox at Freescale i.MX53 Quick Start-R Board:/ usb -f
> USB: scanning bus for devices...
> Using index 0 for the new disk
> Bus 001 Device 002: ID 0951:1654 DT R500
> Bus 001 Device 001: ID 0000:0000 EHCI Host Controller
> Bus 002 Device 003: ID 0000:0000 EHCI Host Controller
> 3 USB Device(s) found
> 
> Signed-off-by: Eric Bénard <eric at eukrea.com>
> ---
>  arch/arm/dts/imx53-qsb-common.dtsi | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/dts/imx53-qsb-common.dtsi b/arch/arm/dts/imx53-qsb-common.dtsi
> index 4ae1f49..012d74c 100644
> --- a/arch/arm/dts/imx53-qsb-common.dtsi
> +++ b/arch/arm/dts/imx53-qsb-common.dtsi
> @@ -223,6 +223,8 @@
>  };
>  
>  &usbotg {
> -       status = "okay";
> +	phy_type = "utmi";
> +	dr_mode = "host";
> +	status = "okay";
>  };

Do we need a barebox specific option to specify dr_mode? I mean barebox
cannot do otg, so we need to specify dr_mode to host or device, but with
the above change Linux is limited to host mode aswell.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list