Jump to content

Recommended Posts

Posted

I made a custom A20 board of which sch is very close to lime2 for a project (retrostone2) and I can't use USB0 as a classic USB port.

The three USB (0 1 2) are all connected to regular USB type A connectors. No OTG used. However I can't get the USB0 to work. USB1 and USB2 works without issue. But USB0 will not recognize keyboard/any peripheral. I think it's probably because of OTG detect pins.

 

I looked at the DTS, but I am having trouble understanding how OTG is emplemented there, how to unactivate it and just activate a classic USB port.

 

Any ideas?

Posted
13 minutes ago, PaddleStroke said:

Any ideas?

In the DTS, do you have any "dr_mode" ? If Yes, it must be set to "host" instead of "otg".

Also, make sure you have the +5V activated on this USB port.

Posted
1 hour ago, PaddleStroke said:

Tried and still NOK.

According to Lime2 schematic, there is USB0_DRV which is control the VBUS of USB0 using PA17 gpio.

Is there some kind of "usb0_vbus" entry in DTS and is the "gpio" parameter is pointing to the right PA17 ?

Posted

on my board I have not set the USB_DRV GPIO for any USB, they are always ON (enable pin of sy6280 pull up to 5V).

Also ID_detect is not connected either as I'm not using OTG. So none of these are connected : 

 

&reg_usb0_vbus {

gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;

 

&usbphy {

usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */

usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */

 

Not sure if they should be removed from the DTS?

 

Also are you sure it's PA17? Because it's writen '&pio 2 17' I thought the first number was reference to the letter, like A = 0 B = 1 ... H = 7.

Do you know how those numbers 2 and 17 are used if not by letter-number index? 

Posted
1 minute ago, PaddleStroke said:

Not sure if they should be removed from the DTS?

Most probably ...

2 minutes ago, PaddleStroke said:

Also are you sure it's PA17?

Right ! It is a typo, it is PC17 ...

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines