I want to set i2c2 in hps to FPGA io, but it can’t work normally

The qsys settings are as follows:

092951q2t16ntkuvbzhhb4.jpg

Added input and output interfaces in verilog

output i2c2_clk,

inout i2c2_sda_io

0201221115852.jpg

Two lines

201221120030.jpg

soc statement

20201221120154.jpg

Then modified the dtb of linux

20201221120449.jpg

After that, it can't work on linux (mpu6050 is not connected to i2c bus 1, and 2 is connected).

20201221120808.jpg

Seek help solution.

Reply