I2C Help

rcpaul
 
Posts: 39
Joined: Sun Nov 09, 2014 4:20 am

Re: I2C Help

Thu Feb 16, 2017 12:55 am

Same result:

root@vocore2:~# i2cdetect -r 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77
root@vocore2:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77
root@vocore2:~#

Can you try your PFC8591 with Vocore2 when you have time?

Thanks!
Paul

Vonger
 
Posts: 672
Joined: Sun Oct 19, 2014 6:00 am

Re: I2C Help

Thu Feb 16, 2017 6:38 am

I already tried that, works normal.
Oh, one point, you must use GPIO I2C driver, default i2c driver from MTK have issue, can not work at all.

First find where the problem is: hardware or software or driver.
New one and do not connect to any i2c device, call i2cdetect, check if VoCore2 I2C work first. Then connect your device.
Default firmware I2C has already taken by audio codec, you can remove the connection from dts and recompile the source.

jaybee
 
Posts: 1
Joined: Thu Feb 22, 2018 1:39 pm

Re: I2C Help

Thu Mar 29, 2018 7:26 pm

I had similar issue. I have written better driver for I2C in MT7621/MT7628/MT7688 using real I2C hardware and not bit-banging.
https://github.com/openwrt/openwrt/pull/831
It is easilly portable to old OpenWrt 15.05 base https://gist.github.com/j123b567/9b555b ... 4198546954
just replace file 0111-i2c-MIPS-add-mt7621-I2C-driver.patch in OpenWrt 15 source tree.
Then you just need to replace i2c-ralink by modified i2c-mt7621 in kernel configuration.

Previous
Return to VoCore2

Who is online

Users browsing this forum: Google [Bot] and 4 guests