論壇總覽 MP500系列微型電腦討論區 MP520-22: 如何使用 I2C1 或是 I2C5 回覆至:MP520-22: 如何使用 I2C1 或是 I2C5

#1934
Huang Jia-Bin
管理員
    @jb

    請到 /sys/class/i2c-dev 和 /sys/class/i2c-adapter 一路追下去:

    one@MA127:/sys/class$ ls -l i2c-dev/
    總用量 0
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-0 -> ../../devices/platform/fd880000.i2c/i2c-0/i2c-dev/i2c-0
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-10 -> ../../devices/platform/fde50000.dp/i2c-10/i2c-dev/i2c-10
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-2 -> ../../devices/platform/feaa0000.i2c/i2c-2/i2c-dev/i2c-2
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-6 -> ../../devices/platform/fec80000.i2c/i2c-6/i2c-dev/i2c-6
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-7 -> ../../devices/platform/fec90000.i2c/i2c-7/i2c-dev/i2c-7
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-9 -> ../../devices/platform/fde80000.hdmi/i2c-9/i2c-dev/i2c-9

    one@MA127:/sys/class$ ls -l i2c-adapter/
    總用量 0
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-0 -> ../../devices/platform/fd880000.i2c/i2c-0
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-10 -> ../../devices/platform/fde50000.dp/i2c-10
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-2 -> ../../devices/platform/feaa0000.i2c/i2c-2
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-6 -> ../../devices/platform/fec80000.i2c/i2c-6
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-7 -> ../../devices/platform/fec90000.i2c/i2c-7
    lrwxrwxrwx 1 root root 0 1月 1 1970 i2c-9 -> ../../devices/platform/fde80000.hdmi/i2c-9

    然後請到下面連結下載 RK3588S Datasheet 和 RK3588 Technical Reference Manual 去參照 Address Mapping 以及 Chapter 21 I2C Interface:

    https://github.com/FanX-Tek/rk3588-TRM-and-Datasheet