mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Igor Plyatov <plyatov@gmail.com>
To: linux-usb@vger.kernel.org
Cc: Alan Stern <stern@rowland.harvard.edu>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Initialisation of SOC USB pads
Date: Wed, 22 May 2019 17:40:19 +0300	[thread overview]
Message-ID: <bb912208-4cbd-89da-4b40-903699b087f2@gmail.com> (raw)
In-Reply-To: <607c6b4c-d53a-8115-aa60-2a8461607d40@gmail.com>

[-- 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 --]

      parent reply	other threads:[~2019-05-22 14:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-13 15:39 Igor Plyatov
2019-05-13 15:47 ` Alan Stern
2019-05-22 14:40 ` Igor Plyatov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bb912208-4cbd-89da-4b40-903699b087f2@gmail.com \
    --to=plyatov@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®