Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:applications:gpio:spi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:applications:gpio:spi [2025/02/17 21:40]
nick [Enable SPI]
products:sbc:common:applications:gpio:spi [2026/09/15 03:26] (current)
nick
Line 15: Line 15:
 | :::       | :::     |  32  |  SPI_A_MISO  |  GPIOZ_0    | :::               | :::              | | :::       | :::     |  32  |  SPI_A_MISO  |  GPIOZ_0    | :::               | :::              |
 | :::       | :::     |  33  |  SPI_A_SS0   |  GPIOZ_3    | :::               | :::              | | :::       | :::     |  33  |  SPI_A_SS0   |  GPIOZ_3    | :::               | :::              |
 +^  VIM-5    |  SPI_C  |  26  |  SPI_C_MOSI  |  GPIOM_0    |  spi1             | /dev/spidev1.0   |
 +| :::       | :::     |  36  |  SPI_C_SCLK  |  GPIOM_2    | :::               | :::              |
 +| :::       | :::     |  25  |  SPI_C_MISO  |  GPIOM_1    | :::               | :::              |
 +| :::       | :::     |  37  |  SPI_C_SS0   |  GPIOM_3    | :::               | :::              |
  
 ===== Enable SPI ===== ===== Enable SPI =====
Line 106: Line 110:
 ```shell ```shell
 fdt_overlays=spi0 fdt_overlays=spi0
 +
 +```
 +
 +After reboot, you will see the SPI device node.
 +
 +```shell
 +$ ls /dev/spidev1.0 
 +/dev/spidev1.0
 +```
 +
 +<tabbox VIM-5>
 +
 +Edit ''/boot/dtb/amlogic/kvim-5.dtb.overlay.env'' to add spi node to ''fdt_overlays'' node if it doesn't exist.
 +
 +
 +e.g. Enable ''SPI_C'', you need to add ''spi1'' to node ''fdt_overlays'' if it doesn't exist.
 +
 +```shell
 +fdt_overlays=spi1
  
 ``` ```
Last modified: 2025/02/17 21:40 by nick