Does i.MX6 u-boot for Linux BSP supports USB OTG Host mode?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Does i.MX6 u-boot for Linux BSP supports USB OTG Host mode?

ソリューションへジャンプ
4,889件の閲覧回数
satoshishimoda
Senior Contributor I

Hi community,

I have a question about i.MX6 Linux BSP.

I want to know whether u-boot for i.MX6 Linux BSP (L3.0.35_4.1.0) supports USB OTG Host mode, because I could not find the code for USB OTG Host mode.

Could you let me know it?

And if it supports USB OTG Host, could you let me know what source code supports it?

Best Regards,

Satoshi Shimoda

ラベル(5)
タグ(2)
0 件の賞賛
返信
1 解決策
3,105件の閲覧回数
fabio_estevam
NXP Employee
NXP Employee

In mainline U-boot:

drivers/usb/host/ehci-mx6.c

You can see the mx6 nitrogen board that supports USB host:

board/boundary/nitrogen6x/nitrogen6x.c

and its config file:

include/configs/nitrogen6x.h

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
3,105件の閲覧回数
artyeffem
Contributor II

I'm using OTG Host mode to run USB-NET from U-boot, implemented per Fabio's references.  It works great after a soft reboot from userspace, but fails on a hard power-cycle.  The kernel/FDT seems to properly setup the USB ID pin to identify this as Host mode, but from U-boot the pin is not correctly read, always thinks its in Device mode.  What setup am I missing here?

0 件の賞賛
返信
3,105件の閲覧回数
artyeffem
Contributor II

I was missing an IOMUX setup for the USB_OTG_ID, but am now getting failures in the ehci_submit_async().  The handshake fails with "EHCI fail timeout STS_ASS set".  Interestingly, now I hit this failure even after a soft reboot, where it was successful before my IOMUX fix.

0 件の賞賛
返信
3,105件の閲覧回数
artyeffem
Contributor II

Argh... I was tinkering with the ethact environment variable earlier.  Do not set it to usb_ether.  You can let it stay as FEC, and will switch to the proper device, in my case mcs0.  All is well.

3,105件の閲覧回数
satoshishimoda
Senior Contributor I

Could you reply to me someone?

0 件の賞賛
返信
3,105件の閲覧回数
fabio_estevam
NXP Employee
NXP Employee

Mainline U-boot does support USB host for mx6.

3,104件の閲覧回数
satoshishimoda
Senior Contributor I

Hi Fabio Estevam,

Thank you for your reply.

And could you let me know what code in u-boot set USB host if you prefer?

Best Regards,

Satoshi SHimoda

0 件の賞賛
返信
3,106件の閲覧回数
fabio_estevam
NXP Employee
NXP Employee

In mainline U-boot:

drivers/usb/host/ehci-mx6.c

You can see the mx6 nitrogen board that supports USB host:

board/boundary/nitrogen6x/nitrogen6x.c

and its config file:

include/configs/nitrogen6x.h

0 件の賞賛
返信