mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* i.MX21 USB OTG
@ 2012-03-22 23:25 Derald D. Woods
  2012-03-23  8:36 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Derald D. Woods @ 2012-03-22 23:25 UTC (permalink / raw)
  To: barebox

All,

I have an existing design that uses the i.MX21 ARM9 processor. The
design currently uses an external USB OTG chip. The chip is now
end-of-life. I know that this is an older ARM processor. It still meets
most of the design needs. Is the i.MX21 OTG functionality considered
reliable? I have not seen any real success stories with the i.MX21 USB
OTG implementation. Our board currently utilizes the USB OTG chip at
the bootloader and Linux kernel level.

I would appreciate being pointed in the right direction or warned of
impending danger.

I posted to this list because the support for i.MX2x processors is still
fairly active in the Barebox community.

 
Derald D. Woods


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: i.MX21 USB OTG
  2012-03-22 23:25 i.MX21 USB OTG Derald D. Woods
@ 2012-03-23  8:36 ` Sascha Hauer
  0 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2012-03-23  8:36 UTC (permalink / raw)
  To: Derald D. Woods; +Cc: barebox

Hi Derald,

On Thu, Mar 22, 2012 at 06:25:44PM -0500, Derald D. Woods wrote:
> All,
> 
> I have an existing design that uses the i.MX21 ARM9 processor. The
> design currently uses an external USB OTG chip. The chip is now
> end-of-life. I know that this is an older ARM processor. It still meets
> most of the design needs. Is the i.MX21 OTG functionality considered
> reliable? I have not seen any real success stories with the i.MX21 USB
> OTG implementation. Our board currently utilizes the USB OTG chip at
> the bootloader and Linux kernel level.
> 
> I would appreciate being pointed in the right direction or warned of
> impending danger.
> 
> I posted to this list because the support for i.MX2x processors is still
> fairly active in the Barebox community.

The i.MX21 is the only i.MX I never used. Maybe you should contact
Martin Fuzzey <mfuzzey@gmail.com>, he mainlined the i.MX21 USB host
driver in Linux.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: i.MX21 USB OTG
  2012-03-24 14:10 ` Martin Fuzzey
@ 2012-03-24 16:15   ` Derald D. Woods
  0 siblings, 0 replies; 4+ messages in thread
From: Derald D. Woods @ 2012-03-24 16:15 UTC (permalink / raw)
  To: Martin Fuzzey; +Cc: barebox

On Sat, Mar 24, 2012 at 03:10:25PM +0100, Martin Fuzzey wrote:
> Hi Derald,
> 
> 
> On Fri, Mar 23, 2012 at 2:09 PM, Derald Woods <woods.rt@gmail.com> wrote:
> > Hello Martin,
> >
> > I have an existing design that uses the i.MX21 ARM9 processor. The
> > design currently uses an external USB OTG chip. The chip is now
> > end-of-life. I know that this is an older ARM processor. It still meets
> > most of the design needs. Is the i.MX21 OTG functionality considered
> > reliable? I have not seen any real success stories with the i.MX21 USB
> > OTG implementation. Our board currently utilizes the USB OTG chip at
> > the bootloader and Linux kernel level.
> >
> 
> It depends what you mean by OTG.
> 
> The i.MX21 silicon has 3 USB ports, two of which can only be used as
> USB hosts and one which is configurable as host only, function
> (device) only or OTG (dynamic switching).
> Somewhat confusingly the Freescale documentation refers to the whole
> module as "USB-OTG".
> 
> However the mainline code only supports host mode (there is no
> function driver nor OTG support)
> 
> I mainlined the i.MX21 HCD driver for 2.6.34 and fixed a few bugs for
> 2.6.37 (in particular problems with non aligned buffers causing usbnet
> to fail).
> 
> Since then I haven't had any bug reports, the driver also passes the
> USB test suite (which I updated to check the buffer alignment
> behaviour).
> 
> 
> > I would appreciate being pointed in the right direction or warned of
> > impending danger. Basically I want to know if the mx21 USB OTG has
> > performed well for other embedded Linux designs.
> >
> Something very close to the original code on which I based the driver
> was shipped with the Chumby (which uses  a heavily patched 2.6.16
> kernel). However that code had quite a few bugs and didn't support
> isochronous transfers at all.
> 
> I don't have any direct feedback myself of real world use of the
> driver however since we ended up not shipping an iMX21 based Linux
> product for non technical reasons.
> 
> > I had originally posted to the Barebox mailing list.
> >
> Ah I'm not subscribed to that list - adding it as a CC hoping it's not
> subscriber only
> 
> Cheers,
> 
> Martin Fuzzey

Hello Martin,


Thanks for the detailed feedback. This information is consistent with
what I have observed and followed with regard to the i.MX21. It will
help us chart a meaningful development course. 


Best regards,

Derald D. Woods


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: i.MX21 USB OTG
       [not found] <CAPhRStYbTCD6Lzhcfna4WRqYZhQRJrmiEyFm6egFovYdVso59g@mail.gmail.com>
@ 2012-03-24 14:10 ` Martin Fuzzey
  2012-03-24 16:15   ` Derald D. Woods
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Fuzzey @ 2012-03-24 14:10 UTC (permalink / raw)
  To: Derald Woods; +Cc: barebox

Hi Derald,


On Fri, Mar 23, 2012 at 2:09 PM, Derald Woods <woods.rt@gmail.com> wrote:
> Hello Martin,
>
> I have an existing design that uses the i.MX21 ARM9 processor. The
> design currently uses an external USB OTG chip. The chip is now
> end-of-life. I know that this is an older ARM processor. It still meets
> most of the design needs. Is the i.MX21 OTG functionality considered
> reliable? I have not seen any real success stories with the i.MX21 USB
> OTG implementation. Our board currently utilizes the USB OTG chip at
> the bootloader and Linux kernel level.
>

It depends what you mean by OTG.

The i.MX21 silicon has 3 USB ports, two of which can only be used as
USB hosts and one which is configurable as host only, function
(device) only or OTG (dynamic switching).
Somewhat confusingly the Freescale documentation refers to the whole
module as "USB-OTG".

However the mainline code only supports host mode (there is no
function driver nor OTG support)

I mainlined the i.MX21 HCD driver for 2.6.34 and fixed a few bugs for
2.6.37 (in particular problems with non aligned buffers causing usbnet
to fail).

Since then I haven't had any bug reports, the driver also passes the
USB test suite (which I updated to check the buffer alignment
behaviour).


> I would appreciate being pointed in the right direction or warned of
> impending danger. Basically I want to know if the mx21 USB OTG has
> performed well for other embedded Linux designs.
>
Something very close to the original code on which I based the driver
was shipped with the Chumby (which uses  a heavily patched 2.6.16
kernel). However that code had quite a few bugs and didn't support
isochronous transfers at all.

I don't have any direct feedback myself of real world use of the
driver however since we ended up not shipping an iMX21 based Linux
product for non technical reasons.

> I had originally posted to the Barebox mailing list.
>
Ah I'm not subscribed to that list - adding it as a CC hoping it's not
subscriber only

Cheers,

Martin Fuzzey

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-03-24 16:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-22 23:25 i.MX21 USB OTG Derald D. Woods
2012-03-23  8:36 ` Sascha Hauer
     [not found] <CAPhRStYbTCD6Lzhcfna4WRqYZhQRJrmiEyFm6egFovYdVso59g@mail.gmail.com>
2012-03-24 14:10 ` Martin Fuzzey
2012-03-24 16:15   ` Derald D. Woods

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