RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-29 Thread Chen Peter-B29397
> Hello, > > Am I right in assuming that the MXS USB on-the-go port does not currently > support the > device (gadget) functionality? > Anybody out there working on that? > As far as I know, Maxime Ripard may already let the chipidea durl-role function work ok at mx28. It may need my chipidea

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-29 Thread maxime.rip...@free-electrons.com
Hi, On Wed, May 29, 2013 at 07:11:30AM +, Chen Peter-B29397 wrote: > > > Hello, > > > > Am I right in assuming that the MXS USB on-the-go port does not currently > > support the > > device (gadget) functionality? > > Anybody out there working on that? > > > > As far as I know, Maxime Ripa

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-29 Thread Chen Peter-B29397
> > Indeed, I've been using the patchset "Add tested id switch and vbus > connect detect support for Chipidea" from Peter for quite some time on > top of 3.9 and it works like a charm for the gadget mode on an MX28 > platform. > > BTW, Peter, I've seen that these patches are still not merged i

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-29 Thread Michael Grzeschik
Hi, On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > > > > Indeed, I've been using the patchset "Add tested id switch and vbus > > connect detect support for Chipidea" from Peter for quite some time on > > top of 3.9 and it works like a charm for the gadget mode on an M

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-29 Thread maxime.rip...@free-electrons.com
Hi Michael, On Wed, May 29, 2013 at 12:13:32PM +0200, Michael Grzeschik wrote: > Hi, > > On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > > > > > > > > Indeed, I've been using the patchset "Add tested id switch and vbus > > > connect detect support for Chipidea" from P

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-29 Thread Michael Grzeschik
On Wed, May 29, 2013 at 02:19:16PM +0200, maxime.rip...@free-electrons.com wrote: > Hi Michael, > > On Wed, May 29, 2013 at 12:13:32PM +0200, Michael Grzeschik wrote: > > Hi, > > > > On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > > > > > > > > > > > > Indeed, I've b

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-30 Thread maxime.rip...@free-electrons.com
Hi Michael, On Wed, May 29, 2013 at 02:41:08PM +0200, Michael Grzeschik wrote: > Peters patches need some more care, as they are not cleanly sperated. > One patch e.g. adds an delayed worker to handle the otg events. Another > one above that patch is removing the worker afterwards. I see, thanks!

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-05-30 Thread Hector Palacios
Dear Maxime, On 05/29/2013 09:50 AM, maxime.rip...@free-electrons.com wrote: Hi, On Wed, May 29, 2013 at 07:11:30AM +, Chen Peter-B29397 wrote: Hello, Am I right in assuming that the MXS USB on-the-go port does not currently support the device (gadget) functionality? Anybody out there w

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-07 Thread maxime.rip...@free-electrons.com
Hi Hector, On Thu, May 30, 2013 at 06:17:47PM +0200, Hector Palacios wrote: > Dear Maxime, > > On 05/29/2013 09:50 AM, maxime.rip...@free-electrons.com wrote: > >Hi, > > > >On Wed, May 29, 2013 at 07:11:30AM +, Chen Peter-B29397 wrote: > >> > >>>Hello, > >>> > >>>Am I right in assuming that t

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-21 Thread Marek Vasut
Hi, > Hi, > > On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > Indeed, I've been using the patchset "Add tested id switch and vbus > > > connect detect support for Chipidea" from Peter for quite some time on > > > top of 3.9 and it works like a charm for the gadget mode on

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-21 Thread Michael Grzeschik
Hi Marek, On Fri, Jun 21, 2013 at 01:26:10PM +0200, Marek Vasut wrote: > Hi, > > > Hi, > > > > On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > > Indeed, I've been using the patchset "Add tested id switch and vbus > > > > connect detect support for Chipidea" from Peter fo

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-21 Thread Marek Vasut
Dear Michael Grzeschik, > Hi Marek, > > On Fri, Jun 21, 2013 at 01:26:10PM +0200, Marek Vasut wrote: > > Hi, > > > > > Hi, > > > > > > On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > > > Indeed, I've been using the patchset "Add tested id switch and vbus > > > > > conne

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-21 Thread Marek Vasut
Hi, > Dear Michael Grzeschik, > > > Hi Marek, > > > > On Fri, Jun 21, 2013 at 01:26:10PM +0200, Marek Vasut wrote: > > > Hi, > > > > > > > Hi, > > > > > > > > On Wed, May 29, 2013 at 08:07:55AM +, Chen Peter-B29397 wrote: > > > > > > Indeed, I've been using the patchset "Add tested id swit

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-22 Thread Chen Peter-B29397
> > Peter, I dunno if you are already aware of it, but the USB peripheral > mode hangs > on MX233. It's easy to replicate for example if you try to run CDC > ethernet over > the USB peripheral mode, then telnet into the board and run "dmesg" . > This will > trigger a "larger" data transfer which

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-22 Thread Marek Vasut
Hi Peter, > > Peter, I dunno if you are already aware of it, but the USB peripheral > > mode hangs > > on MX233. It's easy to replicate for example if you try to run CDC > > ethernet over > > the USB peripheral mode, then telnet into the board and run "dmesg" . > > This will > > trigger a "larger"

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-23 Thread Chen Peter-B29397
> Hi Peter, > > > > Peter, I dunno if you are already aware of it, but the USB peripheral > > > mode hangs > > > on MX233. It's easy to replicate for example if you try to run CDC > > > ethernet over > > > the USB peripheral mode, then telnet into the board and run "dmesg" . > > > This will > >

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-24 Thread Shawn Guo
On Mon, Jun 24, 2013 at 01:37:59AM +, Chen Peter-B29397 wrote: > Add shawn. > > Marek, have you tried mx23 evk? > > Shawn, marek reported the udc function at mx23 works abnormal, but it works > good at mx28. Have you tried mx23 udc recently? > Sorry, I never tried usb on my imx23-evk due to

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-24 Thread Marek Vasut
Hello Peter, > > Hi Peter, > > > > > > Peter, I dunno if you are already aware of it, but the USB peripheral > > > > mode hangs > > > > on MX233. It's easy to replicate for example if you try to run CDC > > > > ethernet over > > > > the USB peripheral mode, then telnet into the board and run "dme

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-24 Thread Chen Peter-B29397
> > No, I don't have this one available right now. I tried both MX23 > Olinuxino maxi > (I just mutilated the board so that I cut traces to the USB devices on > the board > and routed out USB gadget connector) and a custom MX23 board. > > Note that both have working USB peripheral mode in U-Bo

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-25 Thread Fabio Estevam
On Mon, Jun 24, 2013 at 10:51 AM, Marek Vasut wrote: > Fabio, can you possibly test on MX23EVK please? I never used USB gadget with chipidea driver. Could you please explain what are the changes I need to do in the dts file (I want to try on mx28evk first) and defconfig in order to be able to t

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-25 Thread Fabio Estevam
On Tue, Jun 25, 2013 at 11:23 AM, Fabio Estevam wrote: > On Mon, Jun 24, 2013 at 10:51 AM, Marek Vasut wrote: > >> Fabio, can you possibly test on MX23EVK please? > > I never used USB gadget with chipidea driver. > > Could you please explain what are the changes I need to do in the dts > file (I

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-25 Thread Marek Vasut
Dear Fabio Estevam, > On Tue, Jun 25, 2013 at 11:23 AM, Fabio Estevam wrote: > > On Mon, Jun 24, 2013 at 10:51 AM, Marek Vasut wrote: > >> Fabio, can you possibly test on MX23EVK please? > > > > I never used USB gadget with chipidea driver. > > > > Could you please explain what are the changes

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-25 Thread Marek Vasut
Hi Peter, > > No, I don't have this one available right now. I tried both MX23 > > Olinuxino maxi > > (I just mutilated the board so that I cut traces to the USB devices on > > the board > > and routed out USB gadget connector) and a custom MX23 board. > > > > Note that both have working USB peri

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-27 Thread Marek Vasut
Hi Peter, > > No, I don't have this one available right now. I tried both MX23 > > Olinuxino maxi > > (I just mutilated the board so that I cut traces to the USB devices on > > the board > > and routed out USB gadget connector) and a custom MX23 board. > > > > Note that both have working USB peri

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-27 Thread Chen Peter-B29397
> - I use the port in HOST mode by plugging in a USB pendrive over the OTG- > capable > reduction ; this works OK > - I disconnect the reduction and connect it to the computer ; here I get > "timeout waiting for 0800 in 11". > > This means the BSV bit in OTGSC register wasn't unset. > > Int

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-28 Thread Marek Vasut
Hi Peter, > > - I use the port in HOST mode by plugging in a USB pendrive over the OTG- > > capable > > reduction ; this works OK > > - I disconnect the reduction and connect it to the computer ; here I get > > "timeout waiting for 0800 in 11". > > > > This means the BSV bit in OTGSC register

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-28 Thread Chen Peter-B29397
> > Where can I measure this? > > > Two possible reasons: > > > > 1. You have not gpio control for vbus toggle when role switches. > > This works well. > > > 2. Your hardware has some problems that the vbus can't lower than 0.8v. > > How can I check that? > Just measure the voltage of your

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-28 Thread Marek Vasut
Dear Chen Peter-B29397, > > Where can I measure this? > > > > > Two possible reasons: > > > > > > 1. You have not gpio control for vbus toggle when role switches. > > > > This works well. > > > > > 2. Your hardware has some problems that the vbus can't lower than 0.8v. > > > > How can I check

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-28 Thread Chen Peter-B29397
> > > > Just measure the voltage of your otg vbus pin. > > Ok, I see it's 2.25 volts after I disconnect the microB-A thing . I > should see > 0.8V constantly with nothing connected on the port? > You should see the voltage of vbus pin is less than 0.8v when nothing is connected, we use B_SESS

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-28 Thread Fabio Estevam
On Fri, Jun 28, 2013 at 10:04 AM, Chen Peter-B29397 wrote: > > >> > >> > Just measure the voltage of your otg vbus pin. >> >> Ok, I see it's 2.25 volts after I disconnect the microB-A thing . I >> should see >> 0.8V constantly with nothing connected on the port? >> > > You should see the voltage o

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-06-30 Thread Chen Peter-B29397
> > > > You should see the voltage of vbus pin is less than 0.8v when > > nothing is connected, we use B_SESSION_VALID (0.8v) to judge > > it is connected or not. > > > > You get 2.25 all the time or it is discharged very slowly? > > On my mx28evk it discharges very very slowly. Any hints about

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-06 Thread Marek Vasut
Hi Peter, > > Where can I measure this? > > > > > Two possible reasons: > > > > > > 1. You have not gpio control for vbus toggle when role switches. > > > > This works well. > > > > > 2. Your hardware has some problems that the vbus can't lower than 0.8v. > > > > How can I check that? > > Ju

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-07 Thread Chen Peter-B29397
.ha...@pengutronix.de; alexander.shish...@linux.intel.com; Estevam > Fabio-R49496; Marc Kleine-Budde; m.grzesc...@pengutronix.de; linux-arm- > ker...@lists.infradead.org > Subject: Re: Chipidea usb otg support for IMX/MXS (device functionality) > > Hi Peter, > > > > Where can I

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-08 Thread Marek Vasut
linux-usb@vger.kernel.org; > > s.ha...@pengutronix.de; alexander.shish...@linux.intel.com; Estevam > > Fabio-R49496; Marc Kleine-Budde; m.grzesc...@pengutronix.de; linux-arm- > > ker...@lists.infradead.org > > Subject: Re: Chipidea usb otg support for IMX/MXS (device functionali

RE: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-08 Thread Chen Peter-B29397
electrons.com; Hector Palacios; linux-usb@vger.kernel.org; > > > s.ha...@pengutronix.de; alexander.shish...@linux.intel.com; Estevam > > > Fabio-R49496; Marc Kleine-Budde; m.grzesc...@pengutronix.de; linux- > arm- > > > ker...@lists.infradead.org > > >

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-09 Thread Marek Vasut
Hi Peter, [...] > > It needs to check your hardware, it is probably there is a high capacitance > at vbus pin. Besides, the vbus should be lower than 0.8v if it is > disconnected from pc. I just wonder why I can no longer use device mode only after I plug in the adaptor for host device. Before

Re: Chipidea usb otg support for IMX/MXS (device functionality)

2013-07-09 Thread Marek Vasut
Hi Peter, > > Hi Peter, > > > > > > Peter, I dunno if you are already aware of it, but the USB peripheral > > > > mode hangs > > > > on MX233. It's easy to replicate for example if you try to run CDC > > > > ethernet over > > > > the USB peripheral mode, then telnet into the board and run "dmesg"