Hello,
how do I get along with spi device driver development under Linux.
I am using kernel 2.6.21.7 with an Atmel AT91RM9200.
My task is to develop an SPI driver between a RFID transceiver and
AT91RM9200 .
e.g. to receive tag responses, check RFID Transceibe state...
However I have never been developing device driver for embeeded linux
system, just for 8/16-Bit microcontroler.
I am not very familiar with linux device driver development, but I have
already been programming on linux. Is it possible to use the SPI
framework (.../include/linux/spi/spi.h) ??? If yes, how....?
With SPI Driver for AT91RM9200 (legacy):
I tried to open(/dev/spi2...) to write to SPI CS2, but the CS line did
not go down and there is no clk at SPICLK line. How do I select the
different cs lines?
When I compiled the kernel I checked SPI legacy driver for ATRM9200
under character devices.
With SPI Master for AT91:
Afterward I checked SPI Master for AT91 and it not work either.
Under /sys/bus/spi/platform/devices... I have some subdirectories called
spi0.0, spi0.1, spi0.2, spi0.3 with bind, unbind modalias files.
How I get that running????
Finding a good howto is not easy...
I am looking forward to hear from you
Best regards
Janusz Piwek
Dipl.-Ing. Janusz Piwek
Embedded Systems / RF Engineering
Certus Warensicherungs-Systeme GmbH
St.- Annen - Straße 17 - 21
26441 Jever
Germany
j.piwek@xxxxxxxxxxxxx
www.certus-eas.de
Tel.: +49 (0) 44 61 / 92 30 77
Fax: +49 (0) 44 61 / 92 30 92
Mobile: +49 (0) 177 / 8 94 56 00
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ