Hi,
I have an OMAPL138 based custom board that runs Linux (DaVinci-PSP-SDK-03.20.00.11) on the ARM processor . I am trying to use the SPI0 interface from Linux to communicate whith a FPGA device and a flash memory but I am not able to make it work properly. In my board file in Linux kernel I specify a max_speed_hz = 30 000 000 for my spi0 devices but when I measure on the SPI0_CLK pin with oscilliscope it looks like the SPI0 clock has a 75 MHz frequency.
I have confirmed that the PRESCALE bits in the SPIFMT register is correct. PRESCALE = 4 which means that SPI clock frequency = SPI module clock / (PRESCALE +1) = 150 Mhz / 5 = 30 MHz, i.e. the same as I specified in my board file. So why do I get a 75MHz output on SPI0_CLK pin?
I also have a flash memory connected on the SPI1 interface but that interface works perfect and the measured clock frequency output is the same as specified in board file. So there must be something strange with my settings for SPI0 but I can not figure out what's wrong.
I appreciate any suggestions on what I should check or do to make it work.
Thank you,
Henrik Abrahamsson