# dmesg
root@OpenWrt:/# /bin/dmesg |grep i2c
[ 8.798300] i2c /dev entries driver
[ 8.814054] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
I use system I2C (kmod-i2c-core kmod-i2c-mt7628) , But not kmod-i2c-gpio-custom.
When I use < i2cdetect -y 0 >
to scan devices, I get:
root@OpenWrt:/# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 31 32 33 34 35 36 37 -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@OpenWrt:/#
So I find a patch:
It fixed bug of full-address,
But I cannot write EEPROM:
root@OpenWrt:~# 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: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@OpenWrt:~# i2cget -y 0 0x50 0x00
0xff
root@OpenWrt:~# i2cset -y 0 0x50 0x00 0x00
root@OpenWrt:~# i2cget -y 0 0x50 0x00
0xff
root@OpenWrt:~#
My Openwrt Kernel:
root@OpenWrt:~# uname -a
Linux OpenWrt 4.14.212 #0 Thu Dec 17 21:16:36 2020 mips GNU/Linux
My device is MediaTek LinkIt Smart 7688