Jump to content

Orange pi 3 - change i2c speed


Aleksey Gavrikov

Recommended Posts

You need to connect the equipment via the I2C bus with a frequency of 1 kHz or 10 kHz to Orange pi 3 (OS Armbian Buster with Linux 5.3.9-sunxi64).
Supported setting of these frequencies and how to change correctly?

 

Recoded sun50i-h6-orangepi-3.dtb to dts:

cd /boot/dtb/allwinner/
dtc -I dtb -O dts -o sun50i-h6-orangepi-3.dts ./sun50i-h6-orangepi-3.dtb
nano ./sun50i-h6-orangepi-3.dts

 

What should be done next to set the frequency of 1 kHz or 10 kHz to the i2c-0 bus?

Thanks.

Link to comment
Share on other sites

18 hours ago, Aleksey Gavrikov said:

What should be done next to set the frequency of 1 kHz or 10 kHz to the i2c-0 bus?

I2C standard clock are usually 100KHz or 400KHz, but you can try other values.

Here is the doc, the parameter is "clock-frequency" :

https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-designware.txt

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines