public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* USB on OMAP3530
@ 2009-02-18 16:46 Rick Bronson
  2009-02-18 17:20 ` Felipe Balbi
  0 siblings, 1 reply; 8+ messages in thread
From: Rick Bronson @ 2009-02-18 16:46 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

Hello,

  I've got a new board with a OMAP3530 that's wired to a "ULPI Hi-Speed
USB host and peripheral transceiver" (NXP ISP1505) on UH0-D0-7,
UH0-CLK, UH0-STP, UH0-DIR, UH0-NXT.  There is also a mux to switch
from host to device on GPIO_140.

  What set of kernel configs should I enable?  Here's what I have:

CONFIG_USB_HID=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_SUSPEND=y
CONFIG_USB_OTG=y
CONFIG_USB_MON=y
CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_MUSB_SOC=y
CONFIG_USB_MUSB_OTG=y
CONFIG_USB_GADGET_MUSB_HDRC=y
CONFIG_USB_MUSB_HDRC_HCD=y
CONFIG_USB_INVENTRA_DMA=y
CONFIG_USB_STORAGE=y
CONFIG_USB_TEST=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_SELECTED=y
CONFIG_USB_GADGET_DUALSPEED=y
CONFIG_USB_ETH=y
CONFIG_USB_ETH_RNDIS=y
CONFIG_USB_OTG_UTILS=y

  Any help greatly appreciated.

  Rick Bronson

                                                                   _
                                                                  | |
                                                                  / /__
.----------------------------------------------------------._____/ (___)
| Rick Bronson    rick at efn dot org    Tel 541-485-7264  |       (___)
| Amazonia Computing http://www.efn.org/~rick      __ o    |_____  (___)
| 5050 Donald Street     "Onde esta dinheiro?"    _`\<,    |     \_(___)
| Eugene, OR  97405       -- Gal Costa         __( )/( )__ |
`----------------------------------------------------------'

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

* Re: USB on OMAP3530
  2009-02-18 16:46 USB on OMAP3530 Rick Bronson
@ 2009-02-18 17:20 ` Felipe Balbi
  2009-02-18 17:48   ` Gadiyar, Anand
  0 siblings, 1 reply; 8+ messages in thread
From: Felipe Balbi @ 2009-02-18 17:20 UTC (permalink / raw)
  To: Rick Bronson; +Cc: linux-omap@vger.kernel.org

On Wed, Feb 18, 2009 at 08:46:17AM -0800, Rick Bronson wrote:
> Hello,
> 
>   I've got a new board with a OMAP3530 that's wired to a "ULPI Hi-Speed
> USB host and peripheral transceiver" (NXP ISP1505) on UH0-D0-7,
> UH0-CLK, UH0-STP, UH0-DIR, UH0-NXT.  There is also a mux to switch
> from host to device on GPIO_140.
> 
>   What set of kernel configs should I enable?  Here's what I have:

you need to enable CONFIG_USB_EHCI_HCD

-- 
balbi

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

* RE: USB on OMAP3530
  2009-02-18 17:20 ` Felipe Balbi
@ 2009-02-18 17:48   ` Gadiyar, Anand
  2009-02-18 17:55     ` Felipe Balbi
  0 siblings, 1 reply; 8+ messages in thread
From: Gadiyar, Anand @ 2009-02-18 17:48 UTC (permalink / raw)
  To: me@felipebalbi.com, Rick Bronson; +Cc: linux-omap@vger.kernel.org

> From: linux-omap-owner@vger.kernel.org [linux-omap-owner@vger.kernel.org] On Behalf Of Felipe Balbi [me@felipebalbi.com]
> On Wed, Feb 18, 2009 at 08:46:17AM -0800, Rick Bronson wrote:
> > Hello,
> >
> >   I've got a new board with a OMAP3530 that's wired to a "ULPI Hi-Speed
> > USB host and peripheral transceiver" (NXP ISP1505) on UH0-D0-7,
> > UH0-CLK, UH0-STP, UH0-DIR, UH0-NXT.  There is also a mux to switch
> > from host to device on GPIO_140.
> >
> >   What set of kernel configs should I enable?  Here's what I have:
> 
> you need to enable CONFIG_USB_EHCI_HCD

Confused. Why?

Isn't this the MUSB port?

- Anand

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

* Re: USB on OMAP3530
  2009-02-18 17:48   ` Gadiyar, Anand
@ 2009-02-18 17:55     ` Felipe Balbi
  0 siblings, 0 replies; 8+ messages in thread
From: Felipe Balbi @ 2009-02-18 17:55 UTC (permalink / raw)
  To: Gadiyar, Anand
  Cc: me@felipebalbi.com, Rick Bronson, linux-omap@vger.kernel.org

On Wed, Feb 18, 2009 at 11:18:41PM +0530, Gadiyar, Anand wrote:
> > From: linux-omap-owner@vger.kernel.org [linux-omap-owner@vger.kernel.org] On Behalf Of Felipe Balbi [me@felipebalbi.com]
> > On Wed, Feb 18, 2009 at 08:46:17AM -0800, Rick Bronson wrote:
> > > Hello,
> > >
> > >   I've got a new board with a OMAP3530 that's wired to a "ULPI Hi-Speed
> > > USB host and peripheral transceiver" (NXP ISP1505) on UH0-D0-7,
> > > UH0-CLK, UH0-STP, UH0-DIR, UH0-NXT.  There is also a mux to switch
> > > from host to device on GPIO_140.
> > >
> > >   What set of kernel configs should I enable?  Here's what I have:
> > 
> > you need to enable CONFIG_USB_EHCI_HCD
> 
> Confused. Why?
> 
> Isn't this the MUSB port?

ugh, my mistake... didn't see the "and peripheral" there :-p

so Rick, you need to load a gadget driver for musb to work, g_ether or
g_zero are the simplest ones.

-- 
balbi

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

* Re: USB on OMAP3530
@ 2009-02-19 14:58 Rick Bronson
  2009-02-19 15:07 ` Gadiyar, Anand
  2009-02-20  9:26 ` Gupta, Ajay Kumar
  0 siblings, 2 replies; 8+ messages in thread
From: Rick Bronson @ 2009-02-19 14:58 UTC (permalink / raw)
  To: Gadiyar, Anand; +Cc: linux-omap@vger.kernel.org


  Thanks very much for the help.

> so Rick, you need to load a gadget driver for musb to work, g_ether or
> g_zero are the simplest ones.

  But don't I already have the g_zero enabled via:

CONFIG_USB_GADGET_MUSB_HDRC=y

  But lets assume that, for the time being, I'm only interested in USB
Host.

  I had combed the mailing list looking for ISP1505 support and
happened across this:

> There's one problem here. If this is similar to isp1704, it doesn't have
> a control interface. And the only way to talk to the transceiver is via
> ULPI. I have patches that add musb_ulpi_read/write functions using the
> musb ulpi wrapper.

  The ISP1704 is very similar to the ISP1505, neither one has a
control interface (like I2C), only straight ULPI.  Does this mean that
there is no "out of the box" support for straight ULPI in 2.6.29?  If
so, what would I need to do to support it?

  Rick

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

* RE: USB on OMAP3530
  2009-02-19 14:58 Rick Bronson
@ 2009-02-19 15:07 ` Gadiyar, Anand
  2009-02-19 16:09   ` Felipe Balbi
  2009-02-20  9:26 ` Gupta, Ajay Kumar
  1 sibling, 1 reply; 8+ messages in thread
From: Gadiyar, Anand @ 2009-02-19 15:07 UTC (permalink / raw)
  To: rick@efn.org; +Cc: linux-omap@vger.kernel.org

>   Thanks very much for the help.
> 
> > so Rick, you need to load a gadget driver for musb to work, g_ether or
> > g_zero are the simplest ones.
> 
>   But don't I already have the g_zero enabled via:
> 
> CONFIG_USB_GADGET_MUSB_HDRC=y
> 
>   But lets assume that, for the time being, I'm only interested in USB Host.
> 
>   I had combed the mailing list looking for ISP1505 support and
> happened across this:
> 
> > There's one problem here. If this is similar to isp1704, it doesn't have
> > a control interface. And the only way to talk to the transceiver is via
> > ULPI. I have patches that add musb_ulpi_read/write functions using the
> > musb ulpi wrapper.
> 
>   The ISP1704 is very similar to the ISP1505, neither one has a
> control interface (like I2C), only straight ULPI.  Does this mean that
> there is no "out of the box" support for straight ULPI in 2.6.29?  If
> so, what would I need to do to support it?
> 
>   Rick
> 
> 

The ISP1505 is supposed to be pretty-much plug and play. MUSB should
in theory work directly - no configuration required.

The OMAP3 EVM boards also run a similar configuration. Maybe someone
with that board can tell you if MUSB in the current kernel works out
of the box.

Looking closer at your config options, you have CONFIG_USB_MUSB_OTG
which means you need a gadget driver loaded before you can use MUSB.
But, you also have CONFIG_USB_ETH=y, which means your gadget driver
is also built-in. So you won't need to insmod the module.


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

* Re: USB on OMAP3530
  2009-02-19 15:07 ` Gadiyar, Anand
@ 2009-02-19 16:09   ` Felipe Balbi
  0 siblings, 0 replies; 8+ messages in thread
From: Felipe Balbi @ 2009-02-19 16:09 UTC (permalink / raw)
  To: Gadiyar, Anand; +Cc: rick@efn.org, linux-omap@vger.kernel.org

On Thu, Feb 19, 2009 at 08:37:39PM +0530, Gadiyar, Anand wrote:
> >   Thanks very much for the help.
> > 
> > > so Rick, you need to load a gadget driver for musb to work, g_ether or
> > > g_zero are the simplest ones.
> > 
> >   But don't I already have the g_zero enabled via:
> > 
> > CONFIG_USB_GADGET_MUSB_HDRC=y
> > 
> >   But lets assume that, for the time being, I'm only interested in USB Host.
> > 
> >   I had combed the mailing list looking for ISP1505 support and
> > happened across this:
> > 
> > > There's one problem here. If this is similar to isp1704, it doesn't have
> > > a control interface. And the only way to talk to the transceiver is via
> > > ULPI. I have patches that add musb_ulpi_read/write functions using the
> > > musb ulpi wrapper.
> > 
> >   The ISP1704 is very similar to the ISP1505, neither one has a
> > control interface (like I2C), only straight ULPI.  Does this mean that
> > there is no "out of the box" support for straight ULPI in 2.6.29?  If
> > so, what would I need to do to support it?
> > 
> >   Rick
> > 
> > 
> 
> The ISP1505 is supposed to be pretty-much plug and play. MUSB should
> in theory work directly - no configuration required.
> 
> The OMAP3 EVM boards also run a similar configuration. Maybe someone
> with that board can tell you if MUSB in the current kernel works out
> of the box.

I have a board with isp1704, I only have to talk to it when I wanna e.g.
ask it to detect if we have a charger attached to usb port.

> Looking closer at your config options, you have CONFIG_USB_MUSB_OTG
> which means you need a gadget driver loaded before you can use MUSB.
> But, you also have CONFIG_USB_ETH=y, which means your gadget driver
> is also built-in. So you won't need to insmod the module.

Then it should be working. Do you attach micro/mini-A connector to usb
port ? What happens in that case ? how about

echo 5 > /sys/modules/musb_hdrc/parameters/musb_debug

Does it give you any messages when you attach cable ? Send us dmesg
output with musb_debug set to 5.

-- 
balbi

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

* RE: USB on OMAP3530
  2009-02-19 14:58 Rick Bronson
  2009-02-19 15:07 ` Gadiyar, Anand
@ 2009-02-20  9:26 ` Gupta, Ajay Kumar
  1 sibling, 0 replies; 8+ messages in thread
From: Gupta, Ajay Kumar @ 2009-02-20  9:26 UTC (permalink / raw)
  To: rick@efn.org, Gadiyar, Anand; +Cc: linux-omap@vger.kernel.org

> -----Original Message-----
> From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of Rick
> Bronson
> Sent: Thursday, February 19, 2009 8:28 PM
> To: Gadiyar, Anand
> Cc: linux-omap@vger.kernel.org
> Subject: Re: USB on OMAP3530
> 
> 
>   Thanks very much for the help.
> 
> > so Rick, you need to load a gadget driver for musb to work, g_ether or
> > g_zero are the simplest ones.
> 
>   But don't I already have the g_zero enabled via:
> 
> CONFIG_USB_GADGET_MUSB_HDRC=y
> 
>   But lets assume that, for the time being, I'm only interested in USB
> Host.
> 
>   I had combed the mailing list looking for ISP1505 support and
> happened across this:
> 
> > There's one problem here. If this is similar to isp1704, it doesn't have
> > a control interface. And the only way to talk to the transceiver is via
> > ULPI. I have patches that add musb_ulpi_read/write functions using the
> > musb ulpi wrapper.
> 
>   The ISP1704 is very similar to the ISP1505, neither one has a
> control interface (like I2C), only straight ULPI.  Does this mean that
> there is no "out of the box" support for straight ULPI in 2.6.29?  If
> so, what would I need to do to support it?

I am using OMAP35x EVM which has ISP1504 and it works directly. Use omap3_evm_defconfig
which has all the required default config for MUSB. Just make sure to insert the gadget
module after boot OR use built-in gadget driver.

Regards,
Ajay
> 
>   Rick
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

end of thread, other threads:[~2009-02-20  9:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-18 16:46 USB on OMAP3530 Rick Bronson
2009-02-18 17:20 ` Felipe Balbi
2009-02-18 17:48   ` Gadiyar, Anand
2009-02-18 17:55     ` Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2009-02-19 14:58 Rick Bronson
2009-02-19 15:07 ` Gadiyar, Anand
2009-02-19 16:09   ` Felipe Balbi
2009-02-20  9:26 ` Gupta, Ajay Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox