Aleksey Gavrikov Posted September 26, 2020 Posted September 26, 2020 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.
martinayotte Posted September 27, 2020 Posted September 27, 2020 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 1
Recommended Posts