usb/eth DTS nodes for custom board based on mpc5200
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?
Many thanks,
@ngel
_______________________________________________
devicetree-discuss mailing list [email protected]
https://ozlabs.org/mailman/listinfo/devicetree-discuss
Quoted 11 lines · Angelo
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 onlite5200b.dts
* USB port (USB2) configured on the Ethernet port
Quoted 2 lines
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.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Ok.
Tha main problem is that if I cross-compile kernel for ARCH=ppc everythings work fine.
Quoted 1 line
"Configuring the Ethernet pins for USB IO is just a pin routing board setup task."
What should I do for this?!?!?
* 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.
Thanks,
@ngel
--- Ven 5/12/08, Grant Likely <grant.likely-s3s/[email protected]> ha scritto:
Da: Grant Likely <grant.likely-s3s/[email protected]>
Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200
A: [email protected]
Cc: [email protected], "linuxppc-dev" <[email protected]>
Data: Venerdì 5 dicembre 2008, 15:40
Quoted 11 lines · Angelo
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 onlite5200b.dts
* USB port (USB2) configured on the Ethernet port
Quoted 2 lines
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.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
_______________________________________________
devicetree-discuss mailing list [email protected]
https://ozlabs.org/mailman/listinfo/devicetree-discuss
R: usb/eth DTS nodes for custom board based on mpc5200
In reply to Grant LikelyHi 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=0/64
root@RadioNav: ~ #[ 29.199841] usb 1-2: khubd timed out on ep0in len=0/64
root@RadioNav: ~ #[ 34.307841] usb 1-2: khubd timed out on ep0in len=0/64
root@RadioNav: ~ #[ 34.382786] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [1] = 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-mpcBAD: 0
Ideas :( ??
Thanks J
P.S. Using lite5200 EVB USB works well using almost same drivers.
-----Messaggio originale-----
Da: [email protected] per conto di Grant Likely
Inviato: ven 05/12/2008 15.40
A: [email protected]
Cc: linuxppc-dev; [email protected]
Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200
Quoted 11 lines · Angelo
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 onlite5200b.dts
* USB port (USB2) configured on the Ethernet port
Quoted 2 lines
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.
Signature · 6 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. _______________________________________________ Linuxppc-dev mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-dev
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev
Quoted 9 lines · Angelo
Ok.
Tha main problem is that if I cross-compile kernel for ARCH=ppc everythings work fine.
Quoted 2 lines
"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.
Quoted 7 lines
* I've configured the
port_configinlite5200_setup_cpu(void)function [arch/powerpc/platforms/52xx/lite5200.c]. I put inport_configthe same value that I put with ARCH=ppc!However I'm sure that my u-boot sets-up the
port_configregister 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.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: R: usb/eth DTS nodes for custom board based on mpc5200
In reply to a message not in the archiveQuoted 5 lines · On Fri, Dec 5, 2008 at 8:16 AM, <gianfranco.casanova-1Ph4/[email protected].…
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.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: R: usb/eth DTS nodes for custom board based on mpc5200
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=ppc everyting works.
With arch=powerpc I see that the kernel read the device tree blob, so I think 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 <[email protected]> ha scritto:
Da: Grant Likely <[email protected]>
Oggetto: Re: usb/eth DTS nodes for custom board based on mpc5200
A: [email protected]
Cc: [email protected]
Data: Venerdì 5 dicembre 2008, 16:16
Quoted 3 lines · Angelo
Ok.
Tha main problem is that if I cross-compile kernel for ARCH=ppc
everythings
Quoted 3 lines
work fine.
Quoted 1 line
"Configuring the Ethernet pins for USB IO is just a pin routing
board setup
Quoted 3 lines
Quoted 1 line
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.
Quoted 2 lines
* I've configured the
port_configinlite5200_setup_cpu(void)
function
Quoted 4 lines
[
arch/powerpc/platforms/52xx/lite5200.c]. I put inport_configthe same value that I put with ARCH=ppc!However I'm sure that my u-boot sets-up the
port_configregister
because
Quoted 1 line
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.
Signature · 9 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. --- Ven 5/12/08, Grant Likely <[email protected]> ha scritto: Da: Grant Likely <[email protected]> Oggetto: Re: R: usb/eth DTS nodes for custom board based on mpc5200 A: [email protected] Cc: [email protected], "linuxppc-dev" <[email protected]>, [email protected] Data: Venerdì 5 dicembre 2008, 16:25
Quoted 5 lines · On Fri, Dec 5, 2008 at 8:16 AM, <[email protected]> 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.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-dev