linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* mpc5200 and spi bus
@ 2007-04-26 13:50 Asier Llano Palacios
  2007-04-26 14:49 ` Txema Lopez
  0 siblings, 1 reply; 8+ messages in thread
From: Asier Llano Palacios @ 2007-04-26 13:50 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: tlopez, Sylvain Munaut, Aitor Arzuaga

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.

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

* Re: mpc5200 and spi bus
  2007-04-26 13:50 mpc5200 and spi bus Asier Llano Palacios
@ 2007-04-26 14:49 ` Txema Lopez
  2007-04-27 10:36   ` Asier Llano Palacios
  0 siblings, 1 reply; 8+ messages in thread
From: Txema Lopez @ 2007-04-26 14:49 UTC (permalink / raw)
  To: Asier Llano Palacios; +Cc: linuxppc-embedded

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

Asier Llano Palacios wrote:

>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.


[-- Attachment #2: tlopez.vcf --]
[-- Type: text/x-vcard, Size: 324 bytes --]

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:tlopez@aotek.es
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


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

* Re: mpc5200 and spi bus
  2007-04-26 14:49 ` Txema Lopez
@ 2007-04-27 10:36   ` Asier Llano Palacios
  2007-04-27 12:41     ` Txema Lopez
  0 siblings, 1 reply; 8+ messages in thread
From: Asier Llano Palacios @ 2007-04-27 10:36 UTC (permalink / raw)
  To: Txema Lopez; +Cc: linuxppc-embedded

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:
> Asier Llano Palacios wrote:
>=20
> >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.
> >
> > =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.

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

* Re: mpc5200 and spi bus
  2007-04-27 10:36   ` Asier Llano Palacios
@ 2007-04-27 12:41     ` Txema Lopez
  2007-05-02  8:02       ` Asier Llano Palacios
  0 siblings, 1 reply; 8+ messages in thread
From: Txema Lopez @ 2007-04-27 12:41 UTC (permalink / raw)
  To: Asier Llano Palacios; +Cc: linuxppc-embedded

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

Asier Llano Palacios wrote:

>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.

>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).

>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,


[-- Attachment #2: tlopez.vcf --]
[-- Type: text/x-vcard, Size: 324 bytes --]

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:tlopez@aotek.es
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


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

* Re: mpc5200 and spi bus
  2007-04-27 12:41     ` Txema Lopez
@ 2007-05-02  8:02       ` Asier Llano Palacios
  2007-05-02 17:36         ` Sascha Hauer
  0 siblings, 1 reply; 8+ messages in thread
From: Asier Llano Palacios @ 2007-05-02  8:02 UTC (permalink / raw)
  To: Txema Lopez; +Cc: linuxppc-embedded

El vie, 27-04-2007 a las 14:41 +0200, Txema Lopez escribi=F3:
> Asier Llano Palacios wrote:
>=20
> >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.=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.

> >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?
> > =20
> >
> Yes, you can use the MPC5200's dedicated SPI (spi-algo-mpc5xxx.c) or =
use=20
> 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.

> >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.

> 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.

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

* Re: mpc5200 and spi bus
  2007-05-02  8:02       ` Asier Llano Palacios
@ 2007-05-02 17:36         ` Sascha Hauer
  2007-05-02 20:19           ` John Rigby
  0 siblings, 1 reply; 8+ messages in thread
From: Sascha Hauer @ 2007-05-02 17:36 UTC (permalink / raw)
  To: Asier Llano Palacios; +Cc: Txema Lopez, linuxppc-embedded

Hi,

On Wed, May 02, 2007 at 10:02:44AM +0200, Asier Llano Palacios wrote:
> > 
> 
> 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

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

* Re: mpc5200 and spi bus
  2007-05-02 17:36         ` Sascha Hauer
@ 2007-05-02 20:19           ` John Rigby
  2007-05-03 10:22             ` Asier Llano Palacios
  0 siblings, 1 reply; 8+ messages in thread
From: John Rigby @ 2007-05-02 20:19 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: Txema Lopez, linuxppc-embedded

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&message_id=45DEDC70.7010301@toptica.com&counter=1

On 5/2/07, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> Hi,
>
> On Wed, May 02, 2007 at 10:02:44AM +0200, Asier Llano Palacios wrote:
> > >
> >
> > 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
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>

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

* Re: mpc5200 and spi bus
  2007-05-02 20:19           ` John Rigby
@ 2007-05-03 10:22             ` Asier Llano Palacios
  0 siblings, 0 replies; 8+ messages in thread
From: Asier Llano Palacios @ 2007-05-03 10:22 UTC (permalink / raw)
  To: John Rigby; +Cc: Txema Lopez, linuxppc-embedded

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:
> 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&message_id=3D45DEDC70.7010301@toptica.com&counter=3D1
>=20
> On 5/2/07, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> > Hi,
> >
> > On Wed, May 02, 2007 at 10:02:44AM +0200, Asier Llano Palacios =
wrote:
> > > >
> > >
> > > 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=3D45DD9ABF.90100=
09%40toptica.com&forum_name=3Dspi-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
> > Linuxppc-embedded@ozlabs.org
> > 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.

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

end of thread, other threads:[~2007-05-03 10:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 13:50 mpc5200 and spi bus Asier Llano Palacios
2007-04-26 14:49 ` Txema Lopez
2007-04-27 10:36   ` Asier Llano Palacios
2007-04-27 12:41     ` Txema Lopez
2007-05-02  8:02       ` Asier Llano Palacios
2007-05-02 17:36         ` Sascha Hauer
2007-05-02 20:19           ` John Rigby
2007-05-03 10:22             ` Asier Llano Palacios

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).