I2c devices can't communicate on TX2

You are using TX2 NX instead of TX2?

I use TX2 NX.TX2 NX dts use to t18x/lanai.

OK, could you copy the lanai dts to 32.5 to try.

ok, i try it.

Compile error,missing files, MAKEFILE should be modified. Difficult to modify.

When will this problem be resolved?I need to i2c-2,Thanks.

Could you use i2c-1 to verify your device first. We still going to figure out the solution.

Thanks

If it is resolved, please notify our company as soon as possible,Thanks

@shaorui
Could you help to check the pinmux configure if any different

sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i i2c
Bank: 1 Reg: 0x0c302028 Val: 0x00001440 → gen8_i2c_sda_pw1
Bank: 1 Reg: 0x0c302030 Val: 0x00001440 → gen8_i2c_scl_pw0
Bank: 0 Reg: 0x02430010 Val: 0x00001440 → cam_i2c_sda_po3
Bank: 0 Reg: 0x02430018 Val: 0x00001440 → cam_i2c_scl_po2
Bank: 0 Reg: 0x02434060 Val: 0x00001460 → gen1_i2c_scl_pc5
Bank: 0 Reg: 0x02434068 Val: 0x00001460 → gen1_i2c_sda_pc6
Bank: 1 Reg: 0x0c301060 Val: 0x00001440 → pwr_i2c_scl_ps0
Bank: 1 Reg: 0x0c301068 Val: 0x00001440 → pwr_i2c_sda_ps1
Bank: 0 Reg: 0x0243d0b0 Val: 0x00001440 → gen7_i2c_scl_pl0
Bank: 0 Reg: 0x0243d0b8 Val: 0x00001440 → gen7_i2c_sda_pl1
Bank: 0 Reg: 0x0243d0c0 Val: 0x00001440 → gen9_i2c_sda_pl3
Bank: 0 Reg: 0x0243d0c8 Val: 0x00001440 → gen9_i2c_scl_pl2

as follows on TX2:

$ sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep -i i2c
Bank: 1 Reg: 0x0c302028 Val: 0x00001440 → gen8_i2c_sda_pw1
Bank: 1 Reg: 0x0c302030 Val: 0x00001440 → gen8_i2c_scl_pw0
Bank: 0 Reg: 0x02430010 Val: 0x00001460 → cam_i2c_sda_po3
Bank: 0 Reg: 0x02430018 Val: 0x00001460 → cam_i2c_scl_po2
Bank: 0 Reg: 0x02434060 Val: 0x00001460 → gen1_i2c_scl_pc5
Bank: 0 Reg: 0x02434068 Val: 0x00001460 → gen1_i2c_sda_pc6
Bank: 1 Reg: 0x0c301060 Val: 0x00001440 → pwr_i2c_scl_ps0
Bank: 1 Reg: 0x0c301068 Val: 0x00001440 → pwr_i2c_sda_ps1
Bank: 0 Reg: 0x0243d0b0 Val: 0x00001042 → gen7_i2c_scl_pl0
Bank: 0 Reg: 0x0243d0b8 Val: 0x0000104a → gen7_i2c_sda_pl1
Bank: 0 Reg: 0x0243d0c0 Val: 0x00001042 → gen9_i2c_sda_pl3
Bank: 0 Reg: 0x0243d0c8 Val: 0x00001002 → gen9_i2c_scl_pl2

Does this dump from r32.5.1?

yes,only 32.5.1 on TX2.

32.5 compilation fails on TX2,donot use to 32.5.

Could you write the REG 0x02430010 and 0x02430018 to 0x00001440 by devmem2 than check by scope again.

sudo devmem2 0x02430010 w 0x00001440
sudo devmem2 0x02430018 w 0x00001440

Is this right?and i2c-2 cannot read/write.

$ sudo i2cset -f -y 2 0x1a 0 0x1f
Error: Write failed

Can you try if i2cdetect -y -r 2 and check with scope.

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – UU – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: UU – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: UU – – – – – – –

I not find 1a(WM8960 2-i2c reg address:1A.).

Could you probe i2c signal to check if any wave when doing the scanning after REG wrote?

sudo devmem2 0x02430010 w 0x00001440
sudo devmem2 0x02430018 w 0x00001440
i2cdetect -y -r 2

Signals (SCL and SDA) are high on Oscilloscope,but no any wave happened.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi, are you using TX2 or nano module? Why is the I2C_GP0 connected to pin 234 and 236 that is the pin number of nano?