Hi All
I am trying to use McSPI2 on my AM3517 board through the linux SPI core and spidev to talk to an audio codec. The problem is, that I can send data out of the port but when I try to receive data, I only get zeros. I verified (by scope) that the codec is sending data, so it must get lost somewhere in the processor. My settings are:
8 Bit, CLK is active high and data sampled at second edge (mode 1), using CS0, CPU is master, frequency ~1MHz
I configured the pin mux in U-Boot and disabled the pin muxing in Linux entirely. The settings seems to work, I have verified that by looking directly at the pinmux register for the MISO pin. When I set the MISO pin to GPIO mode, I can see the signal toggling, so the hardware connection seems to be OK. SPI1 works correctly (also receive), so I figure that the driver is OK in principle.
I tried to manually receive data by poking around in the McSPI2 registers but did not succeed either, but that could be due to mispoking on my part.
-> Is there a known problem with the Linux McSPI driver and AM3517 SPI2 receive?
-> Is there a known problem with McSPI2 on AM3517?
-> Any other ideas on what I could try?
Regards
Florian