How to change operating frequency of i2c3 bus

Which system do you use? Android, Ubuntu, OOWOW or others?

Khadas vim3 Ubuntu

Which version of system do you use? Please provide the version of the system here:

uname -a output:

Linux Khadas 4.9.241 #2 SMP PREEMPT Fri Nov 18 03:18:35 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Please describe your issue below:

How can I view the i2c3 bus operating frequency and how can I change it? What is the range of valid frequencies?

Hello @ericz9002

You can goto /sys/bus/i2c/devices/i2c-3/device to setup the speed.

root@Khadas:/sys/bus/i2c/devices/i2c-3/device# cat speed 
100000
root@Khadas:/sys/bus/i2c/devices/i2c-3/device# echo 400000 > speed 
root@Khadas:/sys/bus/i2c/devices/i2c-3/device# cat speed 
400000
root@Khadas:/sys/bus/i2c/devices/i2c-3/device# 

Not tested, but not exceed 400000.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.