SPI clock settings on i.MX7

Hi @Gerhard

I did some more detailed checks with the library V2.2:
Available SPI bit rates on the Colibri iMX7S and Colibri iMX7D can be calculated as follows:

**60MHz / N / 2^M **, where

  • N is in the range [4 … 16], and
  • M is in the range [0…15]

The algorithm selects a frequency which is up to 10% higher than the requested frequency!

  • Example 1: The user requests a bit rate of 11MHz. The actual bit rate will be 12MHz (see table below).
  • Example 2: The user requests a bit rate of 10.8MHz. The actual bit rate will be 10MHz (see table below).

Bit rates up to 15MHz are supported.

Regards, Andy