This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
products:sbc:common:applications:gpio:spi [2022/12/20 04:32] nick |
products:sbc:common:applications:gpio:spi [2023/02/14 07:25] hyphop |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SPI ====== | ||
- | ===== Introduction ===== | ||
- | |||
- | SPI interface usage examples on [[products: | ||
===== Reference table ===== | ===== Reference table ===== | ||
- | | | + | | |
- | ^ VIM3/ | + | ^ VIM3/ |
- | | ::: | ::: | 16 | SPIB_SCLK | + | | ::: | ::: |
- | | ::: | ::: | 35 | SPIB_MISO | + | | ::: | ::: |
- | | ::: | ::: | 37 | SPIB_MOSI | + | | ::: | ::: |
- | ^ VIM4 | + | ^ VIM4 |
- | | ::: | + | | ::: | ::: |
- | | ::: | + | | ::: | ::: |
- | | ::: | + | | ::: | ::: |
- | ^ VIM1S | | + | ^ VIM1S | |
- | | ::: | + | | ::: |
- | | ::: | + | | ::: |
- | | ::: | + | | ::: |
===== Enable SPI ===== | ===== Enable SPI ===== | ||
Line 46: | Line 42: | ||
``` | ``` | ||
- | <tabbox VIM4/VIM1S> | + | <tabbox VIM4> |
- | TODO. | + | Edit ''/ |
+ | |||
+ | e.g. Enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=spi0 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the SPI device node. | ||
+ | |||
+ | ```shell | ||
+ | $ ls / | ||
+ | / | ||
+ | ``` | ||
+ | <tabbox VIM1S> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. Enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=spi0 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the SPI device node. | ||
+ | |||
+ | ```shell | ||
+ | $ ls / | ||
+ | / | ||
+ | ``` | ||
</ | </ |