linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PPC_4xx synopsy USB driver
@ 2009-09-18 15:50 Cote, Sylvain
  2009-09-21  5:13 ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: Cote, Sylvain @ 2009-09-18 15:50 UTC (permalink / raw)
  To: linuxppc-dev@lists.ozlabs.org

[-- Attachment #1: Type: text/plain, Size: 3115 bytes --]

Hi,

I am trying the new USB dwc-otg Synopsys driver on my powerpc 405ex board.  I am using the kernel 2.6.30.3 from denx git (head 2.6.30 stable 2009-09-04 snapshot).  Previously I was using the USB driver from 2.6.25 kernel.  The driver was unstable and was only working when I enabled some debug prints.

I am moving to the new kernel to get improvement on that USB driver. However, I have some problems with it.  My problem is that probe function is never called (dwc_otg_driver_probe).  The driver init call is done and I can see the debug print "dwc_otg: version 2.60a 22-NOV-2006" but no more call (n.b. I enabled all debug print).  Initialisation is done in probe function, so, my usb dwc_otg controller is not initialized.  In theory, when module is inserted, init is called (dwc_otg_driver_init).  This init call, register the driver (platform_driver_register) and, in this registration, configured the probe function to call (dwc_otg_driver_probe).  But as I said, probe is never called.

First, in my setup, I want to use USB in host mode.

My usb-otg portion of my dts file is:

USBOTG0: usbotg@ef6c0000 {
                                    compatible = "amcc,usb-otg-405ex", "amcc,usb-otg";
                                    reg = <0xef6c0000 0x10000>;
                                    interrupt-parent = <&USBOTG0>;
                                    interrupts = <0 1 2>;
                                    #interrupt-cells = <1>;
                                    #address-cells = <0>;
                                    #size-cells = <0>;
                                    interrupt-map = </* USB-OTG */ 0 &UIC2 0x1e 4
                                                             /* HIGH-POWER */ 1 &UIC1 0x1a 8
                                                             /* DMA */ 2 &UIC0 0xc 4>;
                                    interrupt-map-mask = <0xffffffff>;
                        };

My USB potion of my kernel config (menuconfig)

Support for host-side USB -> y
USB announce new devices --> y
USB device filesystem --> y
USB device class-devices --> y
USB dynamic USB minor allocation --> y

USB mass storage support --> y

USB gadget support --> y
            Maximum VBUS power usage = 500
            Synopsys DWC OTG controller
            Synopsys DWC OTG internal DMA mode --> y
            USB gadget --> M
            gadget zero --> M
            Ethernet Gadget --> M
            RNDIS support --> y

Any help will be appreciated

Thank you,

Sylvain

This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message.  If you have received this electronic message in error, please notify us by replying to this e-mail.
\r

[-- Attachment #2: Type: text/html, Size: 15807 bytes --]

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

* Re: PPC_4xx synopsy USB driver
  2009-09-18 15:50 PPC_4xx synopsy USB driver Cote, Sylvain
@ 2009-09-21  5:13 ` Stefan Roese
  2009-09-21 13:44   ` Cote, Sylvain
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Roese @ 2009-09-21  5:13 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Cote, Sylvain

Hi Sylvain,

On Friday 18 September 2009 17:50:24 Cote, Sylvain wrote:
> USB gadget support --> y
>             Maximum VBUS power usage = 500
>             Synopsys DWC OTG controller
>             Synopsys DWC OTG internal DMA mode --> y
>             USB gadget --> M
>             gadget zero --> M
>             Ethernet Gadget --> M
>             RNDIS support --> y
> 
> Any help will be appreciated

Looks good so far. I suspect that the only thing missing for your 405EX custom 
board is the following line in the arch/powerpc/sysdev/Makefile:

obj-$(CONFIG_KILAUEA)           += amcc-usbotg.o

to enable the device-tree to platform-device driver wrapper for the USB-OTG 
resources.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

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

* RE: PPC_4xx synopsy USB driver
  2009-09-21  5:13 ` Stefan Roese
@ 2009-09-21 13:44   ` Cote, Sylvain
  2009-09-21 14:24     ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: Cote, Sylvain @ 2009-09-21 13:44 UTC (permalink / raw)
  To: Stefan Roese, linuxppc-dev@lists.ozlabs.org

Hi Stefan,


On Friday 18 September 2009 17:50:24 Cote, Sylvain wrote:
> USB gadget support --> y
>             Maximum VBUS power usage =3D 500
>             Synopsys DWC OTG controller
>             Synopsys DWC OTG internal DMA mode --> y
>             USB gadget --> M
>             gadget zero --> M
>             Ethernet Gadget --> M
>             RNDIS support --> y
>=20
> Any help will be appreciated

> Looks good so far. I suspect that the only thing missing for your 405EX=20
> custom=20
> board is the following line in the arch/powerpc/sysdev/Makefile:

> obj-$(CONFIG_KILAUEA)           +=3D amcc-usbotg.o

I have created a new platform (platform using 405ex).  I have missed this o=
ne for my new platform.  Do you know if there is a compilation switch that =
could be more generic (like CONFIG_40x) for the usbotg?

> to enable the device-tree to platform-device driver wrapper for the USB-
> OTG=20
> resources.

Thanks you,

Your help has been appreciated.

Sylvain

This electronic message may contain proprietary and confidential informat=
ion of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or autho=
rized to receive this e-mail for the intended recipient), you may not use=
, copy, disclose or distribute to anyone this message or any information =
contained in this message.  If you have received this electronic message =
in error, please notify us by replying to this e-mail.
=0D

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

* Re: PPC_4xx synopsy USB driver
  2009-09-21 13:44   ` Cote, Sylvain
@ 2009-09-21 14:24     ` Stefan Roese
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2009-09-21 14:24 UTC (permalink / raw)
  To: Cote, Sylvain; +Cc: linuxppc-dev@lists.ozlabs.org

On Monday 21 September 2009 15:44:30 Cote, Sylvain wrote:
> > Looks good so far. I suspect that the only thing missing for your 405EX
> > custom
> > board is the following line in the arch/powerpc/sysdev/Makefile:
> >
> > obj-$(CONFIG_KILAUEA)           += amcc-usbotg.o
> 
> I have created a new platform (platform using 405ex).  I have missed this
>  one for my new platform.  Do you know if there is a compilation switch
>  that could be more generic (like CONFIG_40x) for the usbotg?

Yes, it would probably make sense to just use 

obj-$(CONFIG_USB_DWC_OTG) += amcc-usbotg.o

here. I'll change this soon.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office@denx.de

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

end of thread, other threads:[~2009-09-21 14:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18 15:50 PPC_4xx synopsy USB driver Cote, Sylvain
2009-09-21  5:13 ` Stefan Roese
2009-09-21 13:44   ` Cote, Sylvain
2009-09-21 14:24     ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).