From: "Amit Gupta" <amit_jobs05@inbox.com>
To: Felipe Balbi <felipebalbi@users.sourceforge.net>
Cc: Linux OMAP <linux-omap-open-source@linux.omap.com>
Subject: Re: FSUSB Port 0 in OAMP2430 SDP
Date: Thu, 9 Aug 2007 02:37:30 +0530 [thread overview]
Message-ID: <78d6ed630708081407h4424cc3fpede366e99bed79f0@mail.gmail.com> (raw)
In-Reply-To: <31e679430708081339y1c0315b8i8f9b907ff6e235ae@mail.gmail.com>
Felipe
Appreciate your prompt reply.
Just to reiterate what you said:-
1. Initiallly on powering on the board, the Vbus voltage is 3.2 volts
(and not 5 volts), this is required to sense the device.
2. Now the configuration needs to be done like enabling the
interrupt(of transceiver and OMAP controller), configuration of OMAP
host controller registers wihin the USB host driver code.
3. Now when device is conntected, the D+/D- will be pulled up and
hence the transceiver detects some device has beeen connected and
interrrupt is generated by transceiver to the OMAP.
4. Once the interrupt is generated, the transceiver will power up the
5 volts(automatically by reading ID pin) /or the host controller
detecting the interrupt will forcefully power up the Vbus(through
transceiver register) to 5 volts (That we have to find it out - how it
can be done).
Just confirm whether this sequence is correct.
Again thanks in advance.
Thanks & Regards
Ammit
On 8/9/07, Felipe Balbi <felipebalbi@users.sourceforge.net> wrote:
> Hi,
>
> On 8/8/07, Amit Gupta <amitjobs05@gmail.com> wrote:
> > Hi Felipe/Nishan/all
> >
> > I have been able to sucessfully get an USB host interrupt by pulling
> > up voltage levels in Transceiver but its configuring device as low
> > powered device. Also I am getting host interrupt even without
> > connecting the device since pulling up the voltage levels resulted in
> > maybe D+/D- pull up which is sensed as an host interrupt by OMAP
> > board.
> >
> > You seem to be correct in your saying that transceiver does more than
> > just sensing the voltage levels and passig the interrupts. But I am
> > not able to understand the sequence of thing happening like before
> > connecting the device should the port be powered up to 5 volts or it
> > should happen when device connected pulls up/down D+/D- pin. And once
> > this is done then interrupt is also sent and enumeration starts ?
>
> It can only power up 5V after sensing a device connected and its
> pullups are connected. After that, it'll start the enumeration.
>
> Actually, every host/otg controller has to provide means for you to
> force Vbus on, but it'll only work if you have any load between 5V and
> Vbus (try with 300 Ohm resistor) and you can also add a 1K Ohm
> resistor between D+/D-
>
> To understand how to force the controller to power Vbus, read its docs
> since it's completely HW dependent.
>
> >
> > I am going through the USB specs to know this but I suppose one who
> > has worked in USB can immediately answer to my this query since its
> > very urgent.
>
> hopefully I could help you ;-)
>
> >
> > Thanks & Regards
> >
> > Amit
> >
> > ---------- Forwarded message ----------
> > From: Amit Gupta <amit_jobs05@inbox.com>
> > Date: Aug 7, 2007 1:40 AM
> > Subject: Re: FSUSB Port 0 in OAMP2430 SDP
> > To:
> > Cc: Felipe Balbi <felipebalbi@users.sourceforge.net>, Linux OMAP
> > <linux-omap-open-source@linux.omap.com>, "Woodruff, Richard"
> > <r-woodruff2@ti.com>, "Kamat, Nishant" <nskamat@ti.com>
> >
> >
> > >>I think more stuff happens in hardware then just setting those
> > >>registers. Probably the transceiver is applying some pull-up and/or
> > >>pull-down resistors when ID pin is grounded. I'd read musb & otg docs
> > >>again to remember what really happens there.
> >
> > >>If you check OTG specs rev 1.3 it presents what happens when you
> > >>ground ID pin.
> >
> > I was going through OTG specs 1.3. Its difficult to go through
> > completely but then it Pg 23 tells a bit which I was onterested in. It
> > tells that Vbus switcjing can also take place through an application.
> > It says that bus is powered up only when application tries to call ot
> > there is b_srp_init, In the first case if the application is trigering
> > the bus to power on then its definitely happening through software
> > only. Also it talks about bus powered USB device initialting the
> > session. Now it clearly says that it will post an event/interrupt.
> >
> > But still you may be correct that lots of things might be hapening
> > within the transeiver hardware like pull up/pull down but I need to
> > know that do that so that I can program the Transceiver accordingly.
> >
> > Thanks in advance
> >
> > Regards
> >
> > Amit
> > On 8/7/07, Woodruff, Richard <r-woodruff2@ti.com> wrote:
> > > > I'm pretty sure you'll need a self-powered hub anyway 'cause MUSB can
> > > > only provide 100mA and if you wanna power a non-otg usb device it uses
> > > > up to 500mA. The self-powered hub masks this limits to the controller
> > > > as it'll power the usb devices itself.
> > >
> > > I think you are both right and wrong. Its been a few years since I looked, so their probably have been some changes.
> > >
> > > MUSB likely doesn't supply power to anyone. The board's power supply will do this. What its capacity is depends on how it was setup. To be OTG stamp on it a device might need to stay at or below 100mA (might be self powered also). For the omap-device to get the stamp it might have to at least supply 100. Do both ends have the USB logo on them? Do you need them to be?
> > >
> > > An OTG device to get certified need to support many devices ether. You can have a white list which allows limited support.
> > >
> > > It might be you need to manually turn on some LDO or other on some detection interrupt. There was one board with the fs-usb block which had this kind of logic I dealt with. It had 2 ports, one gave just enough power for a target peripheral and another port gave lots of power.
> > >
> > > I seem to recall some noise about raising the limits but that may have been a dream.
> > >
> > > Regards,
> > > Richard W.
> > > _______________________________________________
> > > Linux-omap-open-source mailing list
> > > Linux-omap-open-source@linux.omap.com
> > > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > >
> >
>
>
> --
> Best Regards,
>
> Felipe Balbi
> felipebalbi@users.sourceforge.net
>
next prev parent reply other threads:[~2007-08-08 21:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-04 19:37 FSUSB Port 0 in OAMP2430 SDP Amit Gupta
2007-08-06 0:18 ` Felipe Balbi
2007-08-06 18:54 ` Amit Gupta
2007-08-06 19:11 ` Felipe Balbi
2007-08-06 19:29 ` Woodruff, Richard
2007-08-06 20:10 ` Amit Gupta
2007-08-08 20:28 ` Fwd: " Amit Gupta
2007-08-08 20:39 ` Felipe Balbi
2007-08-08 21:07 ` Amit Gupta [this message]
2007-08-09 11:19 ` Felipe Balbi
2007-08-09 18:36 ` Amit Gupta
2007-08-18 0:54 ` David Brownell
2007-08-18 18:16 ` Amit Gupta
2007-08-18 18:57 ` David Brownell
2007-08-18 20:10 ` Amit Gupta
2007-08-19 22:21 ` FSUSB Port 0 in OMAP2430 SDP David Brownell
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=78d6ed630708081407h4424cc3fpede366e99bed79f0@mail.gmail.com \
--to=amit_jobs05@inbox.com \
--cc=felipebalbi@users.sourceforge.net \
--cc=linux-omap-open-source@linux.omap.com \
/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