Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

USB Host controller on Firefly

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13

USB Host controller on Firefly

Posted at 6/12/2015 10:49:16      View:7547 | Replies:2        Print      Only Author   [Copy Link] 1#
Hi,

I am testing the Firefly for our next project, where we have need to use the multiple USB peripheral like USB Keyboard, USB mouse, USB Camera, USB touch digitizer etc to Firefly over USB HUB(10 port). I am observing the sticky keys while typing from keyboard and leggy touch response. The same issue is observed on USB HOST1, HOST2 and OTG port on the Firefly.  I have confirmed that the issue is not with the USB HUB any of the USB devices as the same setup works on my laptop, nexus 7 tablet.

Note that the Firefly always detects USB HOST1 and USB HOST2  on USB BUS3, OTG port on USB BUS2. In the linux kernel it always detected as a "DWC OTG Controller" as shown below.

OTG PORT on BUS2:
----------------------------
<6>[    3.897975] usb20_otg ff580000.usb: DWC OTG Controller
<6>[    3.903109] usb20_otg ff580000.usb: new USB bus registered, assigned bus number 2
<6>[    3.910600] usb20_otg ff580000.usb: irq 55, io mem 0x00000000

HOST1 and HOST2 port on BUS3:
-------------------------------------------
<6>[    3.996373] usb20_host ff540000.usb: DWC OTG Controller
<6>[    4.001585] usb20_host ff540000.usb: new USB bus registered, assigned bus number 3
<6>[    4.009167] usb20_host ff540000.usb: irq 57, io mem 0x00000000

This indicates that both  USB HOST's port and USB OTG port is handled by the DWC OTG controller.
I suspect that the issue is with the DWC OTG controller, because when I connect the same HUB(with two USB keyboard, USB mouse) to other device like my laptop, nexus 7 tablet, it works without any issue and the devices are detected as EHCI controller.

Further investigating the Firefly, I found that there is a EHCI controller on SoC which is mapped to USB BUS1. Looks like EHCI is not mapped to any physical port like HOST1, HOST2 ot OTG.
In Linux kernel I see a EHCI controller detected on BUS1 as shown below:

---------------------------------------------------------------------------------------------------------------------------
<6>[    3.602100] rockchip_ehci_host ff500000.usb: Rockchip On-Chip EHCI Host Controller
<6>[    3.609657] rockchip_ehci_host ff500000.usb: new USB bus registered, assigned bus number 1
<6>[    3.618856] rockchip_ehci_host ff500000.usb: irq 56, io mem 0xff500000
----------------------------------------------------------------------------------------------------------------------------

My question are:

1. How the EHCI controller is mapped on Firefly? On which USB port?
2. Is there any way to access the EHCI controller on Firefly which is mapped to USB bus1?
3 . Can you confirm if this is a DWC OTG Controller issue ?

Let me know if you need any setup details, logs or any question to reproduce/root cause this problem.

Looking forward for quick response as this is blocker issue for further development using Firefly.

Thanks in Advance.

Regards,
Niraj
Reply

Use props Report

244

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
244
Posted at 6/13/2015 21:10:56        Only Author  2#
in schematic http://www.t-firefly.com/downloa ... /FR_RK3288_0930.pdf
you can find pins named HOST1_DM and HOST1_DP. it is EHCI, and "not connected" on Firefly board.

I have no idea that DWC OTG controller/driver has(or doesn't have) issue.
http://androtab.info/
Reply

Use props Report

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13
Posted at 6/15/2015 14:25:30        Only Author  3#
Last edited by Niraj In 6/15/2015 14:30 Editor

Thank you for the quick response.  
Is there any reasons why the EHCI is not conneted? I mean design releated issue or any specific reason not connecting the EHCI?

In the case EHCI is not connected on the Firefly, can the Firefly engineering team can resolve the issue in the DWC OTG controller?  How do I approach the team managing this driver?



Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list