* Question on OTG transceivers
@ 2010-03-17 21:35 Bill Gatliff
2010-03-18 3:28 ` Gadiyar, Anand
0 siblings, 1 reply; 5+ messages in thread
From: Bill Gatliff @ 2010-03-17 21:35 UTC (permalink / raw)
To: linux-omap@vger.kernel.org
Guys:
I have a Beagleboard-like unit here that uses two SMSC USB3320C-EZK
PHYs: one for EHCI (usb1), the other for OTG (usb0).
Two questions. First, the code in drivers/usb/otg/ulpi.c looks like it
might be what I need (my attempts so far with the "nop" transceiver have
ended in failure). Am I right?
Second, it looks like otg_set_transceiver() assumes there is only one
transceiver in the system. On a device like the OMAP3530 with multiple
ports, this seems like an odd assumption--- and one that clearly isn't
accurate for my platform. Or am I paying attention to the wrong stuff?
Can anyone help navigate me through the trees in this forest? :)
Thanks!
b.g.
--
Bill Gatliff
Embedded systems training and consulting
http://billgatliff.com
bgat@billgatliff.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Question on OTG transceivers
2010-03-17 21:35 Question on OTG transceivers Bill Gatliff
@ 2010-03-18 3:28 ` Gadiyar, Anand
2010-03-22 16:06 ` Bill Gatliff
0 siblings, 1 reply; 5+ messages in thread
From: Gadiyar, Anand @ 2010-03-18 3:28 UTC (permalink / raw)
To: Bill Gatliff, linux-omap@vger.kernel.org
> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org
> [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Bill Gatliff
> Sent: Thursday, March 18, 2010 3:05 AM
> To: linux-omap@vger.kernel.org
> Subject: Question on OTG transceivers
>
> Guys:
>
>
> I have a Beagleboard-like unit here that uses two SMSC USB3320C-EZK
> PHYs: one for EHCI (usb1), the other for OTG (usb0).
>
> Two questions. First, the code in drivers/usb/otg/ulpi.c looks like it
> might be what I need (my attempts so far with the "nop" transceiver have
> ended in failure). Am I right?
>
Actually, the way the ehci-omap driver is currently written, it assumes
the transceiver is present and available - you don't need a separate
driver to access it.
For that matter, the same probably holds for the OTG driver as well - you
really don't need a driver for transparent transceivers like the SMSC332x.
I'm not sure why the code was written this way to introduce NOP XCEIVs
(need to go through the changelog to find out why, maybe).
> Second, it looks like otg_set_transceiver() assumes there is only one
> transceiver in the system. On a device like the OMAP3530 with multiple
> ports, this seems like an odd assumption--- and one that clearly isn't
> accurate for my platform. Or am I paying attention to the wrong stuff?
>
> Can anyone help navigate me through the trees in this forest? :)
I think this assumption comes from some part of the OTG spec which says
that OTG devices can have only one external USB port.
But embedded devices can certainly have more than one transceiver (for example
to connect an on-board USB device without exposing an external port) - so
maybe there's no point keeping this restriction any more.
- Anand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question on OTG transceivers
2010-03-18 3:28 ` Gadiyar, Anand
@ 2010-03-22 16:06 ` Bill Gatliff
2010-03-22 16:45 ` Felipe Balbi
2010-03-26 10:45 ` Gadiyar, Anand
0 siblings, 2 replies; 5+ messages in thread
From: Bill Gatliff @ 2010-03-22 16:06 UTC (permalink / raw)
To: Gadiyar, Anand; +Cc: linux-omap@vger.kernel.org
Gadiyar, Anand wrote:
>
> Actually, the way the ehci-omap driver is currently written, it assumes
> the transceiver is present and available - you don't need a separate
> driver to access it.
>
> For that matter, the same probably holds for the OTG driver as well - you
> really don't need a driver for transparent transceivers like the SMSC332x.
>
But I get an OOPS and the system halts when I don't have a transceiver
driver...
b.g.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Question on OTG transceivers
2010-03-22 16:06 ` Bill Gatliff
@ 2010-03-22 16:45 ` Felipe Balbi
2010-03-26 10:45 ` Gadiyar, Anand
1 sibling, 0 replies; 5+ messages in thread
From: Felipe Balbi @ 2010-03-22 16:45 UTC (permalink / raw)
To: Bill Gatliff; +Cc: Gadiyar, Anand, linux-omap@vger.kernel.org
On Mon, Mar 22, 2010 at 11:06:32AM -0500, Bill Gatliff wrote:
> Gadiyar, Anand wrote:
> >
> > Actually, the way the ehci-omap driver is currently written, it assumes
> > the transceiver is present and available - you don't need a separate
> > driver to access it.
> >
> > For that matter, the same probably holds for the OTG driver as well - you
> > really don't need a driver for transparent transceivers like the SMSC332x.
> >
>
> But I get an OOPS and the system halts when I don't have a transceiver
> driver...
that smells like you're using the otg port.
--
balbi
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Question on OTG transceivers
2010-03-22 16:06 ` Bill Gatliff
2010-03-22 16:45 ` Felipe Balbi
@ 2010-03-26 10:45 ` Gadiyar, Anand
1 sibling, 0 replies; 5+ messages in thread
From: Gadiyar, Anand @ 2010-03-26 10:45 UTC (permalink / raw)
To: Bill Gatliff; +Cc: linux-omap@vger.kernel.org
Bill Gatliff wrote:
> Gadiyar, Anand wrote:
> > Actually, the way the ehci-omap driver is currently written, it assumes
> > the transceiver is present and available - you don't need a separate
> > driver to access it.
> >
> > For that matter, the same probably holds for the OTG driver as well - you
> > really don't need a driver for transparent transceivers like the SMSC332x.
> >
>
> But I get an OOPS and the system halts when I don't have a transceiver
> driver...
>
Care to post a bootlog and your .config file? Maybe it's just a simple CONFIG option that
you are missing?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-26 10:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-17 21:35 Question on OTG transceivers Bill Gatliff
2010-03-18 3:28 ` Gadiyar, Anand
2010-03-22 16:06 ` Bill Gatliff
2010-03-22 16:45 ` Felipe Balbi
2010-03-26 10:45 ` Gadiyar, Anand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox