* [U-Boot] RFC USB composite devices
@ 2009-09-28 15:17 Tom
2009-09-29 8:30 ` Remy Bohmer
0 siblings, 1 reply; 6+ messages in thread
From: Tom @ 2009-09-28 15:17 UTC (permalink / raw)
To: u-boot
Soon you will see a v2 of my OMAP3 USB device support.
After which I will be working on adding a 'fastboot' device.
Ref :
https://gforge.ti.com/gf/project/omapzoom/wiki/?pagename=FAQ-8%3A+Zoom-II+Android%C2%A0fastboot
I would like to add this as composite device with the other device being
usbtty.
The usb device and composite device support seems to be entirely based
on usbtty.Is there a newer interface that needs some help bringing to
the mainline? Else, ideas on how to do this cleanly ?
All comments welcome,
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] RFC USB composite devices
2009-09-28 15:17 [U-Boot] RFC USB composite devices Tom
@ 2009-09-29 8:30 ` Remy Bohmer
2009-09-29 13:07 ` Tom
0 siblings, 1 reply; 6+ messages in thread
From: Remy Bohmer @ 2009-09-29 8:30 UTC (permalink / raw)
To: u-boot
Hi Tom,
2009/9/28 Tom <Tom.Rix@windriver.com>:
>
> Soon you will see a v2 of my OMAP3 USB device support.
> After which I will be working on adding a 'fastboot' device.
> Ref :
> https://gforge.ti.com/gf/project/omapzoom/wiki/?pagename=FAQ-8%3A+Zoom-II+Android%C2%A0fastboot
>
> I would like to add this as composite device with the other device being
> usbtty.
>
> The usb device and composite device support seems to be entirely based on
> usbtty.Is there a newer interface that needs some help bringing to the
> mainline? Else, ideas on how to do this cleanly ?
Well, I have the complete Linux gadget layer as USB device layer in
U-boot. Maybe this helps. I have not found the time yet to push it
forward...
It can be found in the u-boot-usb branch.
(http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc)
Remy
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] RFC USB composite devices
2009-09-29 8:30 ` Remy Bohmer
@ 2009-09-29 13:07 ` Tom
2009-09-29 18:42 ` Remy Bohmer
0 siblings, 1 reply; 6+ messages in thread
From: Tom @ 2009-09-29 13:07 UTC (permalink / raw)
To: u-boot
Remy Bohmer wrote:
> Hi Tom,
>
> 2009/9/28 Tom <Tom.Rix@windriver.com>:
>> Soon you will see a v2 of my OMAP3 USB device support.
>> After which I will be working on adding a 'fastboot' device.
>> Ref :
>> https://gforge.ti.com/gf/project/omapzoom/wiki/?pagename=FAQ-8%3A+Zoom-II+Android%C2%A0fastboot
>>
>> I would like to add this as composite device with the other device being
>> usbtty.
>>
>> The usb device and composite device support seems to be entirely based on
>> usbtty.Is there a newer interface that needs some help bringing to the
>> mainline? Else, ideas on how to do this cleanly ?
>
> Well, I have the complete Linux gadget layer as USB device layer in
> U-boot. Maybe this helps. I have not found the time yet to push it
> forward...
> It can be found in the u-boot-usb branch.
> (http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc)
>
> Remy
Thanks!
I have taken a look at this.
It looks like the reference is an ethernet over usb device on at91.
I have an at91sam9g20-ek. Is this compatibly with your work?
Else I will just jump in with omap.
Are there any missing pieces that I should be aware of?
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] RFC USB composite devices
2009-09-29 13:07 ` Tom
@ 2009-09-29 18:42 ` Remy Bohmer
2009-09-30 11:32 ` Tom
0 siblings, 1 reply; 6+ messages in thread
From: Remy Bohmer @ 2009-09-29 18:42 UTC (permalink / raw)
To: u-boot
Hi,
2009/9/29 Tom <Tom.Rix@windriver.com>:
>>> The usb device and composite device support seems to be entirely based on
>>> usbtty.Is there a newer interface that needs some help bringing to the
>>> mainline? Else, ideas on how to do this cleanly ?
>>
>> Well, I have the complete Linux gadget layer as USB device layer in
>> U-boot. Maybe this helps. I have not found the time yet to push it
>> forward...
>> It can be found in the u-boot-usb branch.
>> (http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc)
>>
>> Remy
>
> Thanks!
> I have taken a look at this.
> It looks like the reference is an ethernet over usb device on at91.
> I have an at91sam9g20-ek. Is this compatibly with your work?
> Else I will just jump in with omap.
Yes, it is first implemented on the at91sam9261, if the sam9g20 has
the same USB device peripheral, it should work as well (if configured)
But it should not be so difficult to adapt it for the omap as long as
there is a linux udc driver for it. Using it on at91sam9g20-ek might
give you an idea how it works and if it is usable for you. The gadget
layer is from linux 2.6.27 btw.
> Are there any missing pieces that I should be aware of?
I think not, the branch is complete as it is, and it works for the at91sam9261.
I kept this branch updated to mainline plus CDC patches...
Remy
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] RFC USB composite devices
2009-09-29 18:42 ` Remy Bohmer
@ 2009-09-30 11:32 ` Tom
2009-09-30 12:08 ` Remy Bohmer
0 siblings, 1 reply; 6+ messages in thread
From: Tom @ 2009-09-30 11:32 UTC (permalink / raw)
To: u-boot
Remy Bohmer wrote:
> Hi,
>
> 2009/9/29 Tom <Tom.Rix@windriver.com>:
>>>> The usb device and composite device support seems to be entirely based on
>>>> usbtty.Is there a newer interface that needs some help bringing to the
>>>> mainline? Else, ideas on how to do this cleanly ?
>>> Well, I have the complete Linux gadget layer as USB device layer in
>>> U-boot. Maybe this helps. I have not found the time yet to push it
>>> forward...
>>> It can be found in the u-boot-usb branch.
>>> (http://git.denx.de/?p=u-boot/u-boot-usb.git;a=shortlog;h=refs/heads/cdc)
>>>
>>> Remy
>> Thanks!
>> I have taken a look at this.
>> It looks like the reference is an ethernet over usb device on at91.
>> I have an at91sam9g20-ek. Is this compatibly with your work?
>> Else I will just jump in with omap.
>
> Yes, it is first implemented on the at91sam9261, if the sam9g20 has
> the same USB device peripheral, it should work as well (if configured)
> But it should not be so difficult to adapt it for the omap as long as
> there is a linux udc driver for it. Using it on at91sam9g20-ek might
> give you an idea how it works and if it is usable for you. The gadget
> layer is from linux 2.6.27 btw.
The interface looks well documented enough that I am going to just jump
in with omap. I will use the omap usb device driver, i just submitted,
as the driver. I am adding #ifdef's to keep the old device interface.
So I can verifiy I haven't messed up the usb state machine and to serve
as an example for other existing usb devices to be ported over.
The ethernet over usb gadget will be useful for Beagle as it doesn't
have one.
>
>> Are there any missing pieces that I should be aware of?
>
> I think not, the branch is complete as it is, and it works for the at91sam9261.
> I kept this branch updated to mainline plus CDC patches...
>
Once I get past seeing the ethernet gadget work on Beagle, I think
we should move this into the mainline.
Tom
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] RFC USB composite devices
2009-09-30 11:32 ` Tom
@ 2009-09-30 12:08 ` Remy Bohmer
0 siblings, 0 replies; 6+ messages in thread
From: Remy Bohmer @ 2009-09-30 12:08 UTC (permalink / raw)
To: u-boot
Hi,
>>> Thanks!
>>> I have taken a look at this.
>>> It looks like the reference is an ethernet over usb device on at91.
>>> I have an at91sam9g20-ek. Is this compatibly with your work?
>>> Else I will just jump in with omap.
OK.
> Once I get past seeing the ethernet gadget work on Beagle, I think
> we should move this into the mainline.
I agree.
Remy
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-09-30 12:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 15:17 [U-Boot] RFC USB composite devices Tom
2009-09-29 8:30 ` Remy Bohmer
2009-09-29 13:07 ` Tom
2009-09-29 18:42 ` Remy Bohmer
2009-09-30 11:32 ` Tom
2009-09-30 12:08 ` Remy Bohmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox