How can I set the i2c frequency to below 10KHz in the linux device tree? STM32MP153a
I tried setting the i2c frequency to less than 20KHz but I got the following error:
[ 1.788573] stm32f7-i2c 40012000.i2c: no solution at all
[ 1.792517] stm32f7-i2c 40012000.i2c: failed to compute I2C timings.
[ 1.798793] stm32f7-i2c 40012000.i2c: Impossible to compute I2C timings.
[ 1.805717] stm32f7-i2c: probe of 40012000.i2c failed with error -1
This is the device tree change:
&i2c1{
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c1_pins_mx>;
pinctrl-1 = <&i2c1_sleep_pins_mx>;
status = "okay";
/* USER CODE BEGIN i2c1 */
clock-frequency = <10000>;
/* USER CODE END i2c1 */
};