Configuring dts File

7 channels of I2C bus are supported: i2c0 to i2c6.

The DTSI file, jh7110-visionfive-v2.dtsi, is under /linux/arch/riscv/boot/dts/starfive.

The following is the default setting. You can configure the unoccupied GPIOs as required.

Figure 1. Example File Content
Note:

The I2C GPIO pin number is the number indicated in the Pin Name. For more details about the GPIO Pin Name, see the GPIO Pinout in this document. The pin names of the I2C GPIO are listed as follows:

  • GPIO58 (I2C SDA)

  • GPIO57 (I2C SCL)