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:spi [2023/08/13 22:43] jacobe [Demo Source Code] |
products:sbc:common:applications:gpio:spi [2023/11/07 05:07] (current) nick [Enable SPI] |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== SPI Reference table ===== | ===== SPI Reference table ===== | ||
- | | | + | | |
- | ^ VIM3/ | + | ^ VIM3/ |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: |
- | ^ VIM4 | + | ^ VIM4 |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: |
- | | ::: | ::: | + | | ::: | ::: |
- | ^ VIM1S | SPI_A | 29 | SPI_A_MOSI | + | ^ VIM1S | SPI_A | 29 | SPI_A_MOSI |
- | | ::: | + | | ::: | ::: |
- | | ::: | + | | ::: | ::: |
- | | ::: | + | | ::: | ::: |
===== Enable SPI ===== | ===== Enable SPI ===== | ||
Line 41: | Line 41: | ||
/ | / | ||
``` | ``` | ||
+ | |||
+ | <tabbox VIM3 with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. Enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=spi1 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the SPI device node. | ||
+ | |||
+ | <tabbox VIM3L with 5.15 kernel> | ||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | |||
+ | e.g. Enable '' | ||
+ | |||
+ | ```shell | ||
+ | fdt_overlays=spi1 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | After reboot, you will see the SPI device node. | ||
<tabbox VIM4> | <tabbox VIM4> | ||
Line 584: | Line 612: | ||
``` | ``` | ||
- | Run '' | + | Connect PIN36(MOSI), |
```shell | ```shell |