VIM3 I2C Ports mapping

quick question - on the page here https://docs.khadas.com/vim3/HowToAccessI2c.html it says the two I2C ports are 1 and 2. I only have 3 and 4 in /dev. Assuming this is just a typo in the vim3 i2c page and that gpio pins 22/23 are i2c 3 and 25/26 are i2c 4. Would make sense as looking at the schematic thats where devices look to be connected.

Trying to debug i2c and just making sure im right with the bits it think im right with first!

thanks

@birty I will update it .just wait a short time .

1 Like

Thank you! So it is i2c 3 on 22/23?

@birty Yes, you can check it via this command

# i2cdetect -y -r 3
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --  
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

And you check i2c4 too

# i2cdetect -y -r 4
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- 0e --  
10: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --  
20: UU -- 22 -- -- -- -- -- -- -- -- -- -- -- -- --  
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- --  
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
70: -- -- -- -- -- -- -- --
1 Like

perfect - thats what i thought - was just making sure the problem was in my hardware end (as i suspected!)