linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergio Donati <sergio_donati-whZMOeQn8C0@public.gmane.org>
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Linux SPI newbie ST M25P16
Date: Wed, 16 Dec 2009 18:24:15 +0000 (GMT)	[thread overview]
Message-ID: <137450.30492.qm@web24207.mail.ird.yahoo.com> (raw)

Good morning,

I run into a big trouble:
I am very new to linux embedded , and i have to interface an ST M25p16 to a MPC8313E cpu.
I am working on a demoboard MPC8313E-RDB REVA2, with the ltib-mpc8313erdb-20081222 coming from Freescale.
~ # uname -a
Linux mpc8313erdb 2.6.23 #12 Tue Dec 15 14:21:22 CET 2009 ppc unknown

  i have connected the M25P16 to the SPI controller but now i am very very confused.
I know quite well how the SPI signals works, but:

I don't know how to access the memory and how to use the functions and/or the driver resources.

I have activated into the kernel configuration the following items: 

----Memory Technology Device (MTD) support
     <*>   MTD concatenating support
     [*]   MTD partitioning support
     [*]     Command line partition table parsing
     <*>   Direct char device access to MTD devices
     <*>   Caching block device access to MTD devices

---- SPI support
     [*] SPI support
     <*> Freescale MPC83xx SPI controller
     <*> SPI EEPROMs from most vendors

- The /dev directory doesn't show any device referring to the memory.
- The SPI signals except of one dummy byte during the startup phase are stucked into the idle state.

I take a look to the file "m25p80.c" but i have not clear how to use it.
Have i to declare something into the .dts file? in wich way?
Someone knows if there is some example about it?
Same story with "spidev.c".
Which log can help you to help me?  

100000 Thanks to everyone that will help me.

                                   Sergio Donati








      

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 

                 reply	other threads:[~2009-12-16 18:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=137450.30492.qm@web24207.mail.ird.yahoo.com \
    --to=sergio_donati-whzmoeqn8c0@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).