I was wondering if there are ways to programmatically, during runtime, change the frequency of enabled i2c buses on iMX8X SOMs? So far, we’ve been setting the i2c bus frequency in the device tree with no issues, but would like to understand if there are some device driver which allows us to control the bus speed directly. I found somewhat of an example here, though I haven’t been able to verify if it works with the i2c-imx-lpi2c drivers used for the i2c buses on the iMX8X modules.
sudo modprobe -r i2c_bcm2708 sudo modprobe i2c_bcm2708 baudrate=32000
For most part of my search, it appears that the device tree is the only way to set the i2c bus frequency, and that it is impossible to alter it during runtime, or at least, without a reboot. Just wanted a confirmation if this is truly the case.