From 1402d2d8b4265e059e82fe67dee9b3e837a5fa2d Mon Sep 17 00:00:00 2001 From: Jonas Otto Date: Thu, 21 Sep 2023 23:24:36 +0200 Subject: [PATCH] drivers: i2c_ll_stm32_v2: add warning about i2c speeds above fast The i2c_ll_stm32_v2 driver requires manual timing configuration for "fast mode plus" speed. This adds an error message linking to the appropriate documentation. Signed-off-by: Jonas Otto --- drivers/i2c/i2c_ll_stm32_v2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/i2c_ll_stm32_v2.c b/drivers/i2c/i2c_ll_stm32_v2.c index ea2e626f8ec..3f83bde5ddb 100644 --- a/drivers/i2c/i2c_ll_stm32_v2.c +++ b/drivers/i2c/i2c_ll_stm32_v2.c @@ -702,6 +702,8 @@ int stm32_i2c_configure_timing(const struct device *dev, uint32_t clock) i2c_setup_time_min = 500U; break; default: + LOG_ERR("i2c: speed above \"fast\" requires manual timing configuration, " + "see \"timings\" property of st,stm32-i2c-v2 devicetree binding"); return -EINVAL; }