Hi,
Thanks for your help! It was pin conflicts problem. I have checked MISO, MOSI, and SCLK. All these three signals are working fine but I am not observing the chip select signal toggling on my scope. I am using GPIO for my CS signal. I tired 2 GPIO for this signal. Neither of both shows any toggling.
In function int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, void *din, unsigned long flags)
before transfer begins, spi_cs_activate(slave) is called. I assumed this function toggles the chip select signal.
void spi_cs_activate(struct spi_slave *slave)
{
struct mxc_spi_slave *mxcs = to_mxc_spi_slave(slave);
if (mxcs->gpio > 0)
gpio_set_value(mxcs->gpio, mxcs->ss_pol);
}
mxcs->gpio is initialized to -1 for gpio.
thanks
yong