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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines