Power & Source of Big Ideas

Anyway to change I2C speed on Nano Pi Neo2

Moderators: chensy, FATechsupport

Hi,

I'm adding an I2C sensor to my Nano Pi that driving LED screen. However, my logic analyzer shows the I2C is operating at 100Khz,

Are there ways to set the I2C speed to 400Khz?

Thanks
OK, answering my own question.

I referred to https://michaelfranzl.com/2016/11/10/se ... pberry-pi/

I ran this fdtdump to get the device tree

fdtdump /boot/sun50i-h5-nanopi-neo2.dtb

found "i2c@01c2ac00", although I didn't find clock-frequency parameter under it, I still tried fdtput.

sudo fdtput --type u /boot/sun50i-h5-nanopi-neo2.dtb /soc/i2c@01c2ac00 clock-frequency 400000

After reboot, I2C speed boosted to 363K.

Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 23 guests