How can I access to the I2C at V by one connector?

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

Android

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official & self built

Please describe your issue below:

How can I access to the I2C at V by one connector?
I need to send commands and receive results.

Well, seems like Khadas team is too busy to take a look.
Here is a small-tiny note to share.

As you can see above VIM4 schematics, Khadas engineer named it as “i2C_E”
So, I just tried i2detect via adb

VIM4:/ # i2cdetect -l
i2c-3   i2c             Meson I2C adapter                       I2C Adapter
i2c-1   i2c             Meson I2C adapter                       I2C Adapter
i2c-6   i2c             Meson I2C adapter                       I2C Adapter
i2c-2   i2c             Meson I2C adapter                       I2C Adapter
i2c-0   i2c             Meson I2C adapter                       I2C Adapter
i2c-5   i2c             Meson I2C adapter                       I2C Adapter

I2c-n starts from the 0 and found out that i2c-4 is missing.
If i2c-0 is mapping to i2c_a, the missing i2c-4 is corresponding to i2c_e, the one exists on the VIM4 VBO connector.

Is it disabled by design?

@windchaser You can open it in the kvim4.dts file with the following configuration:

&i2c4{
	status = "okay";
	pinctrl-names="default";
	pinctrl-0=<&i2c4_pins1>;
	clock-frequency = <100000>; /* default 100k */
};

Then use the following command to set or obtain the corresponding register value:

i2cset -fy 4 addr reg value b
i2cget -fy 4 addr reg b
1 Like

Great! Thank you. I’ll try.