linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Initialisation of SOC USB pads
@ 2019-05-13 15:39 Igor Plyatov
  2019-05-13 15:47 ` Alan Stern
  2019-05-22 14:40 ` Igor Plyatov
  0 siblings, 2 replies; 3+ messages in thread
From: Igor Plyatov @ 2019-05-13 15:39 UTC (permalink / raw)
  To: linux-usb; +Cc: Alan Stern, Greg Kroah-Hartman, linux-kernel

Dear developers,

can you please explain who must configure AT91SAM9G20 SOC pads to 
operate as USB Host port? Is it AT91Bootstrap, U-Boot bootloader, Linux 
kernel or this is not required at all?

I ask, because during connection of USB disk, my board complains

usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: device descriptor read/64, error -62
usb 1-1: device not accepting address 4, error -62
usb 1-1: device not accepting address 5, error -62
usb usb1-port1: unable to enumerate USB device


Looks like there is no connectivity between USB Host module of SOC and 
USB device. Or am I wrong?


My setup is:


* AT91SAM9G20 based custom board;
* Linux kernel 4.9.36, from LINUX4SAM project.
* USB disk connected to USB Host port 0 (HDPA, HDMA pins of SOC). 39 Ohm 
series resistors and 15 Kohm pull-down resistors added at these lines. 
Connectivity between SOC and USB device confirmed by Ohmmeter.
* USB_VBUS voltage measured at USB connector = 4.96 VDC.

Best wishes
--
Igor Plyatov


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Initialisation of SOC USB pads
  2019-05-13 15:39 Initialisation of SOC USB pads Igor Plyatov
@ 2019-05-13 15:47 ` Alan Stern
  2019-05-22 14:40 ` Igor Plyatov
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Stern @ 2019-05-13 15:47 UTC (permalink / raw)
  To: Igor Plyatov; +Cc: linux-usb, Greg Kroah-Hartman, linux-kernel

On Mon, 13 May 2019, Igor Plyatov wrote:

> Dear developers,
> 
> can you please explain who must configure AT91SAM9G20 SOC pads to 
> operate as USB Host port? Is it AT91Bootstrap, U-Boot bootloader, Linux 
> kernel or this is not required at all?
> 
> I ask, because during connection of USB disk, my board complains
> 
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device not accepting address 4, error -62
> usb 1-1: device not accepting address 5, error -62
> usb usb1-port1: unable to enumerate USB device
> 
> 
> Looks like there is no connectivity between USB Host module of SOC and 
> USB device. Or am I wrong?
> 
> 
> My setup is:
> 
> 
> * AT91SAM9G20 based custom board;
> * Linux kernel 4.9.36, from LINUX4SAM project.
> * USB disk connected to USB Host port 0 (HDPA, HDMA pins of SOC). 39 Ohm 
> series resistors and 15 Kohm pull-down resistors added at these lines. 
> Connectivity between SOC and USB device confirmed by Ohmmeter.
> * USB_VBUS voltage measured at USB connector = 4.96 VDC.

You probably should ask somebody at the LINUX4SAM project.

Alan Stern


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Initialisation of SOC USB pads
  2019-05-13 15:39 Initialisation of SOC USB pads Igor Plyatov
  2019-05-13 15:47 ` Alan Stern
@ 2019-05-22 14:40 ` Igor Plyatov
  1 sibling, 0 replies; 3+ messages in thread
From: Igor Plyatov @ 2019-05-22 14:40 UTC (permalink / raw)
  To: linux-usb; +Cc: Alan Stern, Greg Kroah-Hartman, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]

Hi!

Topic update...

USB pads operate. I see USB traffic on the bus by Logical analyzer.

This is definitely Linux kernel issue, because USB works fine at U-Boot, 
when I try to load kernel image and device tree from USB disk.

Additionally, USB works on same board with old Linux kernel 2.6.39.

Current Linux kernel (4.9.52), has issue with USB speed on AT91SAM9G20. 
I see different USB speeds in U-Boot and in Linux-4.9.52. U-Boot has 12 
MHz USB speed, while Linux-4.9.52 has 6 MHz USB speed.

I guess, what need to be changed to have correct USB speed?

I have attached resulting Device Tree source code, if it can be useful.

Best wishes.
--
Igor Plyatov


13.05.2019 18:39, Igor Plyatov пишет:
> Dear developers,
>
> can you please explain who must configure AT91SAM9G20 SOC pads to 
> operate as USB Host port? Is it AT91Bootstrap, U-Boot bootloader, 
> Linux kernel or this is not required at all?
>
> I ask, because during connection of USB disk, my board complains
>
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device descriptor read/64, error -62
> usb 1-1: device not accepting address 4, error -62
> usb 1-1: device not accepting address 5, error -62
> usb usb1-port1: unable to enumerate USB device
>
>
> Looks like there is no connectivity between USB Host module of SOC and 
> USB device. Or am I wrong?
>
>
> My setup is:
>
>
> * AT91SAM9G20 based custom board;
> * Linux kernel 4.9.36, from LINUX4SAM project.
> * USB disk connected to USB Host port 0 (HDPA, HDMA pins of SOC). 39 
> Ohm series resistors and 15 Kohm pull-down resistors added at these 
> lines. Connectivity between SOC and USB device confirmed by Ohmmeter.
> * USB_VBUS voltage measured at USB connector = 4.96 VDC.
>
> Best wishes
> -- 
> Igor Plyatov
>

[-- Attachment #2: device-tree.dts --]
[-- Type: audio/vnd.dts, Size: 30531 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-22 14:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-13 15:39 Initialisation of SOC USB pads Igor Plyatov
2019-05-13 15:47 ` Alan Stern
2019-05-22 14:40 ` Igor Plyatov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).