Hello -
I am trying to use I2C on the ODYSSEY-X86J4125800 but I am not seeing any data output on the pins. I am running Ubuntu desktop 20.04.2, and monitoring Pins 2 and 3 on the 40-way header using a logic analyser.
I have tried the following:
ls /sys/bus/pci/devices//i2c_designware.0/ | grep i2c
-> returns i2c-1
ls /sys/bus/pci/devices/ /i2c_designware.1/ | grep i2c
-> returns i2c-2
i2cdetect -l
-> returns:
i2c-3 unknown Synopsys DesignWare I2C adapter N/A
i2c-1 unknown Synopsys DesignWare I2C adapter N/A
i2c-6 unknown i915 gmbus misc N/A
i2c-4 unknown i915 gmbus dpb N/A
i2c-2 unknown Synopsys DesignWare I2C adapter N/A
i2c-0 unknown SMBus I801 adapter at f040 N/A
i2c-7 unknown AUX C/port C N/A
i2c-5 unknown i915 gmbus dpc N/A
sudo i2cdetect -y 1
-> runs the scan, only puts dashes next to addresses 0x30 to 0x37 and 0x50 to 0x5F
sudo i2cdetect -y 2
-> runs the scan, only puts dashes next to addresses 0x30 to 0x37 and 0x50 to 0x5F
I have tried scanning the other busses too (even though I probably shouldnt), doesnt matter which bus I choose - there is no output on pins 2/3. Both pins are stuck high (3.3.V)
Am I doing something wrong?
Thanks,
Phil
Full list of commands I tried:
phil@test:~$ ls /sys/bus/pci/devices//i2c_designware.0/ | grep i2c
i2c-1
phil@test:~$ ls /sys/bus/pci/devices/ /i2c_designware.1/ | grep i2c
i2c-2
phil@test:~$ sudo i2cdetect -l
i2c-3 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-1 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-6 i2c i915 gmbus misc I2C adapter
i2c-4 i2c i915 gmbus dpb I2C adapter
i2c-2 i2c Synopsys DesignWare I2C adapter I2C adapter
i2c-0 smbus SMBus I801 adapter at f040 SMBus adapter
i2c-7 i2c AUX C/port C I2C adapter
i2c-5 i2c i915 gmbus dpc I2C adapter
phil@test:~$ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
phil@test:~$ sudo i2cdetect -y 1
Warning: Can’t use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: – -- – -- – -- – --
40:
50: – -- – -- – -- – -- – -- – -- – -- – --
60:
70:
phil@test:~$ sudo i2cdetect -y 2
Warning: Can’t use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: – -- – -- – -- – --
40:
50: – -- – -- – -- – -- – -- – -- – -- – --
60:
70:
phil@test:~$ sudo i2cdetect -y 3
Warning: Can’t use SMBus Quick Write command, will skip some addresses
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10:
20:
30: – -- – -- – -- – --
40:
50: – -- – -- – -- – -- – -- – -- – -- – --
60:
70:
phil@test:~$ sudo i2cdetect -y 4
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
phil@test:~$ sudo i2cdetect -y 5
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
phil@test:~$ sudo i2cdetect -y 6
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
phil@test:~$ sudo i2cdetect -y 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
I also tried sudo i2cdetect -y -r 1
and this got rid of the “Warning: Can’t use SMBus Quick Write command, will skip some addresses” messages on bus 1 and 2 - but still no I2C activity on the physical lines.
Baozhu
July 11, 2021, 11:58pm
#4
@philrawlings You need config pin function first.
@Baozhu - thank you! I thought assumed I2C enabled would be the default rather than GPIO - I hadn’t checked! Working fine now