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/02 01:03] ivan |
products:sbc:common:applications:gpio:spi [2023/02/14 07:25] hyphop |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SPI ====== | ||
- | |||
- | SPI interface usage examples on [[products: | ||
- | |||
- | <WRAP important > | ||
- | Because Edge2 IO GPIO header is different from other series. please click [[products: | ||
- | </ | ||
===== Reference table ===== | ===== Reference table ===== | ||
- | | | + | | |
- | ^ VIM3/ | + | ^ VIM3/ |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: |
- | ^ VIM4 | + | ^ VIM4 |
- | ^ Edge2 | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: | |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | ^ VIM1S | SPI_A | 29 | SPI_A_MOSI |
+ | | ::: | ||
+ | | ::: | | ||
+ | | ::: | ||
===== Enable SPI ===== | ===== Enable SPI ===== | ||
Line 48: | Line 44: | ||
<tabbox VIM4> | <tabbox VIM4> | ||
- | TODO. | + | Edit ''/ |
- | <tabbox Edge2> | + | e.g. Enable |
- | Edit ''/ | + | |
- | To enable '' | + | ```shell |
+ | fdt_overlays=spi0 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the SPI device | ||
```shell | ```shell | ||
- | fdt_overlays=spi1 | + | $ ls / |
+ | / | ||
``` | ``` | ||
- | <WRAP important > | + | <tabbox VIM1S> |
- | As SPI pins are also used for other function, e.g. UART7, PWM14, so that you also need to remove node '' | + | |
- | </WRAP> | + | |
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. Enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=spi0 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the SPI device node. | ||
- | After reboot, you will see the spi device node. | ||
```shell | ```shell | ||
- | $ ls / | + | $ ls / |
/ | / | ||
``` | ``` |