Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: bexizuo on May 05, 2013, 11:39:08 AM

Title: SPI speed
Post by: bexizuo on May 05, 2013, 11:39:08 AM
Hi,

anybody knows what is maximum speed limitation on SPI on A13 ?

is there OLinuxino that supports up to 60MHz on SPI clk ?

Kind regards,
Title: Re: SPI speed
Post by: vinifr on May 09, 2013, 05:31:44 AM
20MHz: https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.0/arch/arm/mach-sun5i/include/mach/spi.h#L230 (https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.0/arch/arm/mach-sun5i/include/mach/spi.h#L230)
Title: Re: SPI speed
Post by: JohnS on May 09, 2013, 10:19:06 AM
Odd - the comment says 20MHz but the constant is 80MHz.  Maybe an outdated comment.

Worth trying 60MHz, I guess.

Please post back whether it works or not.

John
Title: Re: SPI speed
Post by: bexizuo on May 10, 2013, 10:55:29 AM
JohnS, i don't have it now, but i'm looking for the device that supports at least 50MHz on SPI, but if you found out that the frequency is higher then i will order it, but now i have to finish some other things,

Thank You and vinifr for the reply,

Kind regards
Title: Re: SPI speed
Post by: BJFreeman on May 25, 2013, 11:14:16 AM
been digging, the A13 User Manual - v1.2 (2013-01-08).pdf @ http://dl.linux-sunxi.org/A13/  page 72 (SPI 0_SCLK_CFG_REG) says the max is 200mhz
drivers-sunxi\spi_bus