P1020 USB DR as device support on Linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

P1020 USB DR as device support on Linux

1,525件の閲覧回数
YanjunLuo
Contributor IV

Hi,

Does anybody use P1020'S USB DR as device? How should I use it? I enabled the "USB ULPI PHY interface support", and " Freescale Highspeed USB DR Peripheral Controller", but there is no response at all.

Regards,

Yanjun Luo.

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,364件の閲覧回数
Pavel
NXP Employee
NXP Employee

Freescale SDK 1.8 supports the P1020 USB using as USB gadget. See attached files.

It is screenshots for P1020RDB kernel configuration menu.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,364件の閲覧回数
YanjunLuo
Contributor IV

Hi Pavel,

Thanks, I can't see the attachment. For some WiFi support, I tried the kernel 4.2.5. And I manual add the "fsl-usb2-udc" in platform_device_id, I can see the init, but my host always report "unable to enumerate USB device on port 1", and P1020's USB DR's interrupt works, and the status looks ok but it doesn't work. I added some printk and get the below result. the device is attached, the speed is high speed. I don't know what's wrong, why it can't enumerate. Did you try it before?

irq_src [0x00000040], udc->usb_state: [0x00000008], usbmode: [0xa], usbsts: [0xc0]

portsc1: 0x98000a05

irq_src [0x00000040], udc->usb_state: [0x00000001], usbmode: [0xa], usbsts: [0xc0]

irq_src [0x00000100], udc->usb_state: [0x00000001], usbmode: [0xa], usbsts: [0x180]

irq_src [0x00000040], udc->usb_state: [0x00000008], usbmode: [0xa], usbsts: [0xc0]

Regards,

Yanjun Luo.

0 件の賞賛
返信

1,364件の閲覧回数
Pavel
NXP Employee
NXP Employee

Look at the Section 17.8.1 of the P1020 Reference Manual. Test USB setting using this section.


Have a great day,
Pavel

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,364件の閲覧回数
YanjunLuo
Contributor IV

Hi Pavel,

Thanks, I'm working on it.

Regards,

Yanjun Luo.

0 件の賞賛
返信