at91sam9261 Slave Device not replying back | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi, I have a ads7846 "kind" of slave device connected to the atmel at91sam9261ek board, but isolating the existing ads7846. And using the atmel_spi controller driver to write / read to my slave device. I configured the SPI to work in a 8 bit, spi_mode_0 (tried out spi_mode_1/2/3 since the slave says CPOL=0, and CPHA=1), working on 400kHz. There are 2 types of command which can be written to that device, one which changes status of a particular gpio line, other, which is supposed send back some data. On sending such commands (send is successful, because ss, sclk, mosi have all be probed at, and gives the right results), I am unable to recieve any data (no traffic on miso) into my driver. However the when I send the "write" commands the device behaves as expected and changes the status of relevant GPIO pins. But unable to read any data i.e I always get 0's in my read ptr, whether I do sync() or async() ? Any clues ? < NOT using any DMA, so the dma_map_xfer and unmap_xfer happens > Here is the sample output of various registers, imr, status, cfr2 (its on chip select 2) etc.. probe(50) called <7>tsc2006 spi0.2: setup: 398907 Hz bpw 8 mode 0x2 -> csr2 0a0af903 <7>atmel_spi atmel_spi.0: new message c1bdbd74 submitted for spi0.2 <7>atmel_spi atmel_spi.0: xfer c1bdbda0: len 3 tx c1bdbdc5/21bdbdc5 rx 0000000 0/ffffffff <7>tsc2006 spi0.2: activate 60 <7>tsc2006 spi0.2: start xfer c1bdbda0: len 3 tx c1bdbdc5/21bdbdc5 rx 00000000 /ffffffff imr 018 <7>atmel_spi atmel_spi.0: spi_intr: stat_reg 102f2, mcr b0011 <7>atmel_spi atmel_spi.0: spi_intr3: RDR b0000 <7>tsc2006 spi0.2: DEactivate 60 ====================================================================== <7>atmel_spi atmel_spi.0: new message c1b2dd74 submitted for spi0.2 <7>atmel_spi atmel_spi.0: xfer c1b2dda0: len 2 tx 00000000/ffffffff rx c1b2ddc6/21b2ddc6 <7>tsc2006 spi0.2: activate 60 <7>tsc2006 spi0.2: start xfer c1b2dda0: len 2 tx 00000000/ffffffff rx c1b2ddc6/21b2ddc6 imr 018 <7>atmel_spi atmel_spi.0: spi_intr: stat_reg 102f2, mcr b0011 <7>atmel_spi atmel_spi.0: spi_intr3: RDR b0000 <7>tsc2006 spi0.2: DEactivate 60 ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux ARM Kernel] [Linux OMAP] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]