Skip to contentSkip to conversation

RFC USB composite devices

U-Boot Tom 2 participants 6 messages Sep 28, 2009 – Sep 30, 2009

lore
Share & tools
lore

Tom

author
#0 lore raw

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

#1 lore raw

Hi Tom,

2009/9/28 Tom <[email protected]>:

Quoted 6 lines

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

Quoted 6 lines

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

author
#2 lore raw
Quoted 15 lines · Remy Bohmer

Hi Tom,

2009/9/28 Tom <[email protected]>:

Quoted 11 lines

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 ?

Quoted 7 lines

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

#3 lore raw

Hi,

2009/9/29 Tom <[email protected]>:

Quoted 10 lines
Quoted 10 lines
Quoted 3 lines

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)

Quoted 7 lines
Quoted 1 line

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.

Quoted 1 line

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

author
#4 lore raw
Quoted 19 lines · Remy Bohmer

Hi,

2009/9/29 Tom <[email protected]>:

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

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)

Quoted 6 lines
Quoted 1 line

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.

Quoted 6 lines

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.

Quoted 6 lines
Quoted 2 lines

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

#5 lore raw

Hi,

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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.

Quoted 2 lines

Once I get past seeing the ethernet gadget work on Beagle, I think we should move this into the mainline.

I agree.

Remy