* FSUSB Port on OMAP2430 SDP
@ 2007-07-30 19:34 Amit Gupta
[not found] ` <B62D67BD8EC3324C8A3DACEEA1A0D6C6021B9A5B@dlee12.ent.ti.com>
0 siblings, 1 reply; 9+ messages in thread
From: Amit Gupta @ 2007-07-30 19:34 UTC (permalink / raw)
To: linux-omap-open-source
Hello
I am using OMAP 2430 SDP v4.0 and trying to configure the FS USB port 0(J51
on the main board) as host. I am using kernel v2.6.14
I am not getting any of the interrupts after connecting the cable/and
device. And the device (mass storage device) is not getting configured.
· Does the port need to configure as OTG port and then make it as
host? That's how it seems to me from the code.
· Do we need to make any changes in the files for making it to work?
Also kindly send the config file for the same.
Thanks & Regards
Amit
^ permalink raw reply [flat|nested] 9+ messages in thread
* Fwd: FSUSB Port on OMAP2430 SDP
[not found] ` <78d6ed630707311150x607380dbsa71cec7c51c61529@mail.gmail.com>
@ 2007-08-01 5:18 ` Amit Gupta
2007-08-01 18:15 ` Kamat, Nishant
0 siblings, 1 reply; 9+ messages in thread
From: Amit Gupta @ 2007-08-01 5:18 UTC (permalink / raw)
To: Linux OMAP
Hello
Thanks for the prompt reply.
As per the reference manual, I saw the FSUSB port 0 being OTG port which has
connections with FS - host controller and FS- device controller. Also as you
mentioned the routing of signals beteween OTG and mini AB receptacle J51
happens through
ISP 1301(OTG transceiver). I have included :-
CONFIG_USB_OTG , CONFIG_USB_OHCI_HCD, CONFIG_USB_OMAP24XX_FS_PORT0 ,
CONFIG_ARCH_OMAP243X and CONFIG_ISP1301_OMAP
among the main ones. So i am trying to configure the port as FSUSB port as
host with these configurations.
Other Configurations I am using :-
1. I am using OMAP 2430 SDP v4.0
2. I have made switch setting S-6-6 and S-6-7 ON for using FSUSB port 0
3. I am connecting mini B cable to my mini AB port and connecting mass
storage device at the other end.
As of now my device is not getting powered ON( the mass storage poer LED is
not glowing which reqires 5 volts ) itself and its not registering any of
the interrupts. Kindly tell me the reason for the same
Also if possible, kindly let me know if I can configure any of the other
ports on OMAP 2430 SDP v4.0 as host ports.
Thanks & Regards
Aman
On 7/31/07, Kipisz, Steven <s-kipisz2@ti.com> wrote:
>
> Amit,
> I think that port is either host or client. You have to choose either
> host or Gadget, and not OTG.
>
> Make sure you have the ISP1301 enabled in the I2C drivers. Do not
> select the TWL4030 USB transceiver.
>
> Under USB, make sure you only have host selected (deselect Gadget).
> Also make sure you select OHCI and NOT the Inventra.
>
> Steve K.
>
> -----Original Message-----
> From: linux-omap-open-source-bounces@linux.omap.com
> [mailto: linux-omap-open-source-bounces@linux.omap.com] On Behalf Of Amit
> Gupta
> Sent: Monday, July 30, 2007 2:34 PM
> To: linux-omap-open-source@linux.omap.com
> Subject: FSUSB Port on OMAP2430 SDP
>
> Hello
>
> I am using OMAP 2430 SDP v4.0 and trying to configure the FS USB port
> 0(J51
> on the main board) as host. I am using kernel v2.6.14
>
>
>
> I am not getting any of the interrupts after connecting the cable/and
> device. And the device (mass storage device) is not getting configured.
>
>
>
> * Does the port need to configure as OTG port and then make it as
> host? That's how it seems to me from the code.
>
>
>
> * Do we need to make any changes in the files for making it to
> work?
> Also kindly send the config file for the same.
>
> Thanks & Regards
>
> Amit
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: FSUSB Port on OMAP2430 SDP
2007-08-01 5:18 ` Fwd: " Amit Gupta
@ 2007-08-01 18:15 ` Kamat, Nishant
2007-08-01 19:03 ` Amit Gupta
0 siblings, 1 reply; 9+ messages in thread
From: Kamat, Nishant @ 2007-08-01 18:15 UTC (permalink / raw)
To: Amit Gupta, Linux OMAP
Amit,
> -----Original Message-----
> From: Amit Gupta
> Sent: Wednesday, August 01, 2007 12:19 AM
>
> As per the reference manual, I saw the FSUSB port 0 being OTG
> port which has connections with FS - host controller and FS-
> device controller. Also as you mentioned the routing of
> signals beteween OTG and mini AB receptacle J51 happens
> through ISP 1301(OTG transceiver). I have included :-
>
> CONFIG_USB_OTG , CONFIG_USB_OHCI_HCD,
> CONFIG_USB_OMAP24XX_FS_PORT0 , CONFIG_ARCH_OMAP243X and
> CONFIG_ISP1301_OMAP
>
Don't enable CONFIG_USB_OTG. That won't work without the gadget side driver, plus its not tested.
Also don't enable CONFIG_USB_MUSB_HDRC (Mentor/Inventra HS USB), in case you have, as it uses the same pins as FS USB port 0.
> As of now my device is not getting powered ON( the mass
> storage poer LED is not glowing which reqires 5 volts )
> itself and its not registering any of the interrupts. Kindly
> tell me the reason for the same
>
Try plugging in some other device, or a powered hub. The board might provide enough current for your device.
>
> Also if possible, kindly let me know if I can configure any
> of the other ports on OMAP 2430 SDP v4.0 as host ports.
>
> Thanks & Regards
>
> Aman
>
>
>
> On 7/31/07, Kipisz, Steven <s-kipisz2@ti.com> wrote:
> >
> > Amit,
> > I think that port is either host or client. You have to
> choose either
> > host or Gadget, and not OTG.
> >
> > Make sure you have the ISP1301 enabled in the I2C drivers. Do not
> > select the TWL4030 USB transceiver.
> >
> > Under USB, make sure you only have host selected (deselect Gadget).
> > Also make sure you select OHCI and NOT the Inventra.
> >
> > Steve K.
> >
> > -----Original Message-----
> > From: linux-omap-open-source-bounces@linux.omap.com
> > [mailto: linux-omap-open-source-bounces@linux.omap.com] On
> Behalf Of
> > Amit Gupta
> > Sent: Monday, July 30, 2007 2:34 PM
> > To: linux-omap-open-source@linux.omap.com
> > Subject: FSUSB Port on OMAP2430 SDP
> >
> > Hello
> >
> > I am using OMAP 2430 SDP v4.0 and trying to configure the
> FS USB port
> > 0(J51
> > on the main board) as host. I am using kernel v2.6.14
> >
> >
> >
> > I am not getting any of the interrupts after connecting the
> cable/and
> > device. And the device (mass storage device) is not getting
> configured.
> >
> >
> >
> > * Does the port need to configure as OTG port and
> then make it as
> > host? That's how it seems to me from the code.
> >
> >
> >
> > * Do we need to make any changes in the files for
> making it to
> > work?
> > Also kindly send the config file for the same.
> >
> > Thanks & Regards
> >
> > Amit
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FSUSB Port on OMAP2430 SDP
2007-08-01 18:15 ` Kamat, Nishant
@ 2007-08-01 19:03 ` Amit Gupta
2007-08-01 19:16 ` Kamat, Nishant
0 siblings, 1 reply; 9+ messages in thread
From: Amit Gupta @ 2007-08-01 19:03 UTC (permalink / raw)
To: Kamat, Nishant; +Cc: Linux OMAP
Hello Nishant
Thanks for the reply
>>Don't enable CONFIG_USB_OTG. That won't work without the gadget side
driver, plus its not >>tested.
I already tried testing with this configuration. Its not working.
>>Try plugging in some other device, or a powered hub. The board might
provide enough current for >>your device.
Along with the first configuration(disabling config _otg etc....), I also
tried plugging in the USB mouse but its not getting powered ON and not
giving me any interrupts nor messages with demsg -c.
Actually I am connecting mini B plug to the mini AB receptcle of FSUSB port
0. The mini B plug to Standard A cable is only there available with me which
I got with the board to download my images through CSST from desktop. And I
have to connect standard female to standard female cable to the Standard A
end of the cable and at the other end I can connect devices like mass
storage device or USB mouse.
I am not able to get the mini A plug to standard B cable available in India(
which I am not sure if its mandatory)
Should I connect the powered hub at the other end of female cable. The
powered hubs have their own power mechanism ?
Can we handle the alternaitve to power through so that we can power up the
Vbus to 5 volts >?
I found some code in isp1301_omap.c where we are configuring the transceiver
bits through I2C but I am not sure how its being done siince if its already
handled within the ode my port should get powered up
Thanks & Regards
Amit
On 8/1/07, Kamat, Nishant <nskamat@ti.com> wrote:
>
> Amit,
>
> > -----Original Message-----
> > From: Amit Gupta
> > Sent: Wednesday, August 01, 2007 12:19 AM
> >
> > As per the reference manual, I saw the FSUSB port 0 being OTG
> > port which has connections with FS - host controller and FS-
> > device controller. Also as you mentioned the routing of
> > signals beteween OTG and mini AB receptacle J51 happens
> > through ISP 1301(OTG transceiver). I have included :-
> >
> > CONFIG_USB_OTG , CONFIG_USB_OHCI_HCD,
> > CONFIG_USB_OMAP24XX_FS_PORT0 , CONFIG_ARCH_OMAP243X and
> > CONFIG_ISP1301_OMAP
> >
>
> Don't enable CONFIG_USB_OTG. That won't work without the gadget side
> driver, plus its not tested.
>
> Also don't enable CONFIG_USB_MUSB_HDRC (Mentor/Inventra HS USB), in case
> you have, as it uses the same pins as FS USB port 0.
>
> > As of now my device is not getting powered ON( the mass
> > storage poer LED is not glowing which reqires 5 volts )
> > itself and its not registering any of the interrupts. Kindly
> > tell me the reason for the same
> >
>
> Try plugging in some other device, or a powered hub. The board might
> provide enough current for your device.
>
> >
> > Also if possible, kindly let me know if I can configure any
> > of the other ports on OMAP 2430 SDP v4.0 as host ports.
> >
> > Thanks & Regards
> >
> > Aman
> >
> >
> >
> > On 7/31/07, Kipisz, Steven <s-kipisz2@ti.com> wrote:
> > >
> > > Amit,
> > > I think that port is either host or client. You have to
> > choose either
> > > host or Gadget, and not OTG.
> > >
> > > Make sure you have the ISP1301 enabled in the I2C drivers. Do not
> > > select the TWL4030 USB transceiver.
> > >
> > > Under USB, make sure you only have host selected (deselect Gadget).
> > > Also make sure you select OHCI and NOT the Inventra.
> > >
> > > Steve K.
> > >
> > > -----Original Message-----
> > > From: linux-omap-open-source-bounces@linux.omap.com
> > > [mailto: linux-omap-open-source-bounces@linux.omap.com] On
> > Behalf Of
> > > Amit Gupta
> > > Sent: Monday, July 30, 2007 2:34 PM
> > > To: linux-omap-open-source@linux.omap.com
> > > Subject: FSUSB Port on OMAP2430 SDP
> > >
> > > Hello
> > >
> > > I am using OMAP 2430 SDP v4.0 and trying to configure the
> > FS USB port
> > > 0(J51
> > > on the main board) as host. I am using kernel v2.6.14
> > >
> > >
> > >
> > > I am not getting any of the interrupts after connecting the
> > cable/and
> > > device. And the device (mass storage device) is not getting
> > configured.
> > >
> > >
> > >
> > > * Does the port need to configure as OTG port and
> > then make it as
> > > host? That's how it seems to me from the code.
> > >
> > >
> > >
> > > * Do we need to make any changes in the files for
> > making it to
> > > work?
> > > Also kindly send the config file for the same.
> > >
> > > Thanks & Regards
> > >
> > > Amit
> > > _______________________________________________
> > > Linux-omap-open-source mailing list
> > > Linux-omap-open-source@linux.omap.com
> > > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> > >
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: FSUSB Port on OMAP2430 SDP
2007-08-01 19:03 ` Amit Gupta
@ 2007-08-01 19:16 ` Kamat, Nishant
2007-08-01 19:42 ` Amit Gupta
2007-08-18 0:43 ` David Brownell
0 siblings, 2 replies; 9+ messages in thread
From: Kamat, Nishant @ 2007-08-01 19:16 UTC (permalink / raw)
To: Amit Gupta; +Cc: Linux OMAP
Amit
-----------------------------------------
From: Amit Gupta
Sent: Wednesday, August 01, 2007 2:04 PM
> Actually I am connecting mini B plug to the mini AB receptcle of FSUSB port 0.
Oh, that's the problem. A mini-A cable has to be plugged in to go to host mode.
> I am not able to get the mini A plug to standard B cable available in India( which I am not sure if its mandatory)
Its mandatory according to the USB spec, and the way the isp1301_omap.c driver detects the A-device/B-device mode. However, for testing purposes you might be able to hack isp1301_omap.c to allow working as a host with mini-B cable plugged in.
> Should I connect the powered hub at the other end of female cable.
Won't help unless you use the mini-A - to standard-A female adapter, or do the hack as mentioned above.
> The powered hubs have their own power mechanism ?
Yes, powered hubs don't need the host to supply current for their operation.
Regards,
Nishant
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FSUSB Port on OMAP2430 SDP
2007-08-01 19:16 ` Kamat, Nishant
@ 2007-08-01 19:42 ` Amit Gupta
2007-08-01 19:57 ` Felipe Balbi
2007-08-01 21:59 ` Kamat, Nishant
2007-08-18 0:43 ` David Brownell
1 sibling, 2 replies; 9+ messages in thread
From: Amit Gupta @ 2007-08-01 19:42 UTC (permalink / raw)
To: Kamat, Nishant; +Cc: Linux OMAP
Hi Nishant
Thanks for the quick response.
Ok, so you mean to say powered hub would not solve the problem.And the linux
FS - USB port host code is written assuming we attach Mini A plug
.
>>Hacking of isp1301_omap.c is not very clear to me ?
As per the ISP1301 data sheet at:-
http://balloonboard.org/hardware/300/ds/ISP1301.pdf
Do I need to set the OTG Control registerS Vbus_drv bit ? and should I do
the same within the isp1301_set_host() of isp1301_omap.c. That is what seems
to me? but still i am not sure about the transceiver logic, whether it wil
read the id pin continously and power up/down the vbus accordingly ?
Thanks & Regards
Amit
On 8/2/07, Kamat, Nishant <nskamat@ti.com> wrote:
>
> Amit
>
> -----------------------------------------
> From: Amit Gupta
> Sent: Wednesday, August 01, 2007 2:04 PM
>
> > Actually I am connecting mini B plug to the mini AB receptcle of FSUSB
> port 0.
>
> Oh, that's the problem. A mini-A cable has to be plugged in to go to host
> mode.
>
>
> > I am not able to get the mini A plug to standard B cable available in
> India( which I am not sure if its mandatory)
>
> Its mandatory according to the USB spec, and the way the isp1301_omap.c
> driver detects the A-device/B-device mode. However, for testing purposes you
> might be able to hack isp1301_omap.c to allow working as a host with mini-B
> cable plugged in.
>
>
> > Should I connect the powered hub at the other end of female cable.
>
> Won't help unless you use the mini-A - to standard-A female adapter, or do
> the hack as mentioned above.
>
> > The powered hubs have their own power mechanism ?
>
> Yes, powered hubs don't need the host to supply current for their
> operation.
>
>
> Regards,
> Nishant
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FSUSB Port on OMAP2430 SDP
2007-08-01 19:42 ` Amit Gupta
@ 2007-08-01 19:57 ` Felipe Balbi
2007-08-01 21:59 ` Kamat, Nishant
1 sibling, 0 replies; 9+ messages in thread
From: Felipe Balbi @ 2007-08-01 19:57 UTC (permalink / raw)
To: Amit Gupta; +Cc: Linux OMAP
On 8/1/07, Amit Gupta <amit_jobs05@inbox.com> wrote:
> Hi Nishant
>
> Thanks for the quick response.
>
> Ok, so you mean to say powered hub would not solve the problem.And the linux
> FS - USB port host code is written assuming we attach Mini A plug
> .
> >>Hacking of isp1301_omap.c is not very clear to me ?
It's probably easier to hack the cable and ground id-pin with a small
spot of weld...
>
> As per the ISP1301 data sheet at:-
> http://balloonboard.org/hardware/300/ds/ISP1301.pdf
>
> Do I need to set the OTG Control registerS Vbus_drv bit ? and should I do
> the same within the isp1301_set_host() of isp1301_omap.c. That is what seems
> to me? but still i am not sure about the transceiver logic, whether it wil
> read the id pin continously and power up/down the vbus accordingly ?
>
> Thanks & Regards
>
> Amit
>
>
> On 8/2/07, Kamat, Nishant <nskamat@ti.com> wrote:
> >
> > Amit
> >
> > -----------------------------------------
> > From: Amit Gupta
> > Sent: Wednesday, August 01, 2007 2:04 PM
> >
> > > Actually I am connecting mini B plug to the mini AB receptcle of FSUSB
> > port 0.
> >
> > Oh, that's the problem. A mini-A cable has to be plugged in to go to host
> > mode.
> >
> >
> > > I am not able to get the mini A plug to standard B cable available in
> > India( which I am not sure if its mandatory)
> >
> > Its mandatory according to the USB spec, and the way the isp1301_omap.c
> > driver detects the A-device/B-device mode. However, for testing purposes you
> > might be able to hack isp1301_omap.c to allow working as a host with mini-B
> > cable plugged in.
> >
> >
> > > Should I connect the powered hub at the other end of female cable.
> >
> > Won't help unless you use the mini-A - to standard-A female adapter, or do
> > the hack as mentioned above.
> >
> > > The powered hubs have their own power mechanism ?
> >
> > Yes, powered hubs don't need the host to supply current for their
> > operation.
> >
> >
> > Regards,
> > Nishant
> > _______________________________________________
> > Linux-omap-open-source mailing list
> > Linux-omap-open-source@linux.omap.com
> > http://linux.omap.com/mailman/listinfo/linux-omap-open-source
> >
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: FSUSB Port on OMAP2430 SDP
2007-08-01 19:42 ` Amit Gupta
2007-08-01 19:57 ` Felipe Balbi
@ 2007-08-01 21:59 ` Kamat, Nishant
1 sibling, 0 replies; 9+ messages in thread
From: Kamat, Nishant @ 2007-08-01 21:59 UTC (permalink / raw)
To: Amit Gupta; +Cc: Linux OMAP
Amit,
--------------------------
From: Amit Gupta
Sent: Wednesday, August 01, 2007 2:42 PM
>>Hacking of isp1301_omap.c is not very clear to me ?
In isp1301_set_host(), interrupts are enabled for ID_GND (=> mini-A connectors). Maybe enabling interrupts for ID_FLOAT (mini-B connectors), and making sure that you move to the A-host state in the interrupt handler will make it work for you.
> Do I need to set the OTG Control registerS Vbus_drv bit ?
Yes.
> and should I do the same within the isp1301_set_host() of isp1301_omap.c.
Yes.
> That is what seems to me? but still i am not sure about the transceiver logic, whether it wil read the id pin continously and power up/down the vbus accordingly ?
It will read the ID pin continuously, but generate interrupts for only those transitions that you enable. It won't turn VBUS on or off automatically based on ID value.
Regards,
Nishant
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: FSUSB Port on OMAP2430 SDP
2007-08-01 19:16 ` Kamat, Nishant
2007-08-01 19:42 ` Amit Gupta
@ 2007-08-18 0:43 ` David Brownell
1 sibling, 0 replies; 9+ messages in thread
From: David Brownell @ 2007-08-18 0:43 UTC (permalink / raw)
To: linux-omap-open-source; +Cc: Amit Gupta
On Wednesday 01 August 2007, Kamat, Nishant wrote:
> Its mandatory according to the USB spec, and the way the
> isp1301_omap.c driver detects the A-device/B-device mode.
> However, for testing purposes you might be able to hack
> isp1301_omap.c to allow working as a host with mini-B
> cable plugged in.
It used to be that no hacking was required ... if you set
up e.g. an H2 with only host side USB, it would ignore the
ID pin and always operate the OTG port in host-only mode.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-08-18 0:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 19:34 FSUSB Port on OMAP2430 SDP Amit Gupta
[not found] ` <B62D67BD8EC3324C8A3DACEEA1A0D6C6021B9A5B@dlee12.ent.ti.com>
[not found] ` <78d6ed630707311150x607380dbsa71cec7c51c61529@mail.gmail.com>
2007-08-01 5:18 ` Fwd: " Amit Gupta
2007-08-01 18:15 ` Kamat, Nishant
2007-08-01 19:03 ` Amit Gupta
2007-08-01 19:16 ` Kamat, Nishant
2007-08-01 19:42 ` Amit Gupta
2007-08-01 19:57 ` Felipe Balbi
2007-08-01 21:59 ` Kamat, Nishant
2007-08-18 0:43 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox