Skip to contentSkip to conversation

mpc5200 and spi bus

DISCUSSION Asier Llano Palacios 4 participants 8 messages Apr 26, 2007 – May 3, 2007

lore
Share & tools
lore
#0 lore raw

I've seen some comments about drivers for SPI of the MPC5200. I'm not sure about it, but is there anything functional about it?. I want to know if there is anything already done, in order to use it or improve it. I need a driver of the SPI bus, so if it is not implemented at all we should contribute it.

Thank you,
Asier Llano=20
=20
----------------------------------------- PLEASE NOTE =
-------------------------------------------
This message, along with any attachments, may be confidential or legally = privileged.=20
It is intended only for the named person(s), who is/are the only = authorized recipients.
If this message has reached you in error, kindly destroy it without = review and notify the sender immediately.
Thank you for your help.
=B5SysCom uses virus scanning software but excludes any liability for = viruses contained in any attachment.
=20
------------------------------------ ROGAMOS LEA ESTE TEXTO =
-------------------------------
Este mensaje y sus anexos pueden contener informaci=F3n confidencial y/o = con derecho legal.=20
Est=E1 dirigido =FAnicamente a la/s persona/s o entidad/es rese=F1adas = como =FAnico destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elim=EDnelo sin = revisarlo ni reenviarlo y notif=EDquelo inmediatamente al remitente. = Gracias por su colaboraci=F3n. =20
=B5SysCom utiliza software antivirus, pero no se hace responsable de los = virus contenidos en los ficheros anexos.

#1 lore raw
Quoted 8 lines · Asier Llano Palacios

I've seen some comments about drivers for SPI of the MPC5200. I'm not sure about it, but is there anything functional about it?. I want to know if there is anything already done, in order to use it or improve it. I need a driver of the SPI bus, so if it is not implemented at all we should contribute it.

The Denx's 2.4.xx top of tree kernel has MPC5200 SPI support. We are using the SPI dev interface from a user aplication and it works fine.

begin:vcard
fn:Jose Maria Lopez
n:Lopez;Jose Maria
org:Fagor Automation S. Coop.
adr:;;San Andres 19. Apdo. 144;Arrasate-Mondragon;;20500;Spain email;internet:[email protected]
title:Sotware engineer
tel;work:(34) 943719200
tel;fax:(34) 943791712
x-mozilla-html:FALSE url:http://www.fagorautomation.es
version:2.1
end:vcard

#2 lore raw

I'm working with the a linux 2.6.20.9 with patches from Sylvain's tree. I've been looking the Den'x 2.5.xx SPI support and it seems that it is done through GPIOs. I'd like a native SPI implementation, using the hardware of the MPC5200, because of the performance issue of using a GPIO, because I'd like to use it at full speed.

Is it done really with GPIOs? If so, is there any other implementation? If it is possible I'd like it to be for 2.6.x.

Thank you,
Asier

El jue, 26-04-2007 a las 16:49 +0200, Txema Lopez escribi=F3:

Quoted 6 lines

Asier Llano Palacios wrote:
=20

Quoted 4 lines

I've seen some comments about drivers for SPI of the MPC5200. I'm not sure about it, but is there anything functional about it?. I want to know if there is anything already done, in order to use it or improve it. I need a driver of the SPI bus, so if it is not implemented at =

all

Quoted 8 lines
Quoted 4 lines

we should contribute it.

=20

The Denx's 2.4.xx top of tree kernel has MPC5200 SPI support. We are=20 using the SPI dev interface from a user aplication and it works fine. =20
=20

=20
----------------------------------------- PLEASE NOTE =
-------------------------------------------
This message, along with any attachments, may be confidential or legally = privileged.=20
It is intended only for the named person(s), who is/are the only = authorized recipients.
If this message has reached you in error, kindly destroy it without = review and notify the sender immediately.
Thank you for your help.
=B5SysCom uses virus scanning software but excludes any liability for = viruses contained in any attachment.
=20
------------------------------------ ROGAMOS LEA ESTE TEXTO =
-------------------------------
Este mensaje y sus anexos pueden contener informaci=F3n confidencial y/o = con derecho legal.=20
Est=E1 dirigido =FAnicamente a la/s persona/s o entidad/es rese=F1adas = como =FAnico destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elim=EDnelo sin = revisarlo ni reenviarlo y notif=EDquelo inmediatamente al remitente. = Gracias por su colaboraci=F3n. =20
=B5SysCom utiliza software antivirus, pero no se hace responsable de los = virus contenidos en los ficheros anexos.

#3 lore raw
Quoted 4 lines · Asier Llano Palacios

I'm working with the a linux 2.6.20.9 with patches from Sylvain's tree. I've been looking the Den'x 2.5.xx SPI support and it seems that it is done through GPIOs.

¿2.5.xx?. I talked about a 2.4.xx version.

Quoted 7 lines

I'd like a native SPI implementation, using the
hardware of the MPC5200, because of the performance issue of using a GPIO, because I'd like to use it at full speed.

Is it done really with GPIOs? If so, is there any other implementation?

Yes, you can use the MPC5200's dedicated SPI (spi-algo-mpc5xxx.c) or use a PSC in SPI codec mode (spi-algo-mpc5xxx-psc.c).

Quoted 3 lines

If it is possible I'd like it to be for 2.6.x.

I don't know nothing about the MPC5200 SPI implementation in the 2.6.x kernel.

Best regards,

begin:vcard
fn:Jose Maria Lopez
n:Lopez;Jose Maria
org:Fagor Automation S. Coop.
adr:;;San Andres 19. Apdo. 144;Arrasate-Mondragon;;20500;Spain email;internet:[email protected]
title:Sotware engineer
tel;work:(34) 943719200
tel;fax:(34) 943791712
x-mozilla-html:FALSE url:http://www.fagorautomation.es
version:2.1
end:vcard

#4 lore raw

El vie, 27-04-2007 a las 14:41 +0200, Txema Lopez escribi=F3:

Quoted 3 lines

Asier Llano Palacios wrote:
=20

Quoted 1 line

I'm working with the a linux 2.6.20.9 with patches from Sylvain's =

tree.

Quoted 1 line
Quoted 1 line

I've been looking the Den'x 2.5.xx SPI support and it seems that it =

is

Quoted 4 lines
Quoted 2 lines

done through GPIOs.=20

=BF2.5.xx?. I talked about a 2.4.xx version.
=20

Sorry this was a mistyping. I was pretending to say 2.4.xx.

Quoted 5 lines
Quoted 5 lines

I'd like a native SPI implementation, using the
hardware of the MPC5200, because of the performance issue of using a GPIO, because I'd like to use it at full speed.

Is it done really with GPIOs? If so, is there any other =

implementation?

Quoted 3 lines
Quoted 2 lines

=20

Yes, you can use the MPC5200's dedicated SPI (spi-algo-mpc5xxx.c) or =

use=20

Quoted 1 line

a PSC in SPI codec mode (spi-algo-mpc5xxx-psc.c).

Thank you very much. I don't know where I was looking. I've seen the code and it seems interesting and easy to port.

Quoted 7 lines
Quoted 3 lines

If it is possible I'd like it to be for 2.6.x.
=20

I don't know nothing about the MPC5200 SPI implementation in the 2.6.x =

kernel.
=20

I'll have a look. If don't see anything the code from 2.4.x is good starting point to port it.

Quoted 1 line

Best regards,

Thank you very much for the information.=20
=20
----------------------------------------- PLEASE NOTE =
-------------------------------------------
This message, along with any attachments, may be confidential or legally = privileged.=20
It is intended only for the named person(s), who is/are the only = authorized recipients.
If this message has reached you in error, kindly destroy it without = review and notify the sender immediately.
Thank you for your help.
=B5SysCom uses virus scanning software but excludes any liability for = viruses contained in any attachment.
=20
------------------------------------ ROGAMOS LEA ESTE TEXTO =
-------------------------------
Este mensaje y sus anexos pueden contener informaci=F3n confidencial y/o = con derecho legal.=20
Est=E1 dirigido =FAnicamente a la/s persona/s o entidad/es rese=F1adas = como =FAnico destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elim=EDnelo sin = revisarlo ni reenviarlo y notif=EDquelo inmediatamente al remitente. = Gracias por su colaboraci=F3n. =20
=B5SysCom utiliza software antivirus, pero no se hace responsable de los = virus contenidos en los ficheros anexos.

#5 lore raw

Hi,

Quoted 4 lines · Asier Llano Palacios
Quoted 1 line

I'll have a look. If don't see anything the code from 2.4.x is good starting point to port it.

There was a patch for the PSC in SPI mode for 2.6 posted here:

http://sourceforge.net/mailarchive/forum.php?thread_name=45DD9ABF.9010009%40toptica.com&forum_name=spi-devel-general

I can forward you the patch if you like, because the sourceforge server only replies with "Insufficient parameters" when I click on the patch link :(

I myself wrote a driver for the dedicated SPI port which I can post on spi-devel-general tomorrow (after I looked over it again).

Best regards,
Sascha

#6 lore raw

This will take you to a page where the download attachment link will actually work:

http://sourceforge.net/mailarchive/attachment.php?list_name=spi-devel-general&[email protected]&counter=1

Quoted 27 lines · Sascha Hauer

Hi,

Quoted 4 lines · Asier Llano Palacios
Quoted 1 line

I'll have a look. If don't see anything the code from 2.4.x is good starting point to port it.

There was a patch for the PSC in SPI mode for 2.6 posted here:

http://sourceforge.net/mailarchive/forum.php?thread_name=45DD9ABF.9010009%40toptica.com&forum_name=spi-devel-general

I can forward you the patch if you like, because the sourceforge server only replies with "Insufficient parameters" when I click on the patch link :(

I myself wrote a driver for the dedicated SPI port which I can post on spi-devel-general tomorrow (after I looked over it again).

Best regards,
Sascha

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#7 lore raw

Thank you very much for the patch. I will tell you how it worked. Currently I need the SPI mode PSC driver (this one), but the other one may be quite interesting also.

Thank you,
Asier

El mi=E9, 02-05-2007 a las 14:19 -0600, John Rigby escribi=F3:

Quoted 4 lines

This will take you to a page where the download attachment link will actually work:
=20
=

http://sourceforge.net/mailarchive/attachment.php?list_name=3Dspi-devel-g=
eneral&[email protected]&counter=3D1

Quoted 5 lines

=20

Quoted 3 lines · Sascha Hauer

Hi,

On Wed, May 02, 2007 at 10:02:44AM +0200, Asier Llano Palacios =

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

I'll have a look. If don't see anything the code from 2.4.x is =

good

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

starting point to port it.

There was a patch for the PSC in SPI mode for 2.6 posted here:

=

http://sourceforge.net/mailarchive/forum.php?thread_name=3D45DD9ABF.90100=
09%40toptica.com&forum_name=3Dspi-devel-general

Quoted 2 lines
Quoted 2 lines

I can forward you the patch if you like, because the sourceforge =

server

Quoted 1 line
Quoted 1 line

only replies with "Insufficient parameters" when I click on the =

patch

Quoted 3 lines
Quoted 3 lines
link (

I myself wrote a driver for the dedicated SPI port which I can post =

on

Quoted 10 lines
Quoted 10 lines

spi-devel-general tomorrow (after I looked over it again).

Best regards,
Sascha

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
=20

=20
----------------------------------------- PLEASE NOTE =
-------------------------------------------
This message, along with any attachments, may be confidential or legally = privileged.=20
It is intended only for the named person(s), who is/are the only = authorized recipients.
If this message has reached you in error, kindly destroy it without = review and notify the sender immediately.
Thank you for your help.
=B5SysCom uses virus scanning software but excludes any liability for = viruses contained in any attachment.
=20
------------------------------------ ROGAMOS LEA ESTE TEXTO =
-------------------------------
Este mensaje y sus anexos pueden contener informaci=F3n confidencial y/o = con derecho legal.=20
Est=E1 dirigido =FAnicamente a la/s persona/s o entidad/es rese=F1adas = como =FAnico destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elim=EDnelo sin = revisarlo ni reenviarlo y notif=EDquelo inmediatamente al remitente. = Gracias por su colaboraci=F3n. =20
=B5SysCom utiliza software antivirus, pero no se hace responsable de los = virus contenidos en los ficheros anexos.