1|console:/ # i2cdetect --version
console:/ # i2cdetect -l
console:/ # i2cdetect -F 7
console:/ # i2cdetect -a -y 7
1|console:/ # i2cdump --version
console:/ # i2cdump -f -y 7 0x38
202409011在飞凌的OK3588-C的核心板跑Rockchip原厂的Android12时挂载触摸屏ft5x06之后使用i2c-tools检测
2024/9/11 17:32
由于RK3588的Android12默认编译的系统,内置i2c-tools,因此可以直接使用的!
详细LOG:
console:/ #
console:/ # i2cdetect -V
i2cdetect: Unknown option 'V' (see "i2cdetect --help")
1|console:/ #
1|console:/ # i2cdetect --version
toybox 0.8.4-android
console:/ #
console:/ # [ 1451.046114][ T449] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au
console:/ #
console:/ # i2cdetect -l
i2c-3 i2c rk3x-i2c I2C Adapter
i2c-10 i2c fde60000.dp I2C Adapter
i2c-1 i2c rk3x-i2c I2C Adapter
i2c-6 i2c rk3x-i2c I2C Adapter
i2c-4 i2c rk3x-i2c I2C Adapter
i2c-11 i2c ddc I2C Adapter
i2c-0 i2c rk3x-i2c I2C Adapter
i2c-9 i2c fde50000.dp I2C Adapter
i2c-7 i2c rk3x-i2c I2C Adapter
i2c-5 i2c rk3x-i2c I2C Adapter
i2c-12 i2c ddc I2C Adapter
console:/ #
console:/ # i2cdetect -F 7
Functionalities implemented by /dev/i2c-7:
I2C yes
SMBus Quick Command yes
SMBus Send Byte yes
SMBus Receive Byte yes
SMBus Write Byte yes
SMBus Read Byte yes
SMBus Write Word yes
SMBus Read Word yes
SMBus Process Call yes
SMBus Write Block yes
SMBus Read Block no
SMBus Block Process Call no
SMBus PEC yes
I2C Write Block yes
I2C Read Block yes
console:/ #
console:/ # i2cdetect -a -y 7
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- 38 39 -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
console:/ #
console:/ # [ 1511.046158][ T449] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au
console:/ #
console:/ # i2cdump -V
i2cdump: Unknown option 'V' (see "i2cdump --help")
1|console:/ #
1|console:/ # i2cdump --version
toybox 0.8.4-android
console:/ #
console:/ # i2cdump -f -a 0x38
i2cdump: Unknown option 'a' (see "i2cdump --help")
1|console:/ # [ 1571.046109][ T449] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au
1|console:/ # i2cdump -f -a 7 0x38
i2cdump: Unknown option 'a' (see "i2cdump --help")
1|console:/ #
1|console:/ #
1|console:/ # i2cdump --help
Toybox 0.8.4-android multicall binary: https://landley.net/toybox (see toybox --help)
usage: i2cdump [-fy] BUS CHIP
Dump i2c registers.
-f Force access to busy devices
-y Answer "yes" to confirmation prompts (for script use)
console:/ #
console:/ # i2cdump -f -y 7 0x38
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff .???????????????
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ????????????????
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ????????????????
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ????????????????
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ????????????????
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ????????????????
60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ????????????????
70: ff ff ff ff ff ff ff ff ff ff ff ff ff c8 60 13 ??????????????`?
80: 09 0a 0f 0c 00 25 01 05 06 1f 3c 00 00 00 00 00 ????.%????<.....
90: 00 0e 00 00 00 00 00 00 00 00 00 00 00 00 0c 50 .?............?P
a0: 01 00 01 72 01 00 02 01 da 00 01 01 16 01 01 01 ?.?r?.???.??????
b0: 00 05 00 00 fd 00 00 00 00 00 00 00 00 00 00 1d .?..?..........?
c0: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 03 03 ?.............??
d0: 00 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 .??.............
e0: 00 00 01 c3 ff 00 00 00 00 00 00 eb 08 00 00 00 ..???......??...
f0: ff ff ff ff ff ff ff ff 00 10 ff ff 01 00 16 ff ????????.????.??
console:/ #
console:/ #
console:/ # [ 1631.048143][ T449] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au
console:/ #
参开资料:
https://blog.csdn.net/BeiJingXunWei/article/details/140130738
RK3568驱动指南|第十五篇 I2C-第180章 I2C Tools工具讲解