From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angelo Subject: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 11:22:48 +0000 (GMT) Message-ID: <504269.31435.qm@web23108.mail.ird.yahoo.com> Reply-To: s104259-whZMOeQn8C0@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1547902776==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org --===============1547902776== Content-Type: multipart/alternative; boundary="0-2026995901-1228476168=:31435" --0-2026995901-1228476168=:31435 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all. I'd like to know if it's necessary to modify my DTS. On my board I have: * u-boot 1.2.0 * kernel 2.6.21 * arch=3Dpowerpc * dts based on lite5200b.dts * USB port (USB2) configured on the Ethernet port Is it necessary to combine Ethernet and usb nodes into the device tree sour= ce? Many thanks, @ngel =0A=0A=0A --0-2026995901-1228476168=:31435 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all.

I'd like to know if it's necessary to modify my DTS.<= br>
On my board I have:
* u-boot 1.2.0
* kernel 2.6.21
* arch= =3Dpowerpc
* dts based on lite5200b.dts
* USB port (USB2) configured = on the Ethernet port

Is it necessary to combine Ethernet and usb nod= es into the device tree source?

Many thanks,
@ngel

=0A=0A=0A=0A --0-2026995901-1228476168=:31435-- --===============1547902776== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ devicetree-discuss mailing list devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org https://ozlabs.org/mailman/listinfo/devicetree-discuss --===============1547902776==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Grant Likely" Subject: Re: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 07:40:09 -0700 Message-ID: References: <504269.31435.qm@web23108.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <504269.31435.qm-oikRafiNRKjyX4RqAA4FmIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: s104259-whZMOeQn8C0@public.gmane.org Cc: linuxppc-dev , devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org On Fri, Dec 5, 2008 at 4:22 AM, Angelo wrote: > Hi all. > > I'd like to know if it's necessary to modify my DTS. > > On my board I have: > * u-boot 1.2.0 > * kernel 2.6.21 > * arch=powerpc > * dts based on lite5200b.dts > * USB port (USB2) configured on the Ethernet port > > Is it necessary to combine Ethernet and usb nodes into the device tree > source? No. Configuring the Ethernet pins for USB IO is just a pin routing board setup task. You do need to make sure U-Boot sets up the port_config register correctly, but it doesn't impact the device tree. You don't need to change any of the values in the USB node. However, if the Ethernet device is unused then you should remove the Ethernet node from your device tree. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angelo Subject: Re: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 15:02:38 +0000 (GMT) Message-ID: <537065.14124.qm@web23104.mail.ird.yahoo.com> References: Reply-To: s104259-whZMOeQn8C0@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1840042160==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: Grant Likely Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org --===============1840042160== Content-Type: multipart/alternative; boundary="0-1865881593-1228489358=:14124" --0-1865881593-1228489358=:14124 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ok. Tha main problem is that if I cross-compile kernel for ARCH=3Dppc everythin= gs work fine.=20 >"Configuring the Ethernet pins for USB IO is just a pin routing board setu= p task." What should I do for this?!?!? * I've configured the port_config in=C2=A0 lite5200_setup_cpu(void) functio= n [arch/powerpc/platforms/52xx/lite5200.c]. I put in port_config the same v= alue that I put with ARCH=3Dppc! However I'm sure that my u-boot sets-up the port_config register because fa= tls usb 0:1 / show me the content of usb-storage. Thanks, @ngel --- Ven 5/12/08, Grant Likely ha scritto: Da: Grant Likely Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200 A: s104259-whZMOeQn8C0@public.gmane.org Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, "linuxppc-dev" Data: Venerd=C3=AC 5 dicembre 2008, 15:40 On Fri, Dec 5, 2008 at 4:22 AM, Angelo wrote: > Hi all. > > I'd like to know if it's necessary to modify my DTS. > > On my board I have: > * u-boot 1.2.0 > * kernel 2.6.21 > * arch=3Dpowerpc > * dts based on lite5200b.dts > * USB port (USB2) configured on the Ethernet port > > Is it necessary to combine Ethernet and usb nodes into the device tree > source? No. Configuring the Ethernet pins for USB IO is just a pin routing board setup task. You do need to make sure U-Boot sets up the port_config register correctly, but it doesn't impact the device tree. You don't need to change any of the values in the USB node. However, if the Ethernet device is unused then you should remove the Ethernet node from your device tree. g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. =0A=0A=0A --0-1865881593-1228489358=:14124 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Ok.

Tha main problem is that if I cros= s-compile kernel for ARCH=3Dppc everythings work fine.

>"Configu= ring the Ethernet pins for USB IO is just a pin routing board setup task."<= br>
What should I do for this?!?!?

* I've configured the port_con= fig in  lite5200_setup_cpu(void) function [arch/powerpc/platforms/52xx/lite5200.c]. I put in port_conf= ig the same value that I put with ARCH=3Dppc!

However I'm sure that = my u-boot sets-up the port_config register because fatls usb 0:1 / show me the content of usb-storage.
Thanks,
@ngel
--- Ven 5/12/08, Grant Likely <grant.likely@= secretlab.ca> ha scritto:
Da: Grant = Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Oggetto: Re: usb/eth DTS nodes for cu= stom board based on mpc5200
A: s104259-whZMOeQn8C0@public.gmane.org
Cc: devicetree-discus= s@ozlabs.org, "linuxppc-dev" <linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
Data: Vener= d=C3=AC 5 dicembre 2008, 15:40

On Fri, Dec 5, 2008 at 4:22 AM, =
Angelo <s104259-whZMOeQn8C0@public.gmane.org> wrote:
> Hi all.
>
> I'd = like to know if it's necessary to modify my DTS.
>
> On my boar= d I have:
> * u-boot 1.2.0
> * kernel 2.6.21
> * arch=3Dp= owerpc
> * dts based on lite5200b.dts
> * USB port (USB2) confi= gured on the Ethernet port
>
> Is it necessary to combine Ether= net and usb nodes into the device tree
> source?

No. Configur= ing the Ethernet pins for USB IO is just a pin routing
board setup task.= You do need to make sure U-Boot sets up the
port_config register corre= ctly, but it doesn't impact the device tree.
You don't need to change any of the values in the USB node.

However, if the Ethernet device = is unused then you should remove the
Ethernet node from your device tree= .

g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technol= ogies Ltd.

=0A=0A=0A=0A --0-1865881593-1228489358=:14124-- --===============1840042160== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ devicetree-discuss mailing list devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org https://ozlabs.org/mailman/listinfo/devicetree-discuss --===============1840042160==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Grant Likely" Subject: Re: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 08:16:38 -0700 Message-ID: References: <537065.14124.qm@web23104.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <537065.14124.qm-ZN+ubyTWu4PyX4RqAA4FmIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: s104259-whZMOeQn8C0@public.gmane.org Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org On Fri, Dec 5, 2008 at 8:02 AM, Angelo wrote: > Ok. > > Tha main problem is that if I cross-compile kernel for ARCH=ppc everythings > work fine. > >>"Configuring the Ethernet pins for USB IO is just a pin routing board setup >> task." > > What should I do for this?!?!? Without seeing your board I don't know, but I do know that there have been a *lot* of changes in mpc5200 support since 2.6.21, including USB. You should try using a 2.6.27 kernel. > > * I've configured the port_config in lite5200_setup_cpu(void) function > [arch/powerpc/platforms/52xx/lite5200.c]. I put in port_config the same > value that I put with ARCH=ppc! > > However I'm sure that my u-boot sets-up the port_config register because > fatls usb 0:1 / show me the content of usb-storage. If U-Boot sets up port_config correctly, then you do *not* need to change the setting in the kernel. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: R: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 16:16:06 +0100 Message-ID: <47602D18F269934AB73B7E550804A1E002137987@FBCMST09V03.fbc.local> References: <504269.31435.qm@web23108.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1584092162==" Return-path: Content-class: urn:content-classes:message List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: Grant Likely , s104259@yahoo.it Cc: linuxppc-dev , devicetree-discuss@ozlabs.org List-Id: devicetree@vger.kernel.org This is a multi-part message in MIME format. --===============1584092162== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C956EC.9202E3BF" This is a multi-part message in MIME format. ------_=_NextPart_001_01C956EC.9202E3BF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Grant we have already tested what you are suggesting, but nothing happens. I'm supposing the problem comes from interrupts. In fact USB is still alive, every 5 sec. we can see some timeout = messages. (from previous post) root@RadioNav: ~ #[ 24.027842] usb 1-2: khubd timed out on ep0in = len=3D0/64 root@RadioNav: ~ #[ 29.199841] usb 1-2: khubd timed out on ep0in = len=3D0/64 root@RadioNav: ~ #[ 34.307841] usb 1-2: khubd timed out on ep0in = len=3D0/64 root@RadioNav: ~ #[ 34.382786] ppc-of-ohci f0001000.usb: GetStatus = roothub.portstatus [1] =3D 0x00100103 PRSC PPS PES CCS root@RadioNav: ~ #[ 34.446789] usb 1-2: device descriptor read/64, = error -110 root@RadioNav: ~ # root@RadioNav: ~ #cat /proc/interrupts CPU0 134: 5689 MPC52xx Peripherals Edge ohci_hcd:usb1 139: 207 MPC52xx Peripherals Edge mpc52xx_psc_uart 143: 0 MPC52xx Peripherals Edge i2c-mpc 144: 0 MPC52xx Peripherals Edge i2c-mpc BAD: 0 Ideas :( ?? Thanks J P.S. Using lite5200 EVB USB works well using almost same drivers. -----Messaggio originale----- Da: linuxppc-dev-bounces+gianfranco.casanova=3Dalice.it@ozlabs.org per = conto di Grant Likely Inviato: ven 05/12/2008 15.40 A: s104259@yahoo.it Cc: linuxppc-dev; devicetree-discuss@ozlabs.org Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200 =20 On Fri, Dec 5, 2008 at 4:22 AM, Angelo wrote: > Hi all. > > I'd like to know if it's necessary to modify my DTS. > > On my board I have: > * u-boot 1.2.0 > * kernel 2.6.21 > * arch=3Dpowerpc > * dts based on lite5200b.dts > * USB port (USB2) configured on the Ethernet port > > Is it necessary to combine Ethernet and usb nodes into the device tree > source? No. Configuring the Ethernet pins for USB IO is just a pin routing board setup task. You do need to make sure U-Boot sets up the port_config register correctly, but it doesn't impact the device tree. You don't need to change any of the values in the USB node. However, if the Ethernet device is unused then you should remove the Ethernet node from your device tree. g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev ------_=_NextPart_001_01C956EC.9202E3BF Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable R: usb/eth DTS nodes for custom board based on mpc5200

Hi Grant

we have already tested what you are suggesting, but nothing happens.

I'm supposing the problem comes from interrupts.

In fact USB is still alive, every 5 sec. we can see some timeout = messages.

(from previous post)

root@RadioNav: ~ #[   24.027842] usb 1-2: khubd timed out on = ep0in len=3D0/64
root@RadioNav: ~ #[   29.199841] usb 1-2: khubd timed out on = ep0in len=3D0/64
root@RadioNav: ~ #[   34.307841] usb 1-2: khubd timed out on = ep0in len=3D0/64
root@RadioNav: ~ #[   34.382786] ppc-of-ohci f0001000.usb: = GetStatus roothub.portstatus [1] =3D 0x00100103 PRSC PPS PES CCS
root@RadioNav: ~ #[   34.446789] usb 1-2: device descriptor = read/64, error -110
root@RadioNav: ~ #
root@RadioNav: ~ #cat /proc/interrupts
           CPU0
134:       5689  MPC52xx Peripherals = Edge      ohci_hcd:usb1
139:        207  MPC52xx = Peripherals Edge      mpc52xx_psc_uart
143:          0  = MPC52xx Peripherals Edge      i2c-mpc
144:          0  = MPC52xx Peripherals Edge      i2c-mpc
BAD:          0

Ideas :( ??
Thanks J

P.S. Using lite5200 EVB USB works well using almost same drivers.

-----Messaggio originale-----
Da: linuxppc-dev-bounces+gianfranco.casanova=3Dalice.it@ozlabs.org per = conto di Grant Likely
Inviato: ven 05/12/2008 15.40
A: s104259@yahoo.it
Cc: linuxppc-dev; devicetree-discuss@ozlabs.org
Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200

On Fri, Dec 5, 2008 at 4:22 AM, Angelo <s104259@yahoo.it> = wrote:
> Hi all.
>
> I'd like to know if it's necessary to modify my DTS.
>
> On my board I have:
> * u-boot 1.2.0
> * kernel 2.6.21
> * arch=3Dpowerpc
> * dts based on lite5200b.dts
> * USB port (USB2) configured on the Ethernet port
>
> Is it necessary to combine Ethernet and usb nodes into the device = tree
> source?

No.  Configuring the Ethernet pins for USB IO is just a pin = routing
board setup task.  You do need to make sure U-Boot sets up the
port_config register correctly, but it doesn't impact the device = tree.
 You don't need to change any of the values in the USB node.

However, if the Ethernet device is unused then you should remove the
Ethernet node from your device tree.

g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.= org/mailman/listinfo/linuxppc-dev

------_=_NextPart_001_01C956EC.9202E3BF-- --===============1584092162== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev --===============1584092162==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Grant Likely" Subject: Re: R: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 08:25:51 -0700 Message-ID: References: <504269.31435.qm@web23108.mail.ird.yahoo.com> <47602D18F269934AB73B7E550804A1E002137987@FBCMST09V03.fbc.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <47602D18F269934AB73B7E550804A1E002137987-irmLqLvCarwRdKFfnreRio2P0GrZ+RbP@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: gianfranco.casanova-1Ph4/jfBtgs@public.gmane.org Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, linuxppc-dev List-Id: devicetree@vger.kernel.org On Fri, Dec 5, 2008 at 8:16 AM, wrote: > Hi Grant > > we have already tested what you are suggesting, but nothing happens. > > I'm supposing the problem comes from interrupts. Unlikely. The interrupt routing is hard wired into the SoC and probably not messed up (unless the USB node in the device tree has been changed). You may have a problem with port_config (setup for single ended vs differential signaling) or some other electrical difference from the 5200. Beyond that it's not something that is easy to figure out over email. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Angelo Subject: Re: R: usb/eth DTS nodes for custom board based on mpc5200 Date: Fri, 5 Dec 2008 15:40:12 +0000 (GMT) Message-ID: <514412.73887.qm@web23107.mail.ird.yahoo.com> References: Reply-To: s104259@yahoo.it Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0085494704==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: gianfranco.casanova@alice.it, Grant Likely Cc: linuxppc-dev , devicetree-discuss@ozlabs.org List-Id: devicetree@vger.kernel.org --===============0085494704== Content-Type: multipart/alternative; boundary="0-643437297-1228491612=:73887" --0-643437297-1228491612=:73887 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Using 2.6.26.3 nothing changes. Reading MPC5200 user guide I calculate the value of port_config to configure USB on ethernet port. So I'm using this value in arch=3Dppc everyting works. With arch=3Dpowerpc I see that the kernel read the device tree blob, so I t= hink that I need to modify it. However, when I plug-in my usb storage.. the system try to "initialize" the= device but something is dead... How can I enable the sequent option (irqpoll): ... irq 134: nobody cared (try booting with the "irqpoll" option) ... thanks, @ngel --- Ven 5/12/08, Grant Likely ha scritto: Da: Grant Likely Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200 A: s104259@yahoo.it Cc: devicetree-discuss@ozlabs.org Data: Venerd=C3=AC 5 dicembre 2008, 16:16 On Fri, Dec 5, 2008 at 8:02 AM, Angelo wrote: > Ok. > > Tha main problem is that if I cross-compile kernel for ARCH=3Dppc everythings > work fine. > >>"Configuring the Ethernet pins for USB IO is just a pin routing board setup >> task." > > What should I do for this?!?!? Without seeing your board I don't know, but I do know that there have been a *lot* of changes in mpc5200 support since 2.6.21, including USB. You should try using a 2.6.27 kernel. > > * I've configured the port_config in lite5200_setup_cpu(void) function > [arch/powerpc/platforms/52xx/lite5200.c]. I put in port_config the same > value that I put with ARCH=3Dppc! > > However I'm sure that my u-boot sets-up the port_config register because > fatls usb 0:1 / show me the content of usb-storage. If U-Boot sets up port_config correctly, then you do *not* need to change the setting in the kernel. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. --- Ven 5/12/08, Grant Likely ha scritto: Da: Grant Likely Oggetto: Re: R: usb/eth DTS nodes for custom board based on mpc5200 A: gianfranco.casanova@alice.it Cc: s104259@yahoo.it, "linuxppc-dev" , devicetree-= discuss@ozlabs.org Data: Venerd=C3=AC 5 dicembre 2008, 16:25 On Fri, Dec 5, 2008 at 8:16 AM, wrote: > Hi Grant > > we have already tested what you are suggesting, but nothing happens. > > I'm supposing the problem comes from interrupts. Unlikely. The interrupt routing is hard wired into the SoC and probably not messed up (unless the USB node in the device tree has been changed). You may have a problem with port_config (setup for single ended vs differential signaling) or some other electrical difference from the 5200. Beyond that it's not something that is easy to figure out over email. g. --=20 Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. =0A=0A=0A --0-643437297-1228491612=:73887 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Using 2.6.26.3 nothing changes.

Reading MPC5200 user guide I calculate the value of port_config to configure USB on ethernet port. So I'm using this value in arch=3Dppc everyting works.
With arch=3Dpowerpc I see that the kernel read the device tree blob, so I t= hink that I need to modify it.

However, when I plug-in my usb storage.. the system try to "initialize" the= device but something is dead...

How can I enable the sequent option (irqpoll):
...
irq 134: nobody cared (try booting with the "irqpoll" option)
...

thanks,
@ngel

--- Ven 5/12/08, Grant Likely <grant.likely@secretlab.ca> ha scritto:
Da: Grant Likely <grant.likely@secretlab.ca>Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200
A: s10= 4259@yahoo.it
Cc: devicetree-discuss@ozlabs.org
Data: Venerd=C3=AC 5 = dicembre 2008, 16:16

On Fri, Dec 5, 2008 at 8:02 AM, Angelo <=
;s104259@yahoo.it> wrote:
> Ok.
>
> Tha main problem i= s that if I cross-compile kernel for ARCH=3Dppc
everythings
> work= fine.
>
>>"Configuring the Ethernet pins for USB IO is just= a pin routing
board setup
>> task."
>
> What shoul= d I do for this?!?!?

Without seeing your board I don't know, but I d= o know that there have
been a *lot* of changes in mpc5200 support since = 2.6.21, including
USB. You should try using a 2.6.27 kernel.

>= ;
> * I've configured the port_config in=20 lite5200_setup_cpu(void)
function
> [arch/powerpc/platforms/52xx/= lite5200.c]. I put in port_config the same
> value that I put with AR= CH=3Dppc!
>
> However I'm sure that my u-boot sets-up the port_= config register
because
> fatls usb 0:1 / show me the content of u= sb-storage.

If U-Boot sets up port_config correctly, then you do *no= t* need to
change the setting in the kernel.

--
Grant Likely,= B.Sc., P.Eng.
Secret Lab Technologies Ltd.


--- Ven 5/12= /08, Grant Likely <grant.likely@secretlab.ca> ha scritto:<= br>
Da: Grant Likely <grant.likely@secretlab.ca&= gt;
Oggetto: Re: R: usb/eth DTS nodes for custom board based on mpc5200<= br>A: gianfranco.casanova@alice.it
Cc: s104259@yahoo.it, "linuxppc-dev" = <linuxppc-dev@ozlabs.org>, devicetree-discuss@ozlabs.org
Data: Venerd=C3=AC 5 dicembre 2008, 16:25

On Fri, Dec 5, 2008 at 8:1=
6 AM,  <gianfranco.casanova@alice.it> wrote:
> Hi Grant
>=
> we have already tested what you are suggesting, but nothing happen= s.
>
> I'm supposing the problem comes from interrupts.

= Unlikely. The interrupt routing is hard wired into the SoC and
probably= not messed up (unless the USB node in the device tree has
been changed)= . You may have a problem with port_config (setup for
single ended vs di= fferential signaling) or some other electrical
difference from the 5200.= Beyond that it's not something that is easy
to figure out over email.<= br>
g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technolog= ies Ltd.

=0A=0A=0A=0A --0-643437297-1228491612=:73887-- --===============0085494704== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev --===============0085494704==--