diff --git a/drivers/spi/spi_cc13xx_cc26xx.c b/drivers/spi/spi_cc13xx_cc26xx.c index 26a4ad4007c43..68a28fbadc1fe 100644 --- a/drivers/spi/spi_cc13xx_cc26xx.c +++ b/drivers/spi/spi_cc13xx_cc26xx.c @@ -81,8 +81,9 @@ static int spi_cc13xx_cc26xx_configure(const struct device *dev, return -EINVAL; } - if (config->frequency < 2000000) { - LOG_ERR("Frequencies lower than 2 MHz are not supported"); + if (config->frequency < CPU_FREQ / (254 * (255 + 1))) { + LOG_ERR("Frequencies lower than %d Hz are not supported", + CPU_FREQ / (254 * (255 + 1))); return -EINVAL; }