Jens 0 Posted October 25, 2023 Hello everyone, Can anyone guide me on how to adjust the speed for the two i2c busses on my Tinker Board 2 running Linux? Thanks in advance, Jens Share this post Link to post Share on other sites
tooz 53 Posted October 26, 2023 hello @Jens, you can set the speed to 40k or 10k (it's 40k by default). to change the speed to 10k using overlay: 1. download the dtbo files and i2cspeed.sh from: https://www.asuswebstorage.com/navigate/a/#/s/258BFBD7E61045C9BECB7DA044378A844 2. move i2c6_10k.dtbo & i2c7_10k.dtbo to /boot/overlays 3. sudo vim /boot/config.txt modify the last line in config.txt overlay=i2c6_10K (if you're using i2c7, then the last line should be overlay=i2c7_10k) 4. save and reboot tinker board 2s 5. to verify the change comes effective using i2cspeed.sh sudo chmod +x i2cspeed.sh ./i2cspeed.sh the script then prints the i2c clock frequency Share this post Link to post Share on other sites
tooz 53 Posted October 26, 2023 hello @Jens, you can set the speed to 40k or 10k (it's 40k by default). to change the speed to 10k using overlay: 1. download the dtbo files and i2cspeed.sh from: https://www.asuswebstorage.com/navigate/a/#/s/258BFBD7E61045C9BECB7DA044378A844 2. move i2c6_10k.dtbo & i2c7_10k.dtbo to /boot/overlays 3. sudo vim /boot/config.txt modify the last line in config.txt overlay=i2c6_10K (if you're using i2c7, then the last line should be overlay=i2c7_10k) 4. save and reboot tinker board 2s 5. to verify the change comes effective using i2cspeed.sh sudo chmod +x i2cspeed.sh ./i2cspeed.sh the script then prints the i2c clock frequency Share this post Link to post Share on other sites
Jens 0 Posted October 29, 2023 (edited) Thank you for the quick and very comprehensive response. I can now change either i2c-bus 6 or 7 to 10k but how do I change both? Thanks in advance, Jens Edited October 29, 2023 by Jens Share this post Link to post Share on other sites
Jens 0 Posted October 29, 2023 Another question: Is there any way to change the speed to 100k ? If I interpret the specs for the RK3399 correctly it should be capable of speeds up to 400k. Jens Share this post Link to post Share on other sites
tooz 53 Posted October 30, 2023 hello @Jens, sorry for not making it clear, the 10k in the config.txt = 100khz, so if you wanna change both i2c6 & i2c7 to 100k: overlay=i2c6_10k i2c7_10k (separate the variants with space instead of comma) the speed is 400k by default, if you want to change them back to 400k, just remove the line overlay=i2c6_10k i2c7_10k Share this post Link to post Share on other sites
Jens 0 Posted October 30, 2023 Thanks again for the great answer. I guess that solves my initial problem. Excelent support! Share this post Link to post Share on other sites