This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:applications:gpio:i2c [2022/08/21 22:30] frank [I2C Information] |
products:sbc:common:applications:gpio:i2c [2023/11/07 04:51] (current) nick [Enable I2C] |
||
---|---|---|---|
Line 7: | Line 7: | ||
===== I2C Information ===== | ===== I2C Information ===== | ||
- | | | + | | |
- | ^ VIM1/ | + | ^ VIM1/ |
- | | ::: | + | | ::: | ::: | 23(SDA) |
- | | ::: | + | | ::: |
- | | ::: | + | | ::: | ::: | 26(SDA) |
- | ^ VIM3/ | + | ^ VIM3/ |
- | | ::: | + | | ::: | ::: | 23(SDA) |
- | | ::: | + | | ::: |
- | | ::: | + | | ::: | ::: | 26(SDA) |
- | ^ VIM4 | + | ^ VIM4 |
- | | ::: | + | | ::: | ::: | 23(SDA) |
- | | ::: | + | | ::: |
- | | ::: | + | | ::: | ::: | 26(SDA) |
- | ^ VIM1S | I2CM B | 22(SCL) | + | ^ VIM1S | I2CM B | 22(SCL) |
- | | ::: | + | | ::: | ::: | 23(SDA) |
- | | ::: | + | | ::: |
- | | ::: | + | | ::: | ::: | 26(SDA) |
===== Enable I2C ===== | ===== Enable I2C ===== | ||
Line 45: | Line 45: | ||
/dev/i2c-3 | /dev/i2c-3 | ||
``` | ``` | ||
+ | |||
+ | <tabbox VIM3 with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=i2c3 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the I2C device node. | ||
+ | |||
+ | <tabbox VIM3L with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=i2c3 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the I2C device node. | ||
<tabbox VIM4> | <tabbox VIM4> | ||
Line 63: | Line 91: | ||
$ ls /dev/i2c-0 | $ ls /dev/i2c-0 | ||
/dev/i2c-0 | /dev/i2c-0 | ||
+ | ``` | ||
+ | |||
+ | <tabbox VIM1S> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. To enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=i2cm_e | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the I2C device node. | ||
+ | |||
+ | ```shell | ||
+ | $ ls /dev/i2c-4 | ||
+ | /dev/i2c-4 | ||
``` | ``` | ||
</ | </ | ||
+ | |||
+ | ===== I2C Usage ===== | ||
+ | |||
+ | Please check the [[https:// | ||